add bnetd port
This commit is contained in:
parent
9ab9d458d5
commit
61e4ec6e24
33
games/bnetd/Makefile
Normal file
33
games/bnetd/Makefile
Normal file
@ -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 <bsd.port.mk>
|
3
games/bnetd/files/md5
Normal file
3
games/bnetd/files/md5
Normal file
@ -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
|
44
games/bnetd/patches/patch-aa
Normal file
44
games/bnetd/patches/patch-aa
Normal file
@ -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}
|
11
games/bnetd/patches/patch-ab
Normal file
11
games/bnetd/patches/patch-ab
Normal file
@ -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;
|
||||
|
19
games/bnetd/patches/patch-ac
Normal file
19
games/bnetd/patches/patch-ac
Normal file
@ -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/
|
||||
|
1
games/bnetd/pkg/COMMENT
Normal file
1
games/bnetd/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
Bnetd is a Battle.net(r) server emulator.
|
1
games/bnetd/pkg/DESCR
Normal file
1
games/bnetd/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
Bnetd is a program that will eventually emulate a Battle.net(r) server.
|
17
games/bnetd/pkg/PLIST
Normal file
17
games/bnetd/pkg/PLIST
Normal file
@ -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 "***"
|
Loading…
Reference in New Issue
Block a user