diff options
author | lioux <lioux@FreeBSD.org> | 2001-05-26 11:27:55 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-05-26 11:27:55 +0800 |
commit | 10cecad6c5640dc7e372b4ea05523bd2f38aba01 (patch) | |
tree | 3033b35c811a4089294f236ef4a4bcf7571d9013 /mail/qmail | |
parent | c8b5b84309e866507ccf087e98f6ca17f3371b26 (diff) | |
download | freebsd-ports-gnome-10cecad6c5640dc7e372b4ea05523bd2f38aba01.tar.gz freebsd-ports-gnome-10cecad6c5640dc7e372b4ea05523bd2f38aba01.tar.zst freebsd-ports-gnome-10cecad6c5640dc7e372b4ea05523bd2f38aba01.zip |
1) Fix bug introduced in Makefile rev 1.29: files/maildir not
replacing @PREFIX@ with ${PREFIX}
2) Rewrite rc script patching to both handle more cases and
fix (1). Mostly within thereal-post-patch target
3) Update files/maildir both due to (2) and to resemble the rc
scripts supplied with the qmail distribution
Prompted by: Thomas Sarlandie <sarfata@altern.org>
Diffstat (limited to 'mail/qmail')
-rw-r--r-- | mail/qmail/Makefile | 11 | ||||
-rw-r--r-- | mail/qmail/files/maildir | 17 |
2 files changed, 11 insertions, 17 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile index 463283d8b91b..2fbd1623498c 100644 --- a/mail/qmail/Makefile +++ b/mail/qmail/Makefile @@ -245,7 +245,9 @@ do-install: @cd ${WRKSRC} ; ./install ${INSTALL_PROGRAM} ${CONFIGUREPROGS} ${PREFIX}/configure ${INSTALL_SCRIPT} ${CONFIGUREFILES} ${PREFIX}/configure - ${INSTALL_SCRIPT} ${BOOTFILES} ${PREFIX}/boot +.for i in ${BOOTFILES} + ${INSTALL_SCRIPT} ${WRKDIR}/${i:T} ${PREFIX}/boot +.endfor .for i in 1 5 7 8 @${MKDIR} ${PREFIX}/man/man$i .for j in ${MAN${i}} @@ -283,9 +285,12 @@ do-install: # Ugh... ;-) thereal-post-patch: .for i in ${BOOTFILES} - @if [ `dirname $i` != ${FILESDIR} ] ; \ + @if [ -f ${i}.sh ] ; \ + then \ + ${PERL} -p -ne 's!QMAIL/!${PREFIX}/!;s!^(exec)!case "\$$1" in\nstart)\n\t\1!;s!(qmail)$$!\1\&\n\texit 0\n\t;;\nstop)\n\texec killall qmail-send\n\t;;\n*)\n\t${ECHO} "Usage: `basename \$$0` {start|stop}" >&2\n\texit 64\n\t;;\nesac!' $i.sh > ${WRKDIR}/${i:T} ; \ + elif [ -f ${i} ] ; \ then \ - ${PERL} -pi.orig -ne 's!^(exec)!case "\$$1" in\nstart)\n\t\1!;s!(qmail)$$!\1\&\n\texit 0\n\t;;\nstop)\n\texec killall qmail-send\n\t;;\n*)\n\t${ECHO} "Usage: `basename \$$0` {start|stop}" >&2\n\texit 64\n\t;;\nesac!' $i.sh ; \ + ${PERL} -p -ne 's!QMAIL/!${PREFIX}/!;s!^(exec)!case "\$$1" in\nstart)\n\t\1!;s!(qmail)$$!\1\&\n\texit 0\n\t;;\nstop)\n\texec killall qmail-send\n\t;;\n*)\n\t${ECHO} "Usage: `basename \$$0` {start|stop}" >&2\n\texit 64\n\t;;\nesac!' $i > ${WRKDIR}/${i:T} ; \ fi .endfor @${SED} s!/var/qmail/!${PREFIX}/!g ${FILESDIR}/mailer.conf.sample > \ diff --git a/mail/qmail/files/maildir b/mail/qmail/files/maildir index de9c2799a4b9..a11543bcdf7a 100644 --- a/mail/qmail/files/maildir +++ b/mail/qmail/files/maildir @@ -3,17 +3,6 @@ # Using splogger to send the log through syslog. # Using qmail-local to deliver messages to Maildir format by default -case "$1" in -start) - exec env - PATH="@PREFIX@/qmail/bin:$PATH" \ - qmail-start ./Maildir/ splogger qmail& - exit 0 - ;; -stop) - exec killall qmail-send - ;; -*) - echo "Usage: `basename $0` {start|stop}" >&2 - exit 64 - ;; -esac +exec env - PATH="QMAIL/bin:$PATH" \ +qmail-start ./Maildir/ \ +splogger qmail |