diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-03-13 05:47:01 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-03-13 05:47:01 +0000 |
commit | 90a7b13a966c3c2ecb63bca5474e7e8c8e259d23 (patch) | |
tree | 90eca2ffa3b78dd919ec717ee49170abb51ca3f1 /mail/qmail/Makefile | |
parent | 96d604fcb0ed10c5d0343d65211f1520d96f9951 (diff) |
Notes
Diffstat (limited to 'mail/qmail/Makefile')
-rw-r--r-- | mail/qmail/Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile index c75f660896e5..463283d8b91b 100644 --- a/mail/qmail/Makefile +++ b/mail/qmail/Makefile @@ -285,10 +285,7 @@ thereal-post-patch: .for i in ${BOOTFILES} @if [ `dirname $i` != ${FILESDIR} ] ; \ then \ - ${CP} $i.sh $i.sh.orig; \ - (head -c `${EXPR} \`ls -l $i.sh.orig \ - | ${AWK} '{print $$5}'\` - 1` $i.sh.orig ; ${ECHO} '&') \ - > $i.sh ; \ + ${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 ; \ fi .endfor @${SED} s!/var/qmail/!${PREFIX}/!g ${FILESDIR}/mailer.conf.sample > \ |