2006-06-27 18:17:49 +00:00
|
|
|
# New ports collection makefile for: rwhoisd
|
1997-05-30 20:13:24 +00:00
|
|
|
# Date created: May 9th 1997
|
|
|
|
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
|
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1997-05-30 20:13:24 +00:00
|
|
|
#
|
|
|
|
|
2006-06-27 18:17:49 +00:00
|
|
|
PORTNAME= rwhoisd
|
2006-06-05 13:17:43 +00:00
|
|
|
PORTVERSION= 1.5.9.6
|
2006-06-25 15:33:56 +00:00
|
|
|
PORTREVISION= 1
|
2000-11-28 15:31:16 +00:00
|
|
|
CATEGORIES= net ipv6
|
2005-04-14 15:46:02 +00:00
|
|
|
MASTER_SITES= http://www.rwhois.net/ftp/ \
|
2005-09-30 12:37:37 +00:00
|
|
|
http://www.rwhois.net/ftp/older_releases/
|
1997-05-30 20:13:24 +00:00
|
|
|
|
2005-09-30 12:37:37 +00:00
|
|
|
MAINTAINER= garga@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= The Internic referral whois server
|
1997-05-30 20:13:24 +00:00
|
|
|
|
2006-06-25 15:33:56 +00:00
|
|
|
OPTIONS= IPV6 "Enable IPV6 support" On \
|
|
|
|
LARGEFILE "Enable largefile support (> 2Gb)" Off
|
|
|
|
|
2000-11-28 15:31:16 +00:00
|
|
|
HAS_CONFIGURE= yes
|
2006-06-25 15:33:56 +00:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
|
|
|
|
|
|
|
USE_RC_SUBR= rwhoisd
|
1997-05-30 20:13:24 +00:00
|
|
|
|
2000-11-28 15:31:16 +00:00
|
|
|
BINOWN= bin
|
|
|
|
BINGRP= bin
|
1997-05-30 20:13:24 +00:00
|
|
|
|
2000-11-28 15:31:16 +00:00
|
|
|
MAN8= rwhois_indexer.8 rwhoisd.8
|
2000-02-27 09:00:35 +00:00
|
|
|
|
2005-09-30 12:37:37 +00:00
|
|
|
PORTDOCS= INSTALL.html TODO UPGRADE operations_guide.html \
|
2000-11-28 15:31:16 +00:00
|
|
|
operations_guide.txt rfc2167.txt security.html security.txt
|
2000-02-27 09:00:35 +00:00
|
|
|
|
2006-06-25 15:33:56 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_IPV6)
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LARGEFILE)
|
|
|
|
CONFIGURE_ARGS+= --enable-largefile
|
|
|
|
.endif
|
|
|
|
|
2005-09-30 12:37:37 +00:00
|
|
|
post-patch:
|
2006-06-25 15:33:56 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,rwhoisd/samples,rwhoisd,' \
|
|
|
|
${WRKSRC}/sample.data/Makefile.in
|
2005-09-30 12:37:37 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,userid: rwhoisd,userid: nobody,' \
|
2006-06-25 15:33:56 +00:00
|
|
|
-e 's,pid-file: rwhoisd.pid,pid-file: /var/run/rwhoisd/rwhoisd.pid,' \
|
2005-09-30 12:37:37 +00:00
|
|
|
${WRKSRC}/sample.data/rwhoisd.conf
|
2006-06-25 15:33:56 +00:00
|
|
|
@${REINPLACE_CMD} -E 's,"(.*\.log)","/var/log/rwhoisd/\1",g' \
|
|
|
|
${WRKSRC}/common/conf.h
|
2005-09-30 12:37:37 +00:00
|
|
|
|
1997-05-30 20:13:24 +00:00
|
|
|
post-install:
|
2006-06-25 15:33:56 +00:00
|
|
|
@${MKDIR} /var/log/rwhoisd /var/run/rwhoisd
|
|
|
|
@${CHOWN} -R nobody /var/log/rwhoisd /var/run/rwhoisd
|
2000-11-28 15:31:16 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/rwhois_indexer.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/rwhoisd.8 ${PREFIX}/man/man8
|
|
|
|
.if !defined(NOPORTDOCS)
|
2003-10-27 20:49:26 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-06-25 15:33:56 +00:00
|
|
|
. for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
|
|
|
|
. endfor
|
2000-11-28 15:31:16 +00:00
|
|
|
.endif
|
1997-05-30 20:13:24 +00:00
|
|
|
|
2006-06-25 15:33:56 +00:00
|
|
|
.include <bsd.port.post.mk>
|