fix for package building

This commit is contained in:
brad 1999-04-01 00:05:44 +00:00
parent fbd0c215fe
commit 35458e2fe0
2 changed files with 33 additions and 25 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 1999/03/31 03:23:47 brad Exp $
# $OpenBSD: Makefile,v 1.3 1999/04/01 00:05:44 brad Exp $
DISTNAME= bnetd-0.4.1
CATEGORIES= games
@ -13,22 +13,31 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bnclient ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bnpass ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bnetd ${PREFIX}/sbin
${INSTALL_DATA_DIR} /etc/bnetd
${INSTALL_DATA_DIR} /etc/bnetd/files
${INSTALL_DATA_DIR} /etc/bnetd/users
${INSTALL_DATA} ${WRKSRC}/../conf/bnetd.conf /etc/bnetd
${INSTALL_DATA} ${WRKSRC}/../conf/bnetd_default_user /etc/bnetd
${INSTALL_DATA} ${WRKSRC}/../files/ad0512b.pcx /etc/bnetd/files
${INSTALL_MAN_DIR} ${PREFIX}/share/doc/bnetd
${INSTALL_MAN} ${WRKSRC}/../CHANGELOG ${PREFIX}/share/doc/bnetd
${INSTALL_MAN} ${WRKSR}/../README ${PREFIX}/share/doc/bnetd
${INSTALL_MAN} ${WRKSR}/../TODO ${PREFIX}/share/doc/bnetd
${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
${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"
@if [ -d /etc/bnetd ]; then \
${ECHO} "*** Your config files have NOT been changed"; \
else \
${MKDIR} /etc/bnetd; \
${MKDIR} /etc/bnetd/files; \
${MKDIR} /etc/bnetd/users; \
cp ${PREFIX}/lib/bnetd/bnetd.conf.sample /etc/bnetd/bnetd.conf; \
cp ${PREFIX}/lib/bnetd/bnetd_default_user.sample /etc/bnetd/bnetd_default_user; \
cp ${PREFIX}/lib/bnetd/files/ad0512b.pcx.sample /etc/bnetd/files/ad0512b.pcx; \
${ECHO} "*** config files have been copied into /etc/bnetd"; \
fi
@${ECHO} ""
post-install:
@${ECHO} "***"
@${ECHO} "*** Finished installing bnetd."
@${ECHO} "*** Please take a look at the sample bnetd config file /etc/bnetd/bnetd.conf
@${ECHO} "*** and make any necessary modifications before running."
@${ECHO} "***"
.include <bsd.port.mk>

View File

@ -2,17 +2,16 @@ bin/bnbot
bin/bnclient
bin/bnpass
sbin/bnetd
@exec if [ ! -d /etc/bnetd ]; then mkdir /etc/bnetd ; mkdir /etc/bnetd/files ; mkdir /etc/bnetd/users ; fi
lib/bnetd/bnetd.conf.sample
@exec if [ ! -d /etc/bnetd ]; then cp %D/%F /etc/bnetd/bnetd.conf; fi
lib/bnetd/bnetd_default_user.sample
@exec if [ ! -d /etc/bnetd ]; then cp %D/%F /etc/bnetd/bnetd_default_user; fi
lib/bnetd/files/ad0512b.pcx.sample
@exec if [ ! -d /etc/bnetd ]; then cp %D/%F /etc/bnetd/files/ad0512b.pcx; fi
share/doc/bnetd/CHANGELOG
share/doc/bnetd/README
share/doc/bnetd/TODO
@dirrm lib/bnetd/files
@dirrm lib/bnetd
@dirrm share/doc/bnetd
@exec echo "***"
@exec echo "*** Finished installing bnetd."
@exec echo "*** Please take a look at the sample bnetd config file /etc/bnetd/bnetd.conf"
@exec echo "*** and make any necessary modifications before running."
@exec echo "***"
@unexec echo "***"
@unexec echo "*** Finished un-installing bnetd."
@unexec echo "*** You should remove the bnetd config files in /etc/bnetd"
@unexec echo "*** if you won't be installing bnetd again."
@unexec echo "***"