pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/jwhois Make JWHOIS_ENABLE_CACHE work: cache is ena...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3b5ad740c23a
branches:  trunk
changeset: 488387:3b5ad740c23a
user:      kim <kim%pkgsrc.org@localhost>
date:      Sat Jan 29 18:10:05 2005 +0000

description:
Make JWHOIS_ENABLE_CACHE work: cache is enabled by default by the
configure script, so it must be explicitly disabled when not wanted.
Using both "with" and "without" explicitly is good practise for any
"--with-foo" option in general.

Bump revision so this is easier to track in case of PR's.

diffstat:

 net/jwhois/Makefile |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 8ac9222d6321 -r 3b5ad740c23a net/jwhois/Makefile
--- a/net/jwhois/Makefile       Sat Jan 29 17:45:35 2005 +0000
+++ b/net/jwhois/Makefile       Sat Jan 29 18:10:05 2005 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.48 2005/01/29 17:45:35 kim Exp $
+# $NetBSD: Makefile,v 1.49 2005/01/29 18:10:05 kim Exp $
 #
 
 DISTNAME=              jwhois-3.2.2
-PKGREVISION=           13
+PKGREVISION=           14
 CATEGORIES=            net
 MASTER_SITES=          ${MASTER_SITE_GNU:=jwhois/}
 
@@ -25,13 +25,16 @@
 
 .if defined(JWHOIS_ENABLE_CACHE)
 CONFIGURE_ARGS+=       --with-cache
+CONF_FILES_PERMS=      /dev/null /${VARBASE}/db/jwhois.db      \
+                       ${ROOT_USER} nogroup 0666
+.else
+CONFIGURE_ARGS+=       --without-cache
 .endif
 
 EGDIR=                 ${PREFIX}/share/examples/jwhois
 CONF_FILES=            ${EGDIR}/jwhois.conf.default    \
                        ${PKG_SYSCONFDIR}/jwhois.conf
-CONF_FILES_PERMS=      /dev/null /var/db/jwhois.db     \
-                       ${ROOT_USER} nogroup 0664
+
 post-install:
        ${INSTALL_DATA_DIR} ${EGDIR}
        ${INSTALL_DATA} ${WRKSRC}/example/jwhois.conf   \



Home | Main Index | Thread Index | Old Index