#Maintainer: George Vlahavas # # You need to have a postfix user and postfix and postdrop groups setup # in your system for this to build properly. Read the README.Slackware # file for info about how to create them. pkgname=postfix pkgver=2.6.5 pkgrel=3gv arch=x86_64 source=("ftp://ftp.ntua.gr/pub/net/mail/postfix/official/postfix-$pkgver.tar.gz" "rc.postfix" "README.Slackware") docs=("aaareadme" "compatibility" "copyright" "history" "license" "porting" "ipv6-changelog" "readme*" "release_notes*" "TLS_*" "US_PATENT_6321267" "install") url=http://www.postfix.org/ dotnew=('etc/postfix/access' 'etc/postfix/aliases' 'etc/postfix/canonical' 'etc/postfix/generic' 'etc/postfix/header_checks' 'etc/postfix/main.cf' 'etc/postfix/makedefs.out' 'etc/postfix/master.cf' 'etc/postfix/relocated' 'etc/postfix/transport' 'etc/postfix/virtual') options=('noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "postfix (smtp mail transfer agent)" "Postfix is a secure, flexible and powerful SMTP mail transfer agent" "Postfix attempts to be fast, easy to administer, while at the same" "time being sendmail compatible enough to not upset your users." "Postgrey is a Postfix policy server implementing greylisting." "" "Make sure you read the documentation about how to set this up," "especially the info about creating postfix user and groups in" "/usr/doc/postfix-$pkgver/README.Slackware" ) build() { cd $startdir/src/$pkgname-$pkgver make makefiles \ CCARGS='-DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS' \ AUXLIBS="-lssl -lcrypto" \ OPT="$CFLAGS" make || return 1 make non-interactive-package \ install_root=$startdir/pkg \ tempdir=/tmp/postfix-temp \ config_directory=/etc/postfix \ daemon_directory=/usr/libexec/postfix \ command_directory=/usr/sbin \ queue_directory=/var/spool/postfix \ sendmail_path=/usr/sbin/sendmail \ newaliases_path=/usr/bin/newaliases \ mailq_path=/usr/bin/mailq \ mail_owner=postfix \ setgid_group=postdrop \ html_directory=/usr/doc/$pkgname-$pkgver/html \ manpage_directory=/usr/man \ readme_directory=/usr/doc/$pkgname-$pkgver mkdir -p $startdir/pkg/etc/rc.d cp $startdir/src/rc.postfix $startdir/pkg/etc/rc.d/ chmod 755 $startdir/pkg/etc/rc.d/rc.postfix ( cd $startdir/pkg/usr/libexec/postfix grep manpage postfix-files | while read line; do MANPAGE="$(echo "$line" | cut -d: -f1)" sed -i s#"$MANPAGE"#"$MANPAGE.gz"# postfix-files ; done ) chown -R root:root $startdir/pkg/usr/sbin chown -R postfix:postdrop $startdir/pkg/var/spool/postfix chown -R postfix:postdrop $startdir/pkg/var/lib/postfix chown -R root:postdrop $startdir/pkg/var/spool/postfix/pid chown root:root $startdir/pkg/var/spool/postfix chown root:postdrop $startdir/pkg/usr/sbin/postqueue chown root:postdrop $startdir/pkg/usr/sbin/postdrop chmod 2755 $startdir/pkg/usr/sbin/postqueue chmod 2755 $startdir/pkg/usr/sbin/postdrop }