wok-4.x rev 1659
cyrus-imapd: update DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 08 13:49:06 2008 +0000 (2008-11-08) |
parents | ea5bbe74dfcd |
children | 91012d333151 |
files | cyrus-imapd/receipt |
line diff
1.1 --- a/cyrus-imapd/receipt Sat Nov 08 13:47:59 2008 +0000 1.2 +++ b/cyrus-imapd/receipt Sat Nov 08 13:49:06 2008 +0000 1.3 @@ -9,7 +9,7 @@ 1.4 WEB_SITE="http://cyrusimap.web.cmu.edu/" 1.5 WGET_URL="ftp://ftp.andrew.cmu.edu/pub/cyrus/$TARBALL" 1.6 BUILD_DEPENDS="libcomerr-dev cyrus-sasl cyrus-sasl-dev openssl-dev db-dev" 1.7 -DEPENDS="libcomerr cyrus-sasl openssl db postfix perl" 1.8 +DEPENDS="libcomerr cyrus-sasl openssl db perl libwrap" 1.9 CONFIG_FILES="/etc/imapd.conf /etc/cyrus.conf" 1.10 1.11 # Rules to configure and make the package. 1.12 @@ -87,8 +87,8 @@ 1.13 lmtp 2003/tcp 1.14 fud 4201/udp 1.15 EOF 1.16 - /etc/init.d/$PACKAGE start 1.17 - if [ -f /etc/init.d/postfix ]; then 1.18 + [ -z "$1" ] && /etc/init.d/$PACKAGE start 1.19 + if [ -z "$1" -a -f /etc/init.d/postfix ]; then 1.20 if ! grep -v ^# /etc/postfix/main.cf | grep -q lmtp:unix; then 1.21 echo "Append to /etc/postfix/main.cf:" 1.22 echo -n " " 1.23 @@ -98,11 +98,13 @@ 1.24 fi 1.25 fi 1.26 msg="Creating mailbox for" 1.27 + [ -z "$1" ] && 1.28 for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < /etc/passwd); do 1.29 echo -n "$msg $i" 1.30 msg="," 1.31 done 1.32 echo "" 1.33 + [ -z "$1" ] && 1.34 for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < /etc/passwd); do 1.35 echo "createmailbox user.$i" 1.36 done | cyradm -u cyrus -w cyrus 127.0.0.1 >/dev/null 2>&1