1997-05-30 20:13:24 +00:00
|
|
|
# New ports collection makefile for: rwhois
|
|
|
|
# Version required: 1.0b9.2
|
|
|
|
# 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
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= rwhois-1.0B9.2
|
|
|
|
PKGNAME= rwhois-1.0b9.2
|
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.rwhois.net/pub/
|
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= jfitz@FreeBSD.org
|
1997-05-30 20:13:24 +00:00
|
|
|
|
1999-06-26 22:58:41 +00:00
|
|
|
.if !exists(/usr/include/tcpd.h)
|
1998-09-17 10:53:31 +00:00
|
|
|
LIB_DEPENDS= wrap.7:${PORTSDIR}/security/tcp_wrapper
|
1999-06-26 22:58:41 +00:00
|
|
|
.endif
|
1997-05-30 20:13:24 +00:00
|
|
|
|
1997-06-03 06:11:35 +00:00
|
|
|
HAS_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}/lib/rwhois
|
1997-05-30 20:13:24 +00:00
|
|
|
INSTALL_TARGET= install install-sample-data install-chroot
|
|
|
|
|
|
|
|
MAN8= rmkdbindex.8 rwhoisd.8
|
|
|
|
|
2000-02-27 09:00:35 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-03-01 07:01:37 +00:00
|
|
|
.if ${OSVERSION} < 400011
|
2000-03-01 18:37:14 +00:00
|
|
|
LIBCVERSION= 3.1
|
2000-03-01 07:01:37 +00:00
|
|
|
.else
|
2000-03-01 18:37:14 +00:00
|
|
|
LIBCVERSION= 4
|
2000-02-27 09:00:35 +00:00
|
|
|
.endif
|
2000-03-01 18:37:14 +00:00
|
|
|
PLIST_SUB= LIBCVERSION=${LIBCVERSION}
|
2000-02-27 09:00:35 +00:00
|
|
|
|
1997-05-30 20:13:24 +00:00
|
|
|
post-install:
|
|
|
|
${MKDIR} -p ${PREFIX}/share/doc/rwhois
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/rwhois
|
|
|
|
${MV} ${PREFIX}/share/doc/rwhois/rmkdbindex.8 ${PREFIX}/man/man8
|
|
|
|
${MV} ${PREFIX}/share/doc/rwhois/rwhoisd.8 ${PREFIX}/man/man8
|
1999-08-27 22:30:39 +00:00
|
|
|
@ ${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/rwhoisd.sh startup file..."
|
|
|
|
@ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/rwhoisd.sh
|
|
|
|
@ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
|
|
|
@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
|
|
|
@ ${ECHO} "# remove or comment the following line and uncomment the one below it once you have" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
|
|
|
@ ${ECHO} "# configured your server's data" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
|
|
|
@ ${ECHO} "${ECHO} \"rwhoisd not started; sample data still in place. See ${PREFIX}/share/doc/rwhois for details.\"" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
|
|
|
@ ${ECHO} "#[ -x ${PREFIX}/lib/rwhois/sbin/rwhoisd ] && ${PREFIX}/lib/rwhois/sbin/rwhoisd -c ${PREFIX}/lib/rwhois/rwhois.conf & && ${ECHO} -n ' rwhoisd'" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 751 ${PREFIX}/etc/rc.d/rwhoisd.sh
|
1997-05-30 20:13:24 +00:00
|
|
|
|
2000-02-27 09:00:35 +00:00
|
|
|
.include <bsd.port.post.mk>
|