aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>1999-04-27 09:06:57 +0800
committertaoka <taoka@FreeBSD.org>1999-04-27 09:06:57 +0800
commite2d5c50836149393c2e89c9c818eef31646fab66 (patch)
tree87ca981bb679f24e2581725142046483717a2899 /games
parentbf844227b0e0ded32279780c3c913a8df93d02ed (diff)
downloadfreebsd-ports-gnome-e2d5c50836149393c2e89c9c818eef31646fab66.tar.gz
freebsd-ports-gnome-e2d5c50836149393c2e89c9c818eef31646fab66.tar.zst
freebsd-ports-gnome-e2d5c50836149393c2e89c9c818eef31646fab66.zip
A game server for StarCraft
PR: 11306 Sumbitted by: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
Diffstat (limited to 'games')
-rw-r--r--games/bnetd/Makefile36
-rw-r--r--games/bnetd/distinfo1
-rw-r--r--games/bnetd/pkg-comment1
-rw-r--r--games/bnetd/pkg-descr9
-rw-r--r--games/bnetd/pkg-plist5
5 files changed, 52 insertions, 0 deletions
diff --git a/games/bnetd/Makefile b/games/bnetd/Makefile
new file mode 100644
index 000000000000..045628df08ff
--- /dev/null
+++ b/games/bnetd/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: bnetd
+# Version required: 0.4.6
+# Date created: 24 April 1999
+# Whom: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
+#
+# $Id$
+#
+
+DISTNAME= bnetd-0.4.6
+CATEGORIES= net game
+MASTER_SITES= http://www.bnetd.org/files/
+
+MAINTAINER= ijliao@csie.nctu.edu.tw
+
+MAN1= bnclient.1 bnetd.1 bnpass.1
+MAN4= bnetd.conf.4 bntext.4
+MLINKS= bntext.4 bnmotd.txt.4 bntext.4 bnnews.txt.4
+
+do-build:
+ @(cd ${WRKSRC}/src; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS})
+
+do-install:
+ cd ${WRKSRC}/bin; ${INSTALL_PROGRAM} bnclient 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 ${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>
diff --git a/games/bnetd/distinfo b/games/bnetd/distinfo
new file mode 100644
index 000000000000..07d1ff513e5a
--- /dev/null
+++ b/games/bnetd/distinfo
@@ -0,0 +1 @@
+MD5 (bnetd-0.4.6.tar.gz) = 29e0025babc4f6d7f1eafa86697a6c79
diff --git a/games/bnetd/pkg-comment b/games/bnetd/pkg-comment
new file mode 100644
index 000000000000..fa95815de3c2
--- /dev/null
+++ b/games/bnetd/pkg-comment
@@ -0,0 +1 @@
+A game server for StarCraft
diff --git a/games/bnetd/pkg-descr b/games/bnetd/pkg-descr
new file mode 100644
index 000000000000..01e36af6e2f0
--- /dev/null
+++ b/games/bnetd/pkg-descr
@@ -0,0 +1,9 @@
+Bnetd is a program that will eventually emulate a Blizzard Entertainment's
+Battle.net(r) server. It started on the linux platform, but has since been
+reported to work on *BSD, Solaris, AIX and HP-UX. It should compile and run
+on any standards-based *nix.
+
+Bnetd on WWW : http://www.bnetd.org/
+
+Ying-Chieh Liao
+ijliao@csie.nctu.edu.tw
diff --git a/games/bnetd/pkg-plist b/games/bnetd/pkg-plist
new file mode 100644
index 000000000000..d4699a9b5f2e
--- /dev/null
+++ b/games/bnetd/pkg-plist
@@ -0,0 +1,5 @@
+bin/bnclient
+bin/bnpass
+sbin/bnetd
+etc/rc.d/bnetd.sh
+@unexec rm -rf %D/bnetd 2>/dev/null || true