aboutsummaryrefslogtreecommitdiff
path: root/mail/smail
diff options
context:
space:
mode:
authorTorsten Blum <torstenb@FreeBSD.org>1996-11-30 01:03:24 +0000
committerTorsten Blum <torstenb@FreeBSD.org>1996-11-30 01:03:24 +0000
commitd92cb9e613d0671f8e74252e1ea48fb21c84bd3d (patch)
treefdba494349e41f999a2bad24e085d58a6ca2c948 /mail/smail
parent8b4ec917e33c373b1689bf38541cadd0d1d38eb7 (diff)
downloadports-d92cb9e613d0671f8e74252e1ea48fb21c84bd3d.tar.gz
ports-d92cb9e613d0671f8e74252e1ea48fb21c84bd3d.zip
Notes
Diffstat (limited to 'mail/smail')
-rw-r--r--mail/smail/Makefile49
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>