Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=eb35f847fa22aa121e06a321c28bbb8b5c29f123

commit eb35f847fa22aa121e06a321c28bbb8b5c29f123
Author: CSÉCSY László <boo...@frugalware.org>
Date:   Fri Nov 25 10:49:16 2011 +0100

postfix-2.8.0-5-x86_64

fixing build and permission/ownership errors

diff --git a/source/network/postfix/FrugalBuild 
b/source/network/postfix/FrugalBuild
index 24b47d4..f06620c 100644
--- a/source/network/postfix/FrugalBuild
+++ b/source/network/postfix/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=postfix
pkgver=2.8.0
-pkgrel=4
+pkgrel=5
vdaver=2.8.0
pkgdesc="A fast, easy to administer, and secure MTA"
url="http://www.postfix.org/";
@@ -35,7 +35,7 @@ sha1sums=('d7a4fb5ee1f5d12aa1abd6cf8ce8254b4805486d' \
build()
{
CCARGS="${CCARGS} -DHAS_MYSQL -I /usr/include/mysql -DHAS_PGSQL -I 
/usr/include/phsql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I /usr/include/sasl 
-DUSE_TLS -DHAS_LDAP"
-       AUXLIBS="${AUXLIBS} -L/usr/lib/mysql -lmysqlclient -L/usr/lib/pgsql 
-lpq -L/usr/lib -lm -lz -lsasl2 -lldap"
+       AUXLIBS="${AUXLIBS} -L/usr/lib/mysql -lmysqlclient -L/usr/lib/pgsql 
-lpq -L/usr/lib -lm -lz -lsasl2 -lldap -llber -lssl -lcrypto"
Fpatch postfix-vda-$vdaver.patch
Fcd
make CCARGS="${CCARGS}" AUXLIBS="${AUXLIBS}" OPT="${CFLAGS}" makefiles
diff --git a/source/network/postfix/postfix.install 
b/source/network/postfix/postfix.install
index 03cfa29..f899345 100644
--- a/source/network/postfix/postfix.install
+++ b/source/network/postfix/postfix.install
@@ -7,9 +7,9 @@ post_install()
[ -z "`grep '^postfix:' /etc/passwd`" ] && \
useradd -u 73 -d /var/spool/postfix -g postfix postfix

-       chown postfix 
var/spool/postfix/{active,bounce,corrupt,defer,deferred,flush,hold,incoming,private,public,trace,maildrop}
-       chgrp postdrop var/spool/postfix/{public,maildrop,trace} 
usr/sbin/{postqueue,postdrop}
-       chmod g+s usr/sbin/{postqueue,postdrop}
+       chown postfix 
/var/spool/postfix/{active,bounce,corrupt,defer,deferred,flush,hold,incoming,private,public,trace,maildrop,saved}
+       chgrp postdrop /var/spool/postfix/{public,maildrop,trace} 
/usr/sbin/{postqueue,postdrop}
+       chmod g+s /usr/sbin/{postqueue,postdrop}
/usr/sbin/chkconfig --add rc.postfix
systemctl enable postfix.service >/dev/null 2>&1
}
@@ -17,6 +17,9 @@ post_install()
post_upgrade()
{
systemctl daemon-reload >/dev/null 2>&1
+       if [ `vercmp $2 2.8.0-5` -lt 0 ] ; then
+               post_install
+       fi
# this can be removed after Frugalware-1.6
if [ `vercmp $2 2.8.0-3` -lt 0 ] ; then
if chkconfig rc.postfix; then
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to