summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorjlam <jlam>2003-08-30 18:40:06 +0000
committerjlam <jlam>2003-08-30 18:40:06 +0000
commitfa7f1840a6a21d8a81bca6c6241a3d75933104db (patch)
tree3c75c2447e63daf0817fd7b353d6624caf2356ab /comms
parent3d0c5d679ee765fbc44504ab46b8238bb01fef7e (diff)
downloadpkgsrc-fa7f1840a6a21d8a81bca6c6241a3d75933104db.tar.gz
Convert to use bsd.pkg.install.mk.
Diffstat (limited to 'comms')
-rw-r--r--comms/efax/DEINSTALL31
-rwxr-xr-xcomms/efax/INSTALL22
-rw-r--r--comms/efax/Makefile9
3 files changed, 34 insertions, 28 deletions
diff --git a/comms/efax/DEINSTALL b/comms/efax/DEINSTALL
index 948e9e1e29d..41c1de7a977 100644
--- a/comms/efax/DEINSTALL
+++ b/comms/efax/DEINSTALL
@@ -1,17 +1,22 @@
#!/bin/sh
#
-if [ -d /var/spool/efax ]; then
- filecount="`find /var/spool/efax -type f 2>/dev/null | wc -l`"
- if [ $filecount -eq 0 ]; then
- echo "Removing empty efax spool directories..."
- rm -r /var/spool/efax
- fi
-fi
+# $NetBSD: DEINSTALL,v 1.2 2003/08/30 18:40:06 jlam Exp $
-if [ -d /var/log/efax ]; then
- filecount="`find /var/log/efax -type f 2>/dev/null | wc -l`"
- if [ $filecount -eq 0 ]; then
- echo "Removing empty efax log directories..."
- rm -r /var/log/efax
+case "$1" in
+DEINSTALL)
+ if [ -d /var/spool/efax ]; then
+ filecount=`${FIND} /var/spool/efax -type f 2>/dev/null | wc -l`
+ if [ $filecount -eq 0 ]; then
+ ${ECHO} "Removing empty efax spool directories..."
+ ${RM} -r /var/spool/efax
+ fi
+ fi
+ if [ -d /var/log/efax ]; then
+ filecount=`${FIND} /var/log/efax -type f 2>/dev/null | wc -l`
+ if [ $filecount -eq 0 ]; then
+ ${ECHO} "Removing empty efax log directories..."
+ ${RM} -r /var/log/efax
+ fi
fi
-fi
+ ;;
+esac
diff --git a/comms/efax/INSTALL b/comms/efax/INSTALL
index da11e0ac39f..1d2d4431664 100755
--- a/comms/efax/INSTALL
+++ b/comms/efax/INSTALL
@@ -1,10 +1,16 @@
#!/bin/sh
#
-test -d /var/spool || \
- ( mkdir /var/spool ; chmod 755 /var/spool )
-test -d /var/spool/efax || \
- ( mkdir /var/spool/efax ; chmod 755 /var/spool/efax )
-test -d /var/log || \
- ( mkdir /var/log ; chmod 755 /var/log )
-test -d /var/log/efax || \
- ( mkdir /var/log/efax ; chmod 755 /var/log/efax )
+# $NetBSD: INSTALL,v 1.2 2003/08/30 18:40:07 jlam Exp $
+
+case "$1" in
+POST-INSTALL)
+ ${TEST} -d /var/spool || \
+ ( ${MKDIR} /var/spool ; ${CHMOD} 755 /var/spool )
+ ${TEST} -d /var/spool/efax || \
+ ( ${MKDIR} /var/spool/efax ; ${CHMOD} 755 /var/spool/efax )
+ ${TEST} -d /var/log || \
+ ( ${MKDIR} /var/log ; ${CHMOD} 755 /var/log )
+ ${TEST} -d /var/log/efax || \
+ ( ${MKDIR} /var/log/efax ; ${CHMOD} 755 /var/log/efax )
+ ;;
+esac
diff --git a/comms/efax/Makefile b/comms/efax/Makefile
index 7db97e58993..742a89f0483 100644
--- a/comms/efax/Makefile
+++ b/comms/efax/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2003/07/21 16:35:13 martti Exp $
+# $NetBSD: Makefile,v 1.10 2003/08/30 18:40:07 jlam Exp $
DISTNAME= efax-0.9
CATEGORIES= comms
@@ -11,6 +11,7 @@ COMMENT= Collection of small programs for sending and receiving faxes
CONFLICTS= kdeutils<3.1
USE_BUILDLINK2= # defined
+USE_PKGINSTALL= YES
post-patch:
${SED} -e 's:@PREFIX@:${PREFIX}:g; \
@@ -31,10 +32,4 @@ post-patch:
${HEAD} -n 404 ${WRKSRC}/fax.tmp > ${WRKSRC}/efax.rc1
${TAIL} -n 402 ${WRKSRC}/efax.rc1 > ${WRKSRC}/efax.rc
-post-install:
- ${INSTALL_DATA_DIR} /var/spool/efax
- ${CHMOD} 755 /var/spool/efax
- ${INSTALL_DATA_DIR} /var/log/efax
- ${CHMOD} 755 /var/log/efax
-
.include "../../mk/bsd.pkg.mk"