pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/efax Convert to use bsd.pkg.install.mk.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c2f1c9f6cedc
branches:  trunk
changeset: 460439:c2f1c9f6cedc
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Aug 30 18:40:06 2003 +0000

description:
Convert to use bsd.pkg.install.mk.

diffstat:

 comms/efax/DEINSTALL |  31 ++++++++++++++++++-------------
 comms/efax/INSTALL   |  22 ++++++++++++++--------
 comms/efax/Makefile  |   9 ++-------
 3 files changed, 34 insertions(+), 28 deletions(-)

diffs (95 lines):

diff -r 15a086bf66e7 -r c2f1c9f6cedc comms/efax/DEINSTALL
--- a/comms/efax/DEINSTALL      Sat Aug 30 16:21:07 2003 +0000
+++ b/comms/efax/DEINSTALL      Sat Aug 30 18:40:06 2003 +0000
@@ -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
-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
+       ;;
+esac
diff -r 15a086bf66e7 -r c2f1c9f6cedc comms/efax/INSTALL
--- a/comms/efax/INSTALL        Sat Aug 30 16:21:07 2003 +0000
+++ b/comms/efax/INSTALL        Sat Aug 30 18:40:06 2003 +0000
@@ -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 -r 15a086bf66e7 -r c2f1c9f6cedc comms/efax/Makefile
--- a/comms/efax/Makefile       Sat Aug 30 16:21:07 2003 +0000
+++ b/comms/efax/Makefile       Sat Aug 30 18:40:06 2003 +0000
@@ -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 @@
 CONFLICTS=     kdeutils<3.1
 
 USE_BUILDLINK2=        # defined
+USE_PKGINSTALL=        YES
 
 post-patch:
        ${SED} -e 's:@PREFIX@:${PREFIX}:g;                              \
@@ -31,10 +32,4 @@
        ${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"



Home | Main Index | Thread Index | Old Index