summaryrefslogtreecommitdiff
path: root/net/jwhois
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-11-25 19:43:58 +0000
committerjlam <jlam@pkgsrc.org>2001-11-25 19:43:58 +0000
commit26464aacae1d4dbf924116d0263515bf3ddf00a7 (patch)
tree79e0a5523e417412136d2e69ad73d2a57f3b8ba6 /net/jwhois
parent3f8b0469a6f1186f193a1f9887179e1a6cd0ddc7 (diff)
downloadpkgsrc-26464aacae1d4dbf924116d0263515bf3ddf00a7.tar.gz
Use the general INSTALL/DEINSTALL scripts and look for config files in
${PKG_SYSCONFDIR}.
Diffstat (limited to 'net/jwhois')
-rw-r--r--net/jwhois/DEINSTALL28
-rw-r--r--net/jwhois/INSTALL28
-rw-r--r--net/jwhois/Makefile10
3 files changed, 8 insertions, 58 deletions
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"