wok-next diff postfix/receipt @ rev 20334
Remove linux-uml & lxpanel-plugin-multiload
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 16 16:28:30 2017 +0100 (2017-11-16) |
parents | c8f848a49bc1 |
children | e6615350078d |
line diff
1.1 --- a/postfix/receipt Mon Dec 21 23:38:11 2015 +0100 1.2 +++ b/postfix/receipt Thu Nov 16 16:28:30 2017 +0100 1.3 @@ -1,22 +1,18 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="postfix" 1.8 VERSION="2.10.2" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="fast, easy to administer, and secure mailer." 1.11 +SHORT_DESC="fast, easy to administer, and secure mailer" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="other" 1.14 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 WEB_SITE="http://www.postfix.org/" 1.16 WGET_URL="ftp://ftp.cs.tu-berlin.de/pub/net/mail/postfix/official/$TARBALL" 1.17 -TAZPANEL_DAEMON="man|edit::/etc/postfix/main.cf|options|web::$WEB_SITE" 1.18 -CONFIG_FILES="/etc/postfix" 1.19 -PROVIDE="sendmail" 1.20 1.21 -DEPENDS="libdb libldap pcre libssl slitaz-base-files libsasl libkrb5 \ 1.22 -libcomerr3 libmysqlclient" 1.23 BUILD_DEPENDS="db-dev openldap-dev pcre-dev openssl-dev perl mysql-dev \ 1.24 cyrus-sasl-dev libsasl" 1.25 +SPLIT="postfix postfix-mysql" 1.26 1.27 # Rules to configure and make the package. 1.28 compile_rules() 1.29 @@ -38,43 +34,58 @@ 1.30 # Rules to gen a SliTaz package suitable for Tazpkg. 1.31 genpkg_rules() 1.32 { 1.33 - mkdir -p $fs/usr/share/licenses/ 1.34 - cp -a $install/usr/lib $fs/usr 1.35 - cp -a $install/usr/bin $fs/usr 1.36 - cp -a $install/usr/sbin $fs/usr 1.37 - cp -a $install/etc $fs 1.38 + case $PACKAGE in 1.39 + postfix) 1.40 + TAZPANEL_DAEMON="man|edit::/etc/postfix/main.cf|options|web::$WEB_SITE" 1.41 + CONFIG_FILES="/etc/postfix" 1.42 + PROVIDE="sendmail" 1.43 + DEPENDS="libdb libldap pcre libssl slitaz-base-files libsasl \ 1.44 + libkrb5 libcomerr3 libmysqlclient" 1.45 + mkdir -p $fs/usr/share/licenses/ 1.46 + cp -a $install/usr/lib $fs/usr 1.47 + cp -a $install/usr/bin $fs/usr 1.48 + cp -a $install/usr/sbin $fs/usr 1.49 + cp -a $install/etc $fs 1.50 1.51 - awk 'BEGIN {n=0} /MUST/ {n++} /ALIASES/ {n++} { if (n==1) print }' \ 1.52 - < $install/etc/postfix/aliases > $fs/etc/postfix/aliases 1.53 - while read keyword data; do 1.54 - grep -q ^$keyword $fs/etc/postfix/main.cf && continue 1.55 - mv $fs/etc/postfix/main.cf $fs/etc/postfix/main.cf.$$ 1.56 - awk "BEGIN { scan=1 } /^#$keyword / { if (scan) { print \"$keyword $data\" ; scan=0 } } { print }" \ 1.57 - < $fs/etc/postfix/main.cf.$$ > $fs/etc/postfix/main.cf 1.58 - rm -f $fs/etc/postfix/main.cf.$$ 1.59 - done << EOF 1.60 + awk 'BEGIN {n=0} /MUST/ {n++} /ALIASES/ {n++} { if (n==1) print }' \ 1.61 + < $install/etc/postfix/aliases > $fs/etc/postfix/aliases 1.62 + while read keyword data; do 1.63 + grep -q ^$keyword $fs/etc/postfix/main.cf && continue 1.64 + mv $fs/etc/postfix/main.cf $fs/etc/postfix/main.cf.$$ 1.65 + awk "BEGIN { scan=1 } /^#$keyword / { if (scan) { print \"$keyword $data\" ; scan=0 } } { print }" \ 1.66 + < $fs/etc/postfix/main.cf.$$ > $fs/etc/postfix/main.cf 1.67 + rm -f $fs/etc/postfix/main.cf.$$ 1.68 + done << EOF 1.69 mydomain = localdomain 1.70 myorigin = localhost 1.71 mydestination = localhost, localhost.\$mydomain 1.72 mynetworks = 127.0.0.0/8 1.73 alias_maps = hash:/etc/postfix/aliases 1.74 EOF 1.75 - cat >> $fs/etc/postfix/main.cf <<EOF 1.76 + cat >> $fs/etc/postfix/main.cf <<EOF 1.77 1.78 # Unsafe, see CVE-2014-3566 POODLE 1.79 smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3 1.80 EOF 1.81 - cp -a $stuff/etc $fs 1.82 - cp -a $install/var $fs 1.83 - mv $fs/etc/postfix/TLS_LICENSE $fs/usr/share/licenses/POSTFIX_TLS_LICENSE 1.84 - mv $fs/etc/postfix/LICENSE $fs/usr/share/licenses/POSTFIX_LICENSE 1.85 - cp -a $stuff/etc/init.d $fs/etc 1.86 - rm -f $fs/usr/lib/postfix/post* $fs/usr/lib/postfix/*.cf 1.87 - strip -s $fs/usr/lib/postfix/* 1.88 + cp -a $stuff/etc $fs 1.89 + cp -a $install/var $fs 1.90 + mv $fs/etc/postfix/TLS_LICENSE $fs/usr/share/licenses/POSTFIX_TLS_LICENSE 1.91 + mv $fs/etc/postfix/LICENSE $fs/usr/share/licenses/POSTFIX_LICENSE 1.92 + cp -a $stuff/etc/init.d $fs/etc 1.93 + rm -f $fs/usr/lib/postfix/post* $fs/usr/lib/postfix/*.cf 1.94 + strip -s $fs/usr/lib/postfix/* 1.95 + ;; 1.96 + postfix-mysql) 1.97 + CAT="network|MySQL support for postfix" 1.98 + DEPENDS="postfix libmysqlclient" 1.99 + mkdir -p $fs/usr/lib/postfix/ 1.100 + cp -a $src/src/global/dict_mysql.o $fs/usr/lib/postfix 1.101 + ;; 1.102 + esac 1.103 } 1.104 1.105 # Pre and post install commands for Tazpkg. 1.106 -post_install() 1.107 +post_install_postfix() 1.108 { 1.109 1.110 local user 1.111 @@ -122,12 +133,12 @@ 1.112 } 1.113 1.114 # Overlap busybox 1.115 -pre_install() 1.116 +pre_install_postfix() 1.117 { 1.118 rm -f "$1/usr/sbin/sendmail" 1.119 } 1.120 1.121 -post_remove() 1.122 +post_remove_postfix() 1.123 { 1.124 deluser postfix 1.125 delgroup postdrop