From 26464aacae1d4dbf924116d0263515bf3ddf00a7 Mon Sep 17 00:00:00 2001 From: jlam Date: Sun, 25 Nov 2001 19:43:58 +0000 Subject: Use the general INSTALL/DEINSTALL scripts and look for config files in ${PKG_SYSCONFDIR}. --- net/jwhois/DEINSTALL | 28 ---------------------------- net/jwhois/INSTALL | 28 ---------------------------- net/jwhois/Makefile | 10 ++++++++-- 3 files changed, 8 insertions(+), 58 deletions(-) delete mode 100644 net/jwhois/DEINSTALL delete mode 100644 net/jwhois/INSTALL (limited to 'net/jwhois') diff --git a/net/jwhois/DEINSTALL b/net/jwhois/DEINSTALL deleted file mode 100644 index d9fa7e6e14f..00000000000 --- a/net/jwhois/DEINSTALL +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# $NetBSD: DEINSTALL,v 1.1 2001/10/31 22:55:53 zuntum Exp $ - -PKGNAME=$1 -STAGE=$2 - -case ${STAGE} in -DEINSTALL) - ;; -POST-DEINSTALL) - DBCACHE=/var/db/jwhois.db - - cat << EOF -=========================================================================== -If you won't be using ${PKGNAME} any longer, you may want to remove the -following files: - - ${DBCACHE} -=========================================================================== -EOF - ;; -*) - echo "Unexpected argument: ${STAGE}" - exit 1 - ;; -esac -exit 0 diff --git a/net/jwhois/INSTALL b/net/jwhois/INSTALL deleted file mode 100644 index 897a58d470d..00000000000 --- a/net/jwhois/INSTALL +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# $NetBSD: INSTALL,v 1.1 2001/10/31 22:55:54 zuntum Exp $ - -PKGNAME=$1 -STAGE=$2 - -case ${STAGE} in -PRE-INSTALL) - ;; -POST-INSTALL) - EXAMPLE_DIR=${PKG_PREFIX}/share/examples - - INSTALL_CACHE="/usr/bin/install -c -o root -g nogroup -m 0664 /dev/null" - DBCACHE=/var/db/jwhois.db - - if [ ! -f ${DBCACHE} ] - then - echo "Creating empty cache file ${DBCACHE}..." - ${INSTALL_CACHE} ${DBCACHE} - fi - ;; -*) - echo "Unexpected argument: ${STAGE}" - exit 1 - ;; -esac -exit 0 diff --git a/net/jwhois/Makefile b/net/jwhois/Makefile index 5cdcb8cee54..a3dbcdcaf1e 100644 --- a/net/jwhois/Makefile +++ b/net/jwhois/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2001/10/31 15:11:24 tv Exp $ +# $NetBSD: Makefile,v 1.15 2001/11/25 19:43:58 jlam Exp $ # DISTNAME= jwhois-3.0.1 @@ -11,15 +11,21 @@ COMMENT= Configurable WHOIS client USE_BUILDLINK_ONLY= # defined GNU_CONFIGURE= # defined -CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} CONFIGURE_ARGS+= --localstatedir=/var/db CONFIGURE_ARGS+= --with-cache INFO_FILES= jwhois.info +EGDIR= ${PREFIX}/share/examples +CONF_FILES= ${EGDIR}/jwhois.conf ${PKG_SYSCONFDIR}/jwhois.conf +CONF_FILES_PERMS= /dev/null /var/db/jwhois.db \ + ${ROOT_USER} nogroup 0664 + post-install: ${INSTALL_DATA} ${WRKSRC}/example/jwhois.conf ${PREFIX}/share/examples PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL .include "../../devel/gettext-lib/buildlink.mk" +.include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3