pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Prepare for pkgviews by making sure that passing VIEW-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/89ed490e0efa
branches:  trunk
changeset: 460463:89ed490e0efa
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Aug 30 20:22:49 2003 +0000

description:
Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.

diffstat:

 audio/gqmpeg/DEINSTALL                   |   19 +----
 audio/gqmpeg/Makefile                    |    3 +-
 comms/mgetty+sendfax/DEINSTALL           |   17 +++-
 comms/mgetty+sendfax/INSTALL             |   22 ++---
 databases/mysql-server/DEINSTALL         |   16 ++++
 databases/mysql-server/INSTALL           |   10 +-
 emulators/vmware-module/INSTALL          |    9 +--
 emulators/vmware-module3/INSTALL         |    9 +--
 fonts/ja-kappa20/DEINSTALL               |   16 +----
 fonts/ja-kappa20/INSTALL                 |   15 +---
 fonts/ja-shinonome/DEINSTALL             |   16 +----
 fonts/ja-shinonome/INSTALL               |   13 +---
 fonts/vfontcap-kochi/DEINSTALL           |   16 +----
 fonts/vfontcap-kochi/INSTALL             |   13 +---
 games/gnome2-games/INSTALL               |  112 +++++++++++++++---------------
 games/gnome2-games/Makefile              |    3 +-
 games/gtkballs/DEINSTALL                 |   11 +--
 games/xscavenger/DEINSTALL               |    8 +-
 inputmethod/canna-server-bin/INSTALL     |   18 +++-
 inputmethod/canna-server-bin/Makefile    |    3 +-
 inputmethod/skkserv/INSTALL              |    3 +-
 inputmethod/skkserv/Makefile             |    3 +-
 mail/cyrus-imapd/DEINSTALL               |   37 ++++-----
 mail/cyrus-imapd/INSTALL                 |    4 +-
 mail/cyrus-imapd21/DEINSTALL             |   37 ++++-----
 mail/cyrus-imapd21/INSTALL               |    4 +-
 mail/fastforward/DEINSTALL               |   28 ++++---
 mail/majordomo/DEINSTALL                 |    8 +-
 mail/mimedefang/Makefile                 |    4 +-
 mail/nmh/DEINSTALL                       |    8 +-
 mail/nmh/INSTALL                         |    8 +-
 mail/yatsvrs/INSTALL                     |    8 +-
 misc/staroffice/INSTALL                  |    8 +-
 net/ddclient/DEINSTALL                   |    6 +-
 net/netatalk-umich/DEINSTALL             |    8 +-
 net/netatalk-umich/INSTALL               |    8 +-
 net/netatalk/INSTALL                     |   28 ++-----
 net/vtun/DEINSTALL                       |   14 +---
 net/vtun/INSTALL                         |   16 +----
 pkgtools/pkgdepgraph/INSTALL             |   10 +--
 print/LPRng-core/DEINSTALL               |    7 +-
 print/LPRng-core/INSTALL                 |   10 +--
 print/apsfilter/Makefile                 |    7 +-
 print/dvipdfmx/DEINSTALL                 |   16 +----
 print/dvipdfmx/INSTALL                   |   13 +---
 print/ja-jsclasses/DEINSTALL             |   16 +----
 print/ja-jsclasses/INSTALL               |   13 +---
 print/ja-ptex-bin/DEINSTALL              |   16 +----
 print/ja-ptex-bin/INSTALL                |   13 +---
 print/xpdf-arabic/DEINSTALL              |   22 +----
 print/xpdf-chinese-simplified/DEINSTALL  |   24 +-----
 print/xpdf-chinese-traditional/DEINSTALL |   24 +-----
 print/xpdf-cyrillic/DEINSTALL            |   22 +----
 print/xpdf-greek/DEINSTALL               |   22 +----
 print/xpdf-hebrew/DEINSTALL              |   22 +----
 print/xpdf-japanese/DEINSTALL            |   24 +-----
 print/xpdf-korean/DEINSTALL              |   24 +-----
 print/xpdf-latin2/DEINSTALL              |   22 +----
 print/xpdf-thai/DEINSTALL                |   22 +----
 print/xpdf-turkish/DEINSTALL             |   22 +----
 security/openssh+gssapi/INSTALL          |   32 ++++----
 security/openssh/INSTALL                 |   32 ++++----
 textproc/namazu1/INSTALL                 |    8 +-
 textproc/namazu2/INSTALL                 |    8 +-
 x11/gdm/DEINSTALL                        |    4 +-
 x11/lesstif/DEINSTALL                    |   10 +--
 x11/lesstif/INSTALL                      |   10 +--
 x11/openmotif/DEINSTALL                  |   10 +--
 x11/openmotif/INSTALL                    |   10 +--
 x11/xterm/INSTALL                        |   13 +--
 70 files changed, 302 insertions(+), 795 deletions(-)

diffs (truncated from 2101 to 300 lines):

diff -r 6577d708206a -r 89ed490e0efa audio/gqmpeg/DEINSTALL
--- a/audio/gqmpeg/DEINSTALL    Sat Aug 30 20:05:13 2003 +0000
+++ b/audio/gqmpeg/DEINSTALL    Sat Aug 30 20:22:49 2003 +0000
@@ -1,27 +1,12 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.1 2001/11/01 00:16:43 zuntum Exp $
-#
-
-PKGNAME=$1
-STAGE=$2
+# $NetBSD: DEINSTALL,v 1.2 2003/08/30 20:22:49 jlam Exp $
 
 case ${STAGE} in
-DEINSTALL)
-       ;;
-
 POST-DEINSTALL)
-       cat << EOF
+       ${CAT} << EOF
 =============================================================================
 If you won't be using ${PKGNAME} any longer, you may want to remove
 any skins that were installed in ${PKG_PREFIX}/share/gqmpeg/skins.
 =============================================================================
 EOF
        ;;
-
-*)
-       echo "Unexpected argument: ${STAGE}"
-       exit 1
-       ;;
 esac
-exit 0
diff -r 6577d708206a -r 89ed490e0efa audio/gqmpeg/Makefile
--- a/audio/gqmpeg/Makefile     Sat Aug 30 20:05:13 2003 +0000
+++ b/audio/gqmpeg/Makefile     Sat Aug 30 20:22:49 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.73 2003/07/17 21:22:20 grant Exp $
+# $NetBSD: Makefile,v 1.74 2003/08/30 20:22:50 jlam Exp $
 
 DISTNAME=              gqmpeg-0.20.0
 PKGREVISION=           2
@@ -16,6 +16,7 @@
 DEPENDS+=              xmp>=2.0.2:../../audio/xmp
 
 USE_BUILDLINK2=                YES
+USE_PKGINSTALL=                YES
 USE_PKGLOCALEDIR=      YES
 USE_X11=               YES
 GNU_CONFIGURE=         YES
diff -r 6577d708206a -r 89ed490e0efa comms/mgetty+sendfax/DEINSTALL
--- a/comms/mgetty+sendfax/DEINSTALL    Sat Aug 30 20:05:13 2003 +0000
+++ b/comms/mgetty+sendfax/DEINSTALL    Sat Aug 30 20:22:49 2003 +0000
@@ -1,10 +1,15 @@
 #!/bin/sh
 #
+# $NetBSD: DEINSTALL,v 1.4 2003/08/30 20:22:50 jlam Exp $
 
-if [ -d /var/spool/fax ]; then
-       filecount="`find /var/spool/fax -type f 2>/dev/null | wc -l`"
-       if [ $filecount -eq 0 ]; then
-               echo "Removing empty fax spool directories..."
-               rm -r /var/spool/fax
+case ${STAGE} in
+DEINSTALL)
+       if [ -d /var/spool/fax ]; then
+               filecount="`${FIND} /var/spool/fax -type f 2>/dev/null | wc -l`"
+               if [ $filecount -eq 0 ]; then
+                       ${ECHO} "Removing empty fax spool directories..."
+                       ${RM} -r /var/spool/fax
+               fi
        fi
-fi
+       ;;
+esac
diff -r 6577d708206a -r 89ed490e0efa comms/mgetty+sendfax/INSTALL
--- a/comms/mgetty+sendfax/INSTALL      Sat Aug 30 20:05:13 2003 +0000
+++ b/comms/mgetty+sendfax/INSTALL      Sat Aug 30 20:22:49 2003 +0000
@@ -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
diff -r 6577d708206a -r 89ed490e0efa databases/mysql-server/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql-server/DEINSTALL  Sat Aug 30 20:22:49 2003 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: DEINSTALL,v 1.4 2003/08/30 20:22:51 jlam Exp $
+
+MYSQL_DATADIR="@MYSQL_DATADIR@"
+
+case ${STAGE} in
+POST-DEINSTALL)
+       ${CAT} << EOF
+===========================================================================
+If you won't be using ${PKGNAME} any longer, you may want
+to remove the following directories:
+
+       ${MYSQL_DATADIR}
+===========================================================================
+EOF
+       ;;
+esac
diff -r 6577d708206a -r 89ed490e0efa databases/mysql-server/INSTALL
--- a/databases/mysql-server/INSTALL    Sat Aug 30 20:05:13 2003 +0000
+++ b/databases/mysql-server/INSTALL    Sat Aug 30 20:22:49 2003 +0000
@@ -1,12 +1,10 @@
-#!/bin/sh
-#
-# $NetBSD: INSTALL,v 1.3 2003/08/30 20:05:13 seb Exp $
+# $NetBSD: INSTALL,v 1.4 2003/08/30 20:22:51 jlam Exp $
 
 case ${STAGE} in
 POST-INSTALL)
-       echo "-------------------------------"
-       echo "Initializing MySQL databases..."
-       echo "-------------------------------"
+       ${ECHO} "-------------------------------"
+       ${ECHO} "Initializing MySQL databases..."
+       ${ECHO} "-------------------------------"
        ${PKG_PREFIX}/bin/mysql_install_db --force
        ;;
 esac
diff -r 6577d708206a -r 89ed490e0efa emulators/vmware-module/INSTALL
--- a/emulators/vmware-module/INSTALL   Sat Aug 30 20:05:13 2003 +0000
+++ b/emulators/vmware-module/INSTALL   Sat Aug 30 20:22:49 2003 +0000
@@ -1,10 +1,8 @@
 #!/bin/sh
 #
-# $NetBSD: INSTALL,v 1.2 2002/11/06 00:14:26 wiz Exp $
+# $NetBSD: INSTALL,v 1.3 2003/08/30 20:22:51 jlam Exp $
 
 case $2 in
-PRE-INSTALL)
-       ;;
 POST-INSTALL)
        /bin/cat << EOF
 ===========================================================================
@@ -29,9 +27,4 @@
 ===========================================================================
 EOF
        ;;
-*)
-       echo "Unexpected argument: $2"
-       exit 1
-       ;;
 esac
-exit 0
diff -r 6577d708206a -r 89ed490e0efa emulators/vmware-module3/INSTALL
--- a/emulators/vmware-module3/INSTALL  Sat Aug 30 20:05:13 2003 +0000
+++ b/emulators/vmware-module3/INSTALL  Sat Aug 30 20:22:49 2003 +0000
@@ -1,10 +1,8 @@
 #!/bin/sh
 #
-# $NetBSD: INSTALL,v 1.1.1.1 2003/02/16 19:43:36 bad Exp $
+# $NetBSD: INSTALL,v 1.2 2003/08/30 20:22:52 jlam Exp $
 
 case $2 in
-PRE-INSTALL)
-       ;;
 POST-INSTALL)
        /bin/cat << EOF
 ===========================================================================
@@ -29,9 +27,4 @@
 ===========================================================================
 EOF
        ;;
-*)
-       echo "Unexpected argument: $2"
-       exit 1
-       ;;
 esac
-exit 0
diff -r 6577d708206a -r 89ed490e0efa fonts/ja-kappa20/DEINSTALL
--- a/fonts/ja-kappa20/DEINSTALL        Sat Aug 30 20:05:13 2003 +0000
+++ b/fonts/ja-kappa20/DEINSTALL        Sat Aug 30 20:22:49 2003 +0000
@@ -1,26 +1,12 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.1.1.1 2003/03/15 20:40:56 kei Exp $
+# $NetBSD: DEINSTALL,v 1.2 2003/08/30 20:22:52 jlam Exp $
 
 ALIAS=@FONTDIR@/fonts.alias
 
 case ${STAGE} in
-PRE-DEINSTALL)
-       ;;
-
-DEINSTALL)
-       ;;
-
 POST-DEINSTALL)
        ${SED} -e '/^-- BEGIN Kappa20 --/,/^-- END Kappa20 --/d' \
            < ${ALIAS} > ${ALIAS}.new
        ${MV} ${ALIAS}.new ${ALIAS}
        mkfontdir @FONTDIR@
        ;;
-
-*)
-       ${ECHO} "Unexpected argument: ${STAGE}"
-       exit 1
-       ;;
-
 esac
diff -r 6577d708206a -r 89ed490e0efa fonts/ja-kappa20/INSTALL
--- a/fonts/ja-kappa20/INSTALL  Sat Aug 30 20:05:13 2003 +0000
+++ b/fonts/ja-kappa20/INSTALL  Sat Aug 30 20:22:49 2003 +0000
@@ -1,19 +1,14 @@
-#!/bin/sh
-#
-# $NetBSD: INSTALL,v 1.1.1.1 2003/03/15 20:40:56 kei Exp $
+# $NetBSD: INSTALL,v 1.2 2003/08/30 20:22:52 jlam Exp $
 
 ALIAS=@FONTDIR@/fonts.alias
 
 case ${STAGE} in
-PRE-INSTALL)
-       ;;
-
 POST-INSTALL)
        ${ECHO} '-- BEGIN Kappa20 --' >> ${ALIAS}
        ${CAT} @ALIAS_KAPPA@ >> ${ALIAS}
        ${ECHO} >> ${ALIAS}
        ${ECHO} '!! kappa20 generic aliases' >> ${ALIAS}
-       $CAT @ALIAS_KAPPA@ | \
+       ${CAT} @ALIAS_KAPPA@ | \
                ${GREP} 'kappa-.*-kappa-' | \
                ${SED} -e 's,kappa-,misc-,' >> ${ALIAS}
        ${CAT} @ALIAS_KAPPA@ | \
@@ -23,10 +18,4 @@
        ${ECHO} '-- END Kappa20 --' >> ${ALIAS}
        mkfontdir @FONTDIR@
        ;;
-
-*)
-       ${ECHO} "Unexpected argument: ${STAGE}"
-       exit 1
-       ;;
-
 esac
diff -r 6577d708206a -r 89ed490e0efa fonts/ja-shinonome/DEINSTALL
--- a/fonts/ja-shinonome/DEINSTALL      Sat Aug 30 20:05:13 2003 +0000
+++ b/fonts/ja-shinonome/DEINSTALL      Sat Aug 30 20:22:49 2003 +0000
@@ -1,26 +1,12 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.1.1.1 2003/03/15 20:57:50 kei Exp $
+# $NetBSD: DEINSTALL,v 1.2 2003/08/30 20:22:52 jlam Exp $
 
 ALIAS=@FONTDIR@/fonts.alias
 
 case ${STAGE} in
-PRE-DEINSTALL)
-       ;;
-
-DEINSTALL)
-       ;;
-
 POST-DEINSTALL)
        ${SED} -e '/^-- BEGIN shinonome --/,/^-- END shinonome --/d' \
            < ${ALIAS} > ${ALIAS}.new
        ${MV} ${ALIAS}.new ${ALIAS}
        mkfontdir @FONTDIR@
        ;;
-
-*)
-       ${ECHO} "Unexpected argument: ${STAGE}"



Home | Main Index | Thread Index | Old Index