2000-07-27 05:40:55 +00:00
|
|
|
# New ports collection makefile for: jwhois
|
|
|
|
# Date created: 15 Jul 2000
|
|
|
|
# Whom: matusita@jp.FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= jwhois
|
2003-11-10 15:00:10 +00:00
|
|
|
PORTVERSION= 3.2.2
|
2005-03-08 12:41:26 +00:00
|
|
|
PORTREVISION= 4
|
2000-07-27 05:40:55 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= jwhois
|
|
|
|
|
2002-03-15 15:47:40 +00:00
|
|
|
MAINTAINER= matusita@FreeBSD.org
|
2003-02-22 15:51:59 +00:00
|
|
|
COMMENT=An improved WHOIS client capable of selecting server to query
|
2000-07-27 05:40:55 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2004-02-04 04:36:30 +00:00
|
|
|
USE_GETTEXT= yes
|
2000-07-27 05:40:55 +00:00
|
|
|
USE_GMAKE= yes
|
2001-01-16 17:33:20 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib"
|
2004-04-15 13:21:02 +00:00
|
|
|
CONFIGURE_ARGS= --localstatedir=${PREFIX}/var/jwhois
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB= NLS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB= NLS=""
|
|
|
|
.endif
|
2000-07-27 05:40:55 +00:00
|
|
|
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
|
2002-02-09 09:53:54 +00:00
|
|
|
MANLANG= "" sv
|
2000-07-27 05:40:55 +00:00
|
|
|
MAN1= jwhois.1
|
2004-04-15 13:21:02 +00:00
|
|
|
INFO= jwhois
|
2000-07-27 05:40:55 +00:00
|
|
|
|
2005-03-08 12:41:26 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${FILESDIR}/jwhois.conf)
|
|
|
|
JWHOIS_CONF_SRC=${FILESDIR}/jwhois.conf
|
|
|
|
.else
|
|
|
|
JWHOIS_CONF_SRC=${WRKSRC}/example/jwhois.conf
|
|
|
|
.endif
|
|
|
|
|
2000-07-27 05:40:55 +00:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${PREFIX}/var/jwhois
|
|
|
|
${CHOWN} :nogroup ${PREFIX}/var/jwhois
|
|
|
|
${CHMOD} g+w ${PREFIX}/var/jwhois
|
2002-03-15 16:53:34 +00:00
|
|
|
${CHOWN} :nogroup ${PREFIX}/bin/jwhois
|
|
|
|
${CHMOD} g+s ${PREFIX}/bin/jwhois
|
2005-03-08 12:41:26 +00:00
|
|
|
${INSTALL_DATA} ${JWHOIS_CONF_SRC} ${PREFIX}/etc/jwhois.conf.sample
|
2001-04-02 05:29:06 +00:00
|
|
|
if [ ! -f ${PREFIX}/etc/jwhois.conf ]; then ${INSTALL_DATA} ${PREFIX}/etc/jwhois.conf.sample ${PREFIX}/etc/jwhois.conf; fi
|
2000-07-27 05:40:55 +00:00
|
|
|
|
2005-03-08 12:41:26 +00:00
|
|
|
.include <bsd.port.post.mk>
|