summaryrefslogtreecommitdiffstats
path: root/main/postfix/postfix-sqlite.post-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-11 15:49:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-11 16:13:27 +0000
commit2b5f5f568811f27a8734d0476b47aad6be7964e6 (patch)
tree4c4d124c2634f9ddb9270c0a3496613a5660b174 /main/postfix/postfix-sqlite.post-install
parent38529ac18bb454d2daaf661b43edad4b75d5fdac (diff)
downloadaports-2b5f5f568811f27a8734d0476b47aad6be7964e6.tar.bz2
aports-2b5f5f568811f27a8734d0476b47aad6be7964e6.tar.xz
main/postfix: upgrade to 2.8.1 and forward port dynamic maps patch
Diffstat (limited to 'main/postfix/postfix-sqlite.post-install')
-rw-r--r--main/postfix/postfix-sqlite.post-install19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/postfix/postfix-sqlite.post-install b/main/postfix/postfix-sqlite.post-install
new file mode 100644
index 000000000..b8d23833b
--- /dev/null
+++ b/main/postfix/postfix-sqlite.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