diff options
author | torstenb <torstenb@FreeBSD.org> | 1996-11-30 09:03:24 +0800 |
---|---|---|
committer | torstenb <torstenb@FreeBSD.org> | 1996-11-30 09:03:24 +0800 |
commit | 859099119201e7e34b03382b48ff7c83e421a1d5 (patch) | |
tree | 95bd2ee452d9b49ad050cd005a9de586f6025690 /mail/smail | |
parent | ece194a8f142f70ed79969325a061ef53d0ed279 (diff) | |
download | freebsd-ports-gnome-859099119201e7e34b03382b48ff7c83e421a1d5.tar.gz freebsd-ports-gnome-859099119201e7e34b03382b48ff7c83e421a1d5.tar.zst freebsd-ports-gnome-859099119201e7e34b03382b48ff7c83e421a1d5.zip |
fix "replace" target
Diffstat (limited to 'mail/smail')
-rw-r--r-- | mail/smail/Makefile | 49 |
1 files changed, 31 insertions, 18 deletions
diff --git a/mail/smail/Makefile b/mail/smail/Makefile index 42987c8b4aa7..159637db3ca4 100644 --- a/mail/smail/Makefile +++ b/mail/smail/Makefile @@ -3,7 +3,7 @@ # Date created: 16 Oct 1994 # Whom: torstenb # -# $Id: Makefile,v 1.15 1996/11/18 09:02:59 torstenb Exp $ +# $Id: Makefile,v 1.16 1996/11/19 11:16:37 torstenb Exp $ # DISTNAME= smail-3.2 @@ -31,22 +31,35 @@ post-install: replace: @echo "===> Replacing sendmail" -.if exists(/usr/sbin/sendmail) - mv -f /usr/sbin/sendmail /usr/sbin/sendmail.BAK && chmod 0 \ - /usr/sbin/sendmail && cp -fp /usr/local/bin/smail \ - /usr/sbin/sendmail -.endif -.if exists(/usr/sbin/mailstats) - chmod 0 /usr/sbin/mailstats -.endif -.if exists(/usr/bin/newaliases) - mv -f /usr/bin/newaliases /usr/bin/newaliases.BAK && chmod 0 \ - /usr/bin/newaliases && cp -fp /usr/local/bin/newaliases \ - /usr/bin/newaliases -.endif -.if exists(/usr/bin/mailq) - mv -f /usr/bin/mailq /usr/bin/mailq.BAK && chmod 0 \ - /usr/bin/mailq && cp -fp /usr/local/bin/mailq /usr/bin/mailq -.endif + if [ -e /usr/sbin/sendmail ]; then \ + mv -f /usr/sbin/sendmail /usr/sbin/sendmail.BAK; \ + if [ -f /usr/sbin/sendmail.BAK ]; then \ + chmod 0 /usr/sbin/sendmail.BAK; \ + fi;\ + fi + if [ -e /usr/local/bin/smail ]; then \ + cp -fp /usr/local/bin/smail /usr/sbin/sendmail; \ + fi + if [ -f /usr/sbin/mailstats ]; then \ + chmod 0 /usr/sbin/mailstats; \ + fi + if [ -e /usr/bin/newaliases ]; then \ + mv -f /usr/bin/newaliases /usr/bin/newaliases.BAK; \ + if [ -f /usr/bin/newaliases.BAK ]; then \ + chmod 0 /usr/bin/newaliases.BAK; \ + fi;\ + fi + if [ -e /usr/local/bin/newaliases ]; then \ + cp -fp /usr/local/bin/newaliases /usr/bin/newaliases; \ + fi + if [ -e /usr/bin/mailq ]; then \ + mv -f /usr/bin/mailq /usr/bin/mailq.BAK; \ + if [ -f /usr/bin/mailq.BAK ]; then \ + chmod 0 /usr/bin/mailq.BAK; \ + fi;\ + fi + if [ -e /usr/local/bin/mailq ]; then \ + cp -fp /usr/local/bin/mailq /usr/bin/mailq; \ + fi .include <bsd.port.mk> |