diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-01-20 13:46:41 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-01-20 13:46:41 +0000 |
commit | db5f4533d8d419ffc79ae3b19f163fe0e758ed71 (patch) | |
tree | d37699dbb3131cad3aecd64d49e57c56a4faaa99 /games/pvpgn/files | |
parent | fb8fb374fdeeadfb97ba27ae87fd658880222193 (diff) |
Notes
Diffstat (limited to 'games/pvpgn/files')
-rw-r--r-- | games/pvpgn/files/bnetd.sh | 41 | ||||
-rw-r--r-- | games/pvpgn/files/patch-Makefile.in | 13 | ||||
-rw-r--r-- | games/pvpgn/files/patch-conf-bnetd.conf.in | 49 |
3 files changed, 103 insertions, 0 deletions
diff --git a/games/pvpgn/files/bnetd.sh b/games/pvpgn/files/bnetd.sh new file mode 100644 index 000000000000..aa7fabc20fbd --- /dev/null +++ b/games/pvpgn/files/bnetd.sh @@ -0,0 +1,41 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: bnetd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable bnetd: +# +#bnetd_enable="YES" +# +# See bnetd(1) for flags +# + +. %%RC_SUBR%% + +name=bnetd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/bnetd +pidfile=/var/run/pvpgn/bnetd.pid +required_files=%%PREFIX%%/etc/pvpgn/bnetd.conf + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +# set defaults + +bnetd_enable=${bnetd_enable:-"NO"} +bnetd_flags=${bnetd_flags:-""} + +load_rc_config $name +run_rc_command "$1" diff --git a/games/pvpgn/files/patch-Makefile.in b/games/pvpgn/files/patch-Makefile.in new file mode 100644 index 000000000000..46fa3ef15e06 --- /dev/null +++ b/games/pvpgn/files/patch-Makefile.in @@ -0,0 +1,13 @@ +--- Makefile.in.orig Wed Jan 12 22:35:56 2005 ++++ Makefile.in Wed Jan 12 22:38:58 2005 +@@ -663,8 +663,8 @@ + ${INSTALL_DIRS} ${DESTDIR}/${confdir} + @list='${CONFS}'; for p in $$list; do \ + if test -f ${SRC_CONFDIR}/$$p; then \ +- ${ECHO} " ${INSTALL_DATA} ${SRC_CONFDIR}/$$p ${DESTDIR}/${confdir}"; \ +- ${INSTALL_DATA} ${SRC_CONFDIR}/$$p ${DESTDIR}/${confdir}; \ ++ ${ECHO} " ${INSTALL_DATA} ${SRC_CONFDIR}/$$p-sample ${DESTDIR}/${confdir}"; \ ++ ${INSTALL_DATA} ${SRC_CONFDIR}/$$p ${DESTDIR}/${confdir}/$$p-sample; \ + else :; fi; \ + done + diff --git a/games/pvpgn/files/patch-conf-bnetd.conf.in b/games/pvpgn/files/patch-conf-bnetd.conf.in new file mode 100644 index 000000000000..a2e359b630a0 --- /dev/null +++ b/games/pvpgn/files/patch-conf-bnetd.conf.in @@ -0,0 +1,49 @@ +--- ../conf/bnetd.conf.in.orig Wed Jan 12 23:00:53 2005 ++++ ../conf/bnetd.conf.in Tue Jan 18 23:57:43 2005 +@@ -15,8 +15,8 @@ + # a leading '#'). If none are specified, the userid will not be changed. # + #----------------------------------------------------------------------------# + +-#effective_user = games +-#effective_group = games ++effective_user = bnetd ++effective_group = bnetd + + # effective_user = #12 + # effective_group = #20 +@@ -75,14 +75,14 @@ + ipbanfile = /usr/local/etc/bnban.conf + helpfile = /usr/local/etc/bnhelp.conf + mpqfile = /usr/local/etc/autoupdate.conf +-logfile = /usr/local/var/bnetd.log ++logfile = /var/log/bnetd/bnetd.log + realmfile = /usr/local/etc/realm.conf + maildir = /usr/local/var/bnmail + versioncheck_file = /usr/local/etc/versioncheck.conf + mapsfile = /usr/local/etc/bnmaps.conf + xplevelfile = /usr/local/etc/bnxplevel.conf + xpcalcfile = /usr/local/etc/bnxpcalc.conf +-#pidfile = /usr/local/var/bnetd.pid ++pidfile = /var/run/bnetd/bnetd.pid + ladderdir = /usr/local/var/ladders + command_groups_file = /usr/local/etc/command_groups.conf + tournament_file = /usr/local/etc/tournament.conf +@@ -112,8 +112,7 @@ + # warn + # error + # fatal +-loglevels = fatal,error,warn,info,debug,trace +-#loglevels = fatal,error,warn,info ++loglevels = fatal,error,warn + + # # + ############################################################################## +@@ -300,7 +299,7 @@ + # List additional game types to be counted as ladder games + # Curently allowed types: topvbot, melee, ffa, oneonone + # Example: ladder_games = "topvbot,oneonone" +-ladder_games = "none" ++ladder_games = "topvbot,oneonone" + + # If additional game types are configured (see above) to be counted as ladder + # games then this setting configures a game name prefix to make only games |