From a60422d258770004725be72328e46c3ac39c5a31 Mon Sep 17 00:00:00 2001 From: matusita Date: Tue, 8 Mar 2005 12:41:26 +0000 Subject: Install the latest jwhois.conf file that comes from jwhois CVS repository. - fetch jwhois.conf rev 1.106[1] via viewcvs. - put it to files/jwhois.conf - make a typo fix (s/whios/whois/g;) to files/jwhois.conf (this change will be submitted to original author very soon) [1] http://savannah.gnu.org/cgi-bin/viewcvs/jwhois/jwhois/example/jwhois.conf This commit makes content change, so bump PORTREVISION. Enjoy. Suggested by: Shinichiro Komatsu (via ReichaNet channel) --- net/jwhois/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'net/jwhois/Makefile') diff --git a/net/jwhois/Makefile b/net/jwhois/Makefile index cd6451daf9b7..e7c1a17d6d54 100644 --- a/net/jwhois/Makefile +++ b/net/jwhois/Makefile @@ -7,7 +7,7 @@ PORTNAME= jwhois PORTVERSION= 3.2.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= jwhois @@ -33,13 +33,21 @@ MANLANG= "" sv MAN1= jwhois.1 INFO= jwhois +.include + +.if exists(${FILESDIR}/jwhois.conf) +JWHOIS_CONF_SRC=${FILESDIR}/jwhois.conf +.else +JWHOIS_CONF_SRC=${WRKSRC}/example/jwhois.conf +.endif + 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 + ${INSTALL_DATA} ${JWHOIS_CONF_SRC} ${PREFIX}/etc/jwhois.conf.sample if [ ! -f ${PREFIX}/etc/jwhois.conf ]; then ${INSTALL_DATA} ${PREFIX}/etc/jwhois.conf.sample ${PREFIX}/etc/jwhois.conf; fi -.include +.include -- cgit