summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/INSTALL
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-08-30 20:22:49 +0000
committerjlam <jlam@pkgsrc.org>2003-08-30 20:22:49 +0000
commit2920a32c71bae3a6a02b2c5c0576d9a60b9a0594 (patch)
treed334e2fd95050def4488e848ea48612e6f9103a4 /comms/mgetty+sendfax/INSTALL
parent2ebf5a7dc8b33d5f29466890b65a69e886f19281 (diff)
downloadpkgsrc-2920a32c71bae3a6a02b2c5c0576d9a60b9a0594.tar.gz
Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
Diffstat (limited to 'comms/mgetty+sendfax/INSTALL')
-rwxr-xr-xcomms/mgetty+sendfax/INSTALL22
1 files changed, 10 insertions, 12 deletions
diff --git a/comms/mgetty+sendfax/INSTALL b/comms/mgetty+sendfax/INSTALL
index 46b7b1387ba..c549a1bbfc1 100755
--- a/comms/mgetty+sendfax/INSTALL
+++ b/comms/mgetty+sendfax/INSTALL
@@ -1,27 +1,25 @@
#!/bin/sh
#
+# $NetBSD: INSTALL,v 1.4 2003/08/30 20:22:50 jlam Exp $
-if [ x"$2" = xPOST-INSTALL ]
-then
- if [ ! -d /var/spool/fax ]
- then
- echo "Creating fax spool directories..."
+case ${STAGE} in
+POST-INSTALL)
+ if [ ! -d /var/spool/fax ]; then
+ ${ECHO} "Creating fax spool directories..."
${MKDIR} /var/spool/fax
${CHMOD} 755 /var/spool/fax
fi
- if [ ! -d /var/spool/fax/incoming ]
- then
+ if [ ! -d /var/spool/fax/incoming ]; then
${MKDIR} /var/spool/fax/incoming
${CHMOD} 755 /var/spool/fax/incoming
fi
- if [ ! -d /var/spool/fax/outgoing ]
- then
+ if [ ! -d /var/spool/fax/outgoing ]; then
${MKDIR} /var/spool/fax/outgoing
${CHMOD} 1777 /var/spool/fax/outgoing
fi
- if [ ! -d /var/spool/fax/outgoing/locks ]
- then
+ if [ ! -d /var/spool/fax/outgoing/locks ]; then
${MKDIR} /var/spool/fax/outgoing/locks
${CHMOD} 777 /var/spool/fax/outgoing/locks
fi
-fi
+ ;;
+esac