openbsd-ports/games/bnetd/Makefile

68 lines
2.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.5 1999/05/06 02:15:12 brad Exp $
1999-03-29 21:10:44 -05:00
1999-03-30 22:23:47 -05:00
DISTNAME= bnetd-0.4.1
1999-03-29 21:10:44 -05:00
CATEGORIES= games
MASTER_SITES= http://www.bnetd.org/files/
BROKEN= "Newer version available"
1999-03-29 21:10:44 -05:00
MAINTAINER= brad@openbsd.org
1999-03-30 22:23:47 -05:00
WRKSRC= ${WRKDIR}/${DISTNAME}/src/
1999-03-29 21:10:44 -05:00
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bnbot ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bnclient ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bnpass ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bnetd ${PREFIX}/sbin
${INSTALL_MAN_DIR} ${PREFIX}/share/doc/bnetd
${INSTALL_MAN} ${WRKSRC}/../CHANGELOG ${PREFIX}/share/doc/bnetd
1999-03-31 19:05:44 -05:00
${INSTALL_MAN} ${WRKSRC}/../README ${PREFIX}/share/doc/bnetd
${INSTALL_MAN} ${WRKSRC}/../TODO ${PREFIX}/share/doc/bnetd
${MKDIR} ${PREFIX}/lib/bnetd
${MKDIR} ${PREFIX}/lib/bnetd/files
1999-04-04 01:59:21 -05:00
${MKDIR} ${PREFIX}/lib/bnetd/users
1999-03-31 19:05:44 -05:00
${INSTALL_DATA} ${WRKSRC}/../conf/bnetd.conf ${PREFIX}/lib/bnetd/bnetd.conf.sample
${INSTALL_DATA} ${WRKSRC}/../conf/bnetd_default_user ${PREFIX}/lib/bnetd/bnetd_default_user.sample
${INSTALL_DATA} ${WRKSRC}/../files/ad0512b.pcx ${PREFIX}/lib/bnetd/files/ad0512b.pcx.sample
@${ECHO} ""
@${ECHO} "*** The latest sample config files"
@${ECHO} "*** can be found in ${PREFIX}/lib/bnetd"
1999-04-04 01:59:21 -05:00
@if [ ! -d /etc/bnetd ]; then \
1999-03-31 19:05:44 -05:00
${MKDIR} /etc/bnetd; \
1999-04-04 01:59:21 -05:00
fi
@if [ ! -d /etc/bnetd ]; then \
1999-03-31 19:05:44 -05:00
${MKDIR} /etc/bnetd/files; \
1999-04-04 01:59:21 -05:00
fi
@if [ ! -d /etc/bnetd ]; then \
1999-03-31 19:05:44 -05:00
${MKDIR} /etc/bnetd/users; \
1999-04-04 01:59:21 -05:00
fi
@if [ ! -f /etc/bnetd/bnetd.conf ]; then \
1999-03-31 19:05:44 -05:00
cp ${PREFIX}/lib/bnetd/bnetd.conf.sample /etc/bnetd/bnetd.conf; \
1999-04-04 01:59:21 -05:00
${ECHO} ""; \
${ECHO} "*** bnetd.conf has been copied into /etc/bnetd"; \
else \
${ECHO} ""; \
${ECHO} "*** Your /etc/bnetd/bnetd.conf has NOT been changed"; \
fi
@if [ ! -f /etc/bnetd/bnetd_default_user ]; then \
1999-03-31 19:05:44 -05:00
cp ${PREFIX}/lib/bnetd/bnetd_default_user.sample /etc/bnetd/bnetd_default_user; \
1999-04-04 01:59:21 -05:00
${ECHO} ""; \
${ECHO} "*** bnetd_default_user has been copied into /etc/bnetd"; \
else \
${ECHO} ""; \
${ECHO} "*** Your /etc/bnetd/bnetd_default_user has NOT been changed"; \
fi
@if [ ! -f /etc/bnetd/files/ad0512b.pcx ]; then \
1999-03-31 19:05:44 -05:00
cp ${PREFIX}/lib/bnetd/files/ad0512b.pcx.sample /etc/bnetd/files/ad0512b.pcx; \
1999-04-04 01:59:21 -05:00
${ECHO} ""; \
${ECHO} "*** ad0512b.pcx has been copied into /etc/bnetd/files"; \
else \
${ECHO} ""; \
${ECHO} "*** Your /etc/bnetd/files/ad0512b.pcx has NOT been changed"; \
fi
1999-03-31 19:05:44 -05:00
@${ECHO} ""
1999-03-29 21:10:44 -05:00
.include <bsd.port.mk>