aboutsummaryrefslogtreecommitdiffstats
path: root/testing/postfix/postfix-pgsql.post-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-01 13:35:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-01 13:35:52 +0000
commitfdb6c3fdb70f0f13d53600ae7801090ab433e1a7 (patch)
treeb982470f39550a2cfd0bcf82c1c44bdb5fadfcb9 /testing/postfix/postfix-pgsql.post-install
parent440a34fa8753c476a7fdf150178ddc5f4057357b (diff)
downloadaports-fdb6c3fdb70f0f13d53600ae7801090ab433e1a7.tar.bz2
aports-fdb6c3fdb70f0f13d53600ae7801090ab433e1a7.tar.xz
testing/postfix: test a 2.6.1 release with cyrus-sasl support
Needed to fix the dynamic maps patch
Diffstat (limited to 'testing/postfix/postfix-pgsql.post-install')
-rw-r--r--testing/postfix/postfix-pgsql.post-install19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/postfix/postfix-pgsql.post-install b/testing/postfix/postfix-pgsql.post-install
new file mode 100644
index 0000000000..b8d23833b6
--- /dev/null
+++ b/testing/postfix/postfix-pgsql.post-install
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# update the dynamicmaps.cf
+conf=/etc/postfix/dynamicmaps.cf
+
+sed -i -e '/\#\# AUTO BEGIN/,/\#\# AUTO END/d' $conf
+
+(
+echo '## AUTO BEGIN ##'
+if cd /usr/lib/postfix/; then
+ for i in *.so; do
+ m=${i#dict_}
+ m=${m%.so}
+ echo -e "$m\t/usr/lib/postfix/$i\tdict_${m}_open"
+ done
+fi
+
+echo '## AUTO END ##'
+) >> $conf