1999-04-27 01:06:57 +00:00
|
|
|
# New ports collection makefile for: bnetd
|
1999-08-01 02:57:56 +00:00
|
|
|
# Version required: 0.4.11
|
1999-04-27 01:06:57 +00:00
|
|
|
# Date created: 24 April 1999
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
|
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
1999-04-27 01:06:57 +00:00
|
|
|
#
|
|
|
|
|
1999-10-16 03:41:33 +00:00
|
|
|
DISTNAME= bnetd-0.4.18
|
1999-05-13 09:18:15 +00:00
|
|
|
CATEGORIES= games net
|
1999-04-27 01:06:57 +00:00
|
|
|
MASTER_SITES= http://www.bnetd.org/files/
|
|
|
|
|
|
|
|
MAINTAINER= ijliao@csie.nctu.edu.tw
|
|
|
|
|
1999-07-09 00:49:33 +00:00
|
|
|
MAN1= bnchat.1 bnetd.1 bnftp.1 bnpass.1
|
1999-04-27 01:06:57 +00:00
|
|
|
MAN4= bnetd.conf.4 bntext.4
|
|
|
|
MLINKS= bntext.4 bnmotd.txt.4 bntext.4 bnnews.txt.4
|
|
|
|
|
1999-08-01 02:57:56 +00:00
|
|
|
do-configure:
|
1999-08-03 03:42:10 +00:00
|
|
|
@(cd ${WRKSRC}/src; ${SETENV} CFLAGS="${CFLAGS}" \
|
|
|
|
./configure --prefix=${PREFIX} ${CONFIGURE_TARGET})
|
1999-08-01 02:57:56 +00:00
|
|
|
|
1999-04-27 01:06:57 +00:00
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC}/src; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS})
|
|
|
|
|
|
|
|
do-install:
|
1999-08-03 03:42:10 +00:00
|
|
|
cd ${WRKSRC}/bin; ${INSTALL_PROGRAM} * ${PREFIX}/bin
|
|
|
|
cd ${WRKSRC}/sbin; ${INSTALL_PROGRAM} * ${PREFIX}/sbin
|
1999-04-27 01:06:57 +00:00
|
|
|
cd ${WRKSRC}/man; ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1; ${INSTALL_MAN} ${MAN4} ${MAN4PREFIX}/man/man4
|
1999-08-01 02:57:56 +00:00
|
|
|
${MKDIR} ${PREFIX}/bnetd; ${CP} -R ${WRKSRC}/files ${WRKSRC}/users ${WRKSRC}/conf ${WRKSRC}/reports ${PREFIX}/bnetd
|
1999-04-27 01:06:57 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/bnetd.sh ]; then \
|
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/bnetd.sh startup file."; \
|
|
|
|
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/bnetd.sh; \
|
1999-05-01 16:59:31 +00:00
|
|
|
${ECHO} "cd ${PREFIX}; [ -x sbin/bnetd -a -f bnetd/conf/bnetd.conf ] && sbin/bnetd -c bnetd/conf/bnetd.conf > /dev/null && ${ECHO} -n ' bnetd'" >> ${PREFIX}/etc/rc.d/bnetd.sh; \
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 751 ${PREFIX}/etc/rc.d/bnetd.sh; \
|
1999-04-27 01:06:57 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|