freebsd-ports/net/rwhois/Makefile
Renato Botelho e16bd8d84a - Update to 1.5.9.5
- Use REINPLACE_CMD instead simple patch
- Use PORTDOCS
- Take maintainership
2005-09-30 12:37:37 +00:00

48 lines
1.3 KiB
Makefile

# New ports collection makefile for: rwhois
# Date created: May 9th 1997
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= rwhois
PORTVERSION= 1.5.9.5
CATEGORIES= net ipv6
MASTER_SITES= http://www.rwhois.net/ftp/ \
http://www.rwhois.net/ftp/older_releases/
DISTNAME= ${PORTNAME}d-${PORTVERSION}
MAINTAINER= garga@FreeBSD.org
COMMENT= The Internic referral whois server
USE_REINPLACE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}/lib/rwhois
MAKE_ENV= RWHOIS_ROOT_DIR=${PREFIX}/lib/rwhois
MAKE_ARGS= -E RWHOIS_ROOT_DIR
BINOWN= bin
BINGRP= bin
MAN8= rwhois_indexer.8 rwhoisd.8
PORTDOCS= INSTALL.html TODO UPGRADE operations_guide.html \
operations_guide.txt rfc2167.txt security.html security.txt
post-patch:
@${REINPLACE_CMD} -e 's,userid: rwhoisd,userid: nobody,' \
${WRKSRC}/sample.data/rwhoisd.conf
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/rwhois_indexer.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/doc/rwhoisd.8 ${PREFIX}/man/man8
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
.endif
@${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/rwhoisd.sh startup file..."
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/rwhoisd.sh ${PREFIX}/etc/rc.d/rwhoisd.sh
.include <bsd.port.mk>