1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/games/bnetd/Makefile
Steve Price 96baa56100 Update to version 0.4.11.
PR:		12641
Submitted by:	maintainer
1999-08-01 02:57:56 +00:00

40 lines
1.4 KiB
Makefile

# New ports collection makefile for: bnetd
# Version required: 0.4.11
# Date created: 24 April 1999
# Whom: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
#
# $Id: Makefile,v 1.4 1999/07/09 00:49:29 cpiazza Exp $
#
DISTNAME= bnetd-0.4.11
CATEGORIES= games net
MASTER_SITES= http://www.bnetd.org/files/
MAINTAINER= ijliao@csie.nctu.edu.tw
MAN1= bnchat.1 bnetd.1 bnftp.1 bnpass.1
MAN4= bnetd.conf.4 bntext.4
MLINKS= bntext.4 bnmotd.txt.4 bntext.4 bnnews.txt.4
do-configure:
@(cd ${WRKSRC}/src; ./configure)
do-build:
@(cd ${WRKSRC}/src; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS})
do-install:
cd ${WRKSRC}/bin; ${INSTALL_PROGRAM} bnbot bnchat bnftp bnpass ${PREFIX}/bin
cd ${WRKSRC}/sbin; ${INSTALL_PROGRAM} bnetd ${PREFIX}/sbin
cd ${WRKSRC}/man; ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1; ${INSTALL_MAN} ${MAN4} ${MAN4PREFIX}/man/man4
${MKDIR} ${PREFIX}/bnetd; ${CP} -R ${WRKSRC}/files ${WRKSRC}/users ${WRKSRC}/conf ${WRKSRC}/reports ${PREFIX}/bnetd
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; \
${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; \
chmod 751 ${PREFIX}/etc/rc.d/bnetd.sh; \
fi
.include <bsd.port.mk>