Commit 3ac865d7 authored by Natanael Copa's avatar Natanael Copa

extra/postfix: pcre handles regexp as well

Fixes #66
parent b1461e06
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postfix
pkgver=2.6.2
pkgrel=0
pkgrel=2
pkgdesc="Secure and fast drop-in replacement for Sendmail (MTA)"
url="http://www.postfix.org/"
license="IPL-1"
......@@ -144,8 +144,8 @@ md5sums="1f0edbd521d2b0473626f4d61e8bb4eb postfix-2.6.2.tar.gz
2bfc3864183694e5484ac073bb0cb7ef postfix.pre-install
0064d45c2c8a46c374b55c4abc46cfb2 postfix.post-install
d45552cfdcd911d0934c0cb7816c4011 postfix-2.6.1-dynamicmaps.patch
0efff9b4bb493ad2ff0b9915cb244d14 dynamicmaps.cf
c653c222c8504c6f36d67eb342c8bf51 dynamicmaps.cf
2ebe51a882eb9d6d7866583eb6af3969 postfix-ldap.post-install
2ebe51a882eb9d6d7866583eb6af3969 postfix-mysql.post-install
2ebe51a882eb9d6d7866583eb6af3969 postfix-pcre.post-install
5b00c3b4c463102c1876bf343b88189c postfix-pcre.post-install
2ebe51a882eb9d6d7866583eb6af3969 postfix-pgsql.post-install"
......@@ -8,7 +8,8 @@
#ldap /usr/lib/postfix/dict_ldap.so dict_ldap_open
#mysql /usr/lib/postfix/dict_mysql.so dict_mysql_open
#pcre /usr/lib/postfix/dict_pcre.so dict_pcre_open
#pgsq /usr/lib/postfix/dict_pgsql.so dict_pgsql_open
#regexp /usr/lib/postfix/dict_pcre.so dict_pcre_open
#pgsql /usr/lib/postfix/dict_pgsql.so dict_pgsql_open
# apk tools will manage the lines below
## AUTO BEGIN ##
......
......@@ -12,8 +12,14 @@ if cd /usr/lib/postfix/; then
m=${i#dict_}
m=${m%.so}
echo -e "$m\t/usr/lib/postfix/$i\tdict_${m}_open"
# pcre also handles regexp
if [ "$m" = "pcre" ]; then
echo -e "regexp\t/usr/lib/postfix/$i\tdict_${m}_open"
fi
done
fi
echo '## AUTO END ##'
) >> $conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment