summaryrefslogtreecommitdiff
path: root/net/jwhois
diff options
context:
space:
mode:
authorMakoto Matsushita <matusita@FreeBSD.org>2002-03-15 16:53:34 +0000
committerMakoto Matsushita <matusita@FreeBSD.org>2002-03-15 16:53:34 +0000
commitb39c04de3409e962067acda1da7d2066c14d404c (patch)
tree4599adf7e06653b6083a116d39590525b60c5a4c /net/jwhois
parentFix pkg-plist (diff)
Fix the problem that the jwhois datacache mechanism is not working properly.
In src/Makefile.am rev 1.18, install-exec-hook: is disappeared (I dunno why, CVS commit log doesn't answer my question). As a result, jwhois binary is not chgrp(1)ed, so do it in Makefile. pkg-plist should be fixed to include (empty) datacache directory (that's long standing bug since the beginning of this port, sorry).
Notes
Notes: svn path=/head/; revision=56158
Diffstat (limited to 'net/jwhois')
-rw-r--r--net/jwhois/Makefile2
-rw-r--r--net/jwhois/pkg-plist1
2 files changed, 3 insertions, 0 deletions
diff --git a/net/jwhois/Makefile b/net/jwhois/Makefile
index 4bec7c033bff..3c186e4a22b8 100644
--- a/net/jwhois/Makefile
+++ b/net/jwhois/Makefile
@@ -29,6 +29,8 @@ post-install:
${MKDIR} ${PREFIX}/var/jwhois
${CHOWN} :nogroup ${PREFIX}/var/jwhois
${CHMOD} g+w ${PREFIX}/var/jwhois
+ ${CHOWN} :nogroup ${PREFIX}/bin/jwhois
+ ${CHMOD} g+s ${PREFIX}/bin/jwhois
${INSTALL_DATA} ${WRKSRC}/example/jwhois.conf ${PREFIX}/etc/jwhois.conf.sample
if [ ! -f ${PREFIX}/etc/jwhois.conf ]; then ${INSTALL_DATA} ${PREFIX}/etc/jwhois.conf.sample ${PREFIX}/etc/jwhois.conf; fi
diff --git a/net/jwhois/pkg-plist b/net/jwhois/pkg-plist
index 2c89883003ff..53de324357e2 100644
--- a/net/jwhois/pkg-plist
+++ b/net/jwhois/pkg-plist
@@ -12,6 +12,7 @@ share/locale/sv/LC_MESSAGES/jwhois.mo
@unexec rmdir %D/share/locale/*/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/* 2>/dev/null || true
@unexec rmdir %D/share/locale 2>/dev/null || true
+@exec mkdir -p %D/var/jwhois 2>/dev/null || true
@unexec rm -f %D/var/jwhois/jwhois.db 2>/dev/null || true
@unexec rmdir %D/var/jwhois 2>/dev/null || true
@unexec rmdir %D/var 2>/dev/null || true