From 61e4ec6e2409a4d5d960326afe2b30bdd37ec2cd Mon Sep 17 00:00:00 2001 From: brad Date: Tue, 30 Mar 1999 02:10:44 +0000 Subject: [PATCH] add bnetd port --- games/bnetd/Makefile | 33 +++++++++++++++++++++++++++ games/bnetd/files/md5 | 3 +++ games/bnetd/patches/patch-aa | 44 ++++++++++++++++++++++++++++++++++++ games/bnetd/patches/patch-ab | 11 +++++++++ games/bnetd/patches/patch-ac | 19 ++++++++++++++++ games/bnetd/pkg/COMMENT | 1 + games/bnetd/pkg/DESCR | 1 + games/bnetd/pkg/PLIST | 17 ++++++++++++++ 8 files changed, 129 insertions(+) create mode 100644 games/bnetd/Makefile create mode 100644 games/bnetd/files/md5 create mode 100644 games/bnetd/patches/patch-aa create mode 100644 games/bnetd/patches/patch-ab create mode 100644 games/bnetd/patches/patch-ac create mode 100644 games/bnetd/pkg/COMMENT create mode 100644 games/bnetd/pkg/DESCR create mode 100644 games/bnetd/pkg/PLIST diff --git a/games/bnetd/Makefile b/games/bnetd/Makefile new file mode 100644 index 00000000000..d7195ff0c6c --- /dev/null +++ b/games/bnetd/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 1999/03/30 02:10:44 brad Exp $ + +DISTNAME= bnetd-0.4 +CATEGORIES= games +MASTER_SITES= http://www.bnetd.org/files/ + +MAINTAINER= brad@openbsd.org + +WRKSRC= ${WRKDIR}/bnetd-0.4/src/ + +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_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 + +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 diff --git a/games/bnetd/files/md5 b/games/bnetd/files/md5 new file mode 100644 index 00000000000..fd59e286cc9 --- /dev/null +++ b/games/bnetd/files/md5 @@ -0,0 +1,3 @@ +MD5 (bnetd-0.4.tar.gz) = 75fd50a9e98351b2c928264a4d6c27b8 +RMD160 (bnetd-0.4.tar.gz) = bff4a328705acf4cbb8cad49f4fe9a8c3efdfa95 +SHA1 (bnetd-0.4.tar.gz) = dbab2a86da48fb64df3115f418e360ed028ebd7a diff --git a/games/bnetd/patches/patch-aa b/games/bnetd/patches/patch-aa new file mode 100644 index 00000000000..d267253349c --- /dev/null +++ b/games/bnetd/patches/patch-aa @@ -0,0 +1,44 @@ +--- Makefile.orig Sat Mar 27 12:40:24 1999 ++++ Makefile Sun Mar 28 19:14:05 1999 +@@ -22,8 +22,8 @@ + #CC = cc + + # GCC +-CC = gcc -pipe -g -O2 +-#CC = gcc -pipe -g -O2 -Wall -Wshadow -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wnested-externs ++#CC = gcc -pipe -g -O2 ++CC = gcc -pipe -g -O2 -Wall -Wshadow -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wnested-externs + #CC = gcc -pipe -g -O2 -ansi -pedantic -Wall -Wshadow -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wnested-externs + + # Generic +@@ -44,14 +44,13 @@ + #LIBS = -L${HOME}/lib/.linux-2.0.36 -lefence + #LIBS = -L${HOME}/lib/.linux-2.0.36 -lmem_test -lefence + +-BNETDBIN = ../sbin/bnetd +-BNPROXYBIN = ../sbin/bnproxy +-BNCLIENTBIN = ../bin/bnclient +-BNPASSBIN = ../bin/bnpass +-BNBOTBIN = ../bin/bnbot +- +-BINS = ${BNETDBIN} ${BNCLIENTBIN} ${BNPASSBIN} ++BNETDBIN = bnetd ++BNPROXYBIN = bnproxy ++BNCLIENTBIN = bnclient ++BNPASSBIN = bnpass ++BNBOTBIN = bnbot + ++BINS = ${BNETDBIN} ${BNCLIENTBIN} ${BNPASSBIN} ${BNBOTBIN} + + BNETOBJS = main.o server.o connection.o message.o hexdump.o bnetd.o channel.o game.o command.o account.o account_wrap.o convert.o packet.o queue.o util.o network.o prefs.o timestamp.o list.o eventlog.o bnettime.o filetransfer.o bnethash.o bnethashconv.o + BNCLIENTOBJS = bnclient.o packet.o queue.o convert.o hexdump.o network.o eventlog.o bnethash.o bnethashconv.o +@@ -59,9 +58,7 @@ + BNBOTOBJS = bnbot.o + BNPASSOBJS = bnpass.o bnethash.o eventlog.o + +- + all: ${BINS} +- + + ${BNPASSBIN}: ${BNPASSOBJS} + ${CC} ${BNPASSOBJS} -o $@ ${LIBS} diff --git a/games/bnetd/patches/patch-ab b/games/bnetd/patches/patch-ab new file mode 100644 index 00000000000..4057bdf1551 --- /dev/null +++ b/games/bnetd/patches/patch-ab @@ -0,0 +1,11 @@ +--- prefs.h.orig Sun Mar 28 19:23:28 1999 ++++ prefs.h Sun Mar 28 19:23:36 1999 +@@ -21,7 +21,7 @@ + #ifndef INCLUDED_PREFS_PROTOS + #define INCLUDED_PREFS_PROTOS + +-#define DEFAULT_CONF_FILE "conf/bnetd.conf" ++#define DEFAULT_CONF_FILE "/etc/bnetd/bnetd.conf" + + extern char const * preffile; + diff --git a/games/bnetd/patches/patch-ac b/games/bnetd/patches/patch-ac new file mode 100644 index 00000000000..a48e5f6547e --- /dev/null +++ b/games/bnetd/patches/patch-ac @@ -0,0 +1,19 @@ +--- ../conf/bnetd.conf.orig Sun Mar 28 20:25:09 1999 ++++ ../conf/bnetd.conf Sun Mar 28 20:26:55 1999 +@@ -9,11 +9,11 @@ + # Do NOT use quotes around directories. + # + +-filedir = files/ +-userdir = users/ +-logfile = conf/bnetd.log +-defacct = conf/bnetd_default_user +-motdfile = conf/motd ++filedir = /etc/bnetd/files/ ++userdir = /etc/bnetd/users/ ++logfile = /etc/bnetd/bnetd.log ++defacct = /etc/bnetd/bnetd_default_user ++motdfile = /etc/bnetd/motd + adfile = ad0512b.pcx + adlink = http://bnetd.unleashed.org/ + diff --git a/games/bnetd/pkg/COMMENT b/games/bnetd/pkg/COMMENT new file mode 100644 index 00000000000..db120f56f4d --- /dev/null +++ b/games/bnetd/pkg/COMMENT @@ -0,0 +1 @@ +Bnetd is a Battle.net(r) server emulator. diff --git a/games/bnetd/pkg/DESCR b/games/bnetd/pkg/DESCR new file mode 100644 index 00000000000..f2b004f637c --- /dev/null +++ b/games/bnetd/pkg/DESCR @@ -0,0 +1 @@ +Bnetd is a program that will eventually emulate a Battle.net(r) server. diff --git a/games/bnetd/pkg/PLIST b/games/bnetd/pkg/PLIST new file mode 100644 index 00000000000..b6af3405be0 --- /dev/null +++ b/games/bnetd/pkg/PLIST @@ -0,0 +1,17 @@ +bin/bnbot +bin/bnclient +bin/bnpass +sbin/bnetd +share/doc/bnetd/CHANGELOG +share/doc/bnetd/README +@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 "***"