Date: Wed, 19 Jan 2005 01:01:01 +0200 (EET) From: "Max E. Kuznecov" <mek@mek.uz.ua> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/76445: New port: Free Blizzard Battle.net emulation software Message-ID: <200501182301.j0IN11pH038977@syhpoon-hq.ein.uz.ua> Resent-Message-ID: <200501182310.j0INALVs080656@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 76445 >Category: ports >Synopsis: New port: Free Blizzard Battle.net emulation software >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 18 23:10:18 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Max E. Kuznecov >Release: FreeBSD 4.10-RELEASE-p3 i386 >Organization: NGX Software >Environment: System: FreeBSD syhpoon-hq.ein.uz.ua 4.10-RELEASE-p3 FreeBSD 4.10-RELEASE-p3 #5: Fri Oct 8 13:26:37 EEST 2004 max@syhpoon-hq.ein.uz.ua:/usr/src/sys/compile/DOM i386 >Description: Free Blizzard Battle.net emulation software >How-To-Repeat: >Fix: --- pvpgn.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pvpgn # pvpgn/files # pvpgn/files/patch-aa # pvpgn/files/patch-ab # pvpgn/files/bnetd.sh # pvpgn/Makefile # pvpgn/distinfo # pvpgn/pkg-deinstall # pvpgn/pkg-descr # pvpgn/pkg-install # pvpgn/pkg-plist # echo c - pvpgn mkdir -p pvpgn > /dev/null 2>&1 echo c - pvpgn/files mkdir -p pvpgn/files > /dev/null 2>&1 echo x - pvpgn/files/patch-aa sed 's/^X//' >pvpgn/files/patch-aa << 'END-of-pvpgn/files/patch-aa' X--- Makefile.in.orig Wed Jan 12 22:35:56 2005 X+++ Makefile.in Wed Jan 12 22:38:58 2005 X@@ -663,8 +663,8 @@ X ${INSTALL_DIRS} ${DESTDIR}/${confdir} X @list='${CONFS}'; for p in $$list; do \ X if test -f ${SRC_CONFDIR}/$$p; then \ X- ${ECHO} " ${INSTALL_DATA} ${SRC_CONFDIR}/$$p ${DESTDIR}/${confdir}"; \ X- ${INSTALL_DATA} ${SRC_CONFDIR}/$$p ${DESTDIR}/${confdir}; \ X+ ${ECHO} " ${INSTALL_DATA} ${SRC_CONFDIR}/$$p-sample ${DESTDIR}/${confdir}"; \ X+ ${INSTALL_DATA} ${SRC_CONFDIR}/$$p ${DESTDIR}/${confdir}/$$p-sample; \ X else :; fi; \ X done X END-of-pvpgn/files/patch-aa echo x - pvpgn/files/patch-ab sed 's/^X//' >pvpgn/files/patch-ab << 'END-of-pvpgn/files/patch-ab' X--- ../conf/bnetd.conf.in.orig Wed Jan 12 23:00:53 2005 X+++ ../conf/bnetd.conf.in Tue Jan 18 23:57:43 2005 X@@ -15,8 +15,8 @@ X # a leading '#'). If none are specified, the userid will not be changed. # X #----------------------------------------------------------------------------# X X-#effective_user = games X-#effective_group = games X+effective_user = bnetd X+effective_group = bnetd X X # effective_user = #12 X # effective_group = #20 X@@ -75,14 +75,14 @@ X ipbanfile = /usr/local/etc/bnban.conf X helpfile = /usr/local/etc/bnhelp.conf X mpqfile = /usr/local/etc/autoupdate.conf X-logfile = /usr/local/var/bnetd.log X+logfile = /var/log/bnetd/bnetd.log X realmfile = /usr/local/etc/realm.conf X maildir = /usr/local/var/bnmail X versioncheck_file = /usr/local/etc/versioncheck.conf X mapsfile = /usr/local/etc/bnmaps.conf X xplevelfile = /usr/local/etc/bnxplevel.conf X xpcalcfile = /usr/local/etc/bnxpcalc.conf X-#pidfile = /usr/local/var/bnetd.pid X+pidfile = /var/run/bnetd/bnetd.pid X ladderdir = /usr/local/var/ladders X command_groups_file = /usr/local/etc/command_groups.conf X tournament_file = /usr/local/etc/tournament.conf X@@ -112,8 +112,7 @@ X # warn X # error X # fatal X-loglevels = fatal,error,warn,info,debug,trace X-#loglevels = fatal,error,warn,info X+loglevels = fatal,error,warn X X # # X ############################################################################## X@@ -300,7 +299,7 @@ X # List additional game types to be counted as ladder games X # Curently allowed types: topvbot, melee, ffa, oneonone X # Example: ladder_games = "topvbot,oneonone" X-ladder_games = "none" X+ladder_games = "topvbot,oneonone" X X # If additional game types are configured (see above) to be counted as ladder X # games then this setting configures a game name prefix to make only games END-of-pvpgn/files/patch-ab echo x - pvpgn/files/bnetd.sh sed 's/^X//' >pvpgn/files/bnetd.sh << 'END-of-pvpgn/files/bnetd.sh' X#!/bin/sh X# X# $FreeBSD$ X# X X# PROVIDE: bnetd X# REQUIRE: DAEMON X# BEFORE: LOGIN X# KEYWORD: FreeBSD shutdown X X# X# Add the following lines to /etc/rc.conf to enable bnetd: X# X#bnetd_enable="YES" X# X# See bnetd(1) for flags X# X X. %%RC_SUBR%% X Xname=bnetd Xrcvar=`set_rcvar` X Xcommand=%%PREFIX%%/sbin/bnetd Xpidfile=/var/run/pvpgn/bnetd.pid Xrequired_files=%%PREFIX%%/etc/pvpgn/bnetd.conf X Xstop_postcmd=stop_postcmd X Xstop_postcmd() X{ X rm -f $pidfile X} X X# set defaults X Xbnetd_enable=${bnetd_enable:-"NO"} Xbnetd_flags=${bnetd_flags:-""} X Xload_rc_config $name Xrun_rc_command "$1" END-of-pvpgn/files/bnetd.sh echo x - pvpgn/Makefile sed 's/^X//' >pvpgn/Makefile << 'END-of-pvpgn/Makefile' X# New ports collection makefile for: pvpgn X# Date created: 19 January 2005 X# Whom: mek X# X# $FreeBSD$ X# X XPORTNAME= pvpgn XPORTVERSION= 1.7.4 XCATEGORIES= games XMASTER_SITES= http://download.berlios.de/pvpgn/ XDISTFILES= ${EXTRACT_ONLY} \ X pvpgn-support-1.0.tar.gz XDIST_SUBDIR= pvpgn XEXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} X XMAINTAINER= mek@mek.uz.ua XCOMMENT= Free Blizzard Battle.net emulation software X XPKGINSTALL?= ${WRKDIR}/pkg-install XPKGDEINSTALL?= ${WRKDIR}/pkg-deinstall XUSE_BZIP2=yes XUSE_GMAKE=yes XSED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' X XUSE_RC_SUBR= yes XRC_DIR= ${PREFIX}/etc/rc.d XRC_SUFX= .sh XSED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \ X -e 's|%%RC_DIR%%|${RC_DIR}|g' \ X -e 's|%%RC_SUFX%%|${RC_SUFX}|g' X XPLIST_SUB+= RC_SUFX=${RC_SUFX} X XWRKSRC= ${WRKDIR}/${DISTNAME}/src X XHAS_CONFIGURE=yes XCONFIGURE_ARGS+= \ X --prefix=${PREFIX} \ X --sysconfdir=${PREFIX}/etc/pvpgn \ X --localstatedir=${DATADIR} X XMAN1= bnbot.1 bnchat.1 bnetd.1 bnftp.1 bni2tga.1 bnibuild.1 \ X bniextract.1 bnilist.1 bnpass.1 \ X bnstat.1 bntrackd.1 tgainfo.1 XMAN5= bnetd.conf.5 bntext.5 X X.if defined(WITH_MYSQL_VER) XWITH_MYSQL= YES X.if ${WITH_MYSQL_VER} == 3 XWANT_MYSQL_VER= 323 X.endif X.endif X X.if defined(WITH_MYSQL) XUSE_MYSQL=yes XCONFIGURE_ARGS+=--with-mysql=${LOCALBASE} X.endif X X.if defined(WITH_PGSQL) XPOSTGRESQL_PORT?= databases/postgresql7 XLIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT} XCONFIGURE_ARGS+=--with-pgsql=${LOCALBASE} X.endif X X## support files X XSUPPORT_SUFFX= .tar.gz XSUPPORT_FILES= pvpgn-support-1.0 X Xpre-fetch: X @${ECHO} "" X @${ECHO} "You may use the following build options:" X @${ECHO} "" X @${ECHO} " WITH_MYSQL=yes Include MySQL user account support" X @${ECHO} " WITH_PGSQL=yes Include PostgreSQL user account support" X @${ECHO} "" X Xpost-extract: X @${MKDIR} ${WRKSRC}/${SUPPORT_FILES} X @${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${SUPPORT_FILES}${SUPPORT_SUFFX} X Xpost-build: X @${SED} ${SED_SCRIPT} ${FILESDIR}/bnetd.sh > ${WRKSRC}/bnetd.sh X @${SED} "s|%%PVPGN_DIR%%|${DATADIR}|g" ${PKGDIR}/pkg-install > ${WRKDIR}/pkg-install X @${SED} "s|%%PVPGN_DIR%%|${DATADIR}|g" ${PKGDIR}/pkg-deinstall > ${WRKDIR}/pkg-deinstall X Xpost-install: X @${INSTALL_SCRIPT} ${WRKSRC}/bnetd.sh ${PREFIX}/etc/rc.d/bnetd${RC_SUFX} X @${ECHO_MSG} ">>> installing support files ..." X.for i in IX86ver1.mpq PMACver1.mpq WAR3IX86.mpq XMACver1.mpq \ X bnserver-D2DV.ini bnserver-D2XP.ini bnserver-WAR3.ini bnserver.ini \ X icons-WAR3.bni icons.bni icons_STAR.bni matchmaking-war3-default.dat \ X matchmaking-war3-enUS.dat X ${INSTALL_DATA} ${WRKSRC}/${SUPPORT_FILES}/${i} ${DATADIR}/files X.endfor X X## Additional documentation X X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X.for i in INSTALL.unix PORTS README.fdwatch README.storage bnmotd.txt X ${INSTALL_MAN} ${WRKSRC}/../docs/${i} ${DOCSDIR} X.endfor X.endif X X @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL X X.include <bsd.port.mk> END-of-pvpgn/Makefile echo x - pvpgn/distinfo sed 's/^X//' >pvpgn/distinfo << 'END-of-pvpgn/distinfo' XMD5 (pvpgn/pvpgn-1.7.4.tar.bz2) = 1827a7c1ef90c7f9525acd37e83432ad XSIZE (pvpgn/pvpgn-1.7.4.tar.bz2) = 951430 XMD5 (pvpgn/pvpgn-support-1.0.tar.gz) = 8ba36144ea3a7efe200536c142bb7886 XSIZE (pvpgn/pvpgn-support-1.0.tar.gz) = 126047 END-of-pvpgn/distinfo echo x - pvpgn/pkg-deinstall sed 's/^X//' >pvpgn/pkg-deinstall << 'END-of-pvpgn/pkg-deinstall' X#!/bin/sh X Xif [ "$2" != "POST-DEINSTALL" ]; then X exit 0 Xfi X XUSER=bnetd XLOGDIR=/var/log/pvpgn XPIDDIR=/var/run/pvpgn X Xif pw usershow "${USER}" 2>/dev/null 1>&2; then X echo "To delete PvPGN user permanently, use 'pw userdel ${USER}'" Xfi X Xif pw groupshow "${USER}" 2>/dev/null 1>&2; then X echo "To delete PvPGN group permanently, use 'pw groupdel ${USER}'" Xfi X Xrm -Rf ${PIDDIR} X Xecho "If you wish to delete pvpgn data and log files, " Xecho "remove '%%PVPGN_DIR%%' and '${LOGDIR}' directories." X Xexit 0 END-of-pvpgn/pkg-deinstall echo x - pvpgn/pkg-descr sed 's/^X//' >pvpgn/pkg-descr << 'END-of-pvpgn/pkg-descr' XPvPGN (Player vs Player Gaming Network) is free software that emulates a XBlizzard Battle.net server. It currently supports all Battle.net games, Xsuch as StarCraft, Diablo II, and Warcraft III, and gives you the power Xto run your own server, manage your own users, run your own tournaments, etc. X XWWW: http://pvpgn.berlios.de X X- Max E. Kuznecov Xmek@mek.uz.ua END-of-pvpgn/pkg-descr echo x - pvpgn/pkg-install sed 's/^X//' >pvpgn/pkg-install << 'END-of-pvpgn/pkg-install' X#!/bin/sh X XPATH=/bin:/usr/sbin X Xcase $2 in XPOST-INSTALL) X USER=bnetd X GROUP=${USER} X UID=700 X GID=${UID} X HOME_DIR=/nonexistent X LOGDIR=/var/log/pvpgn X PIDDIR=/var/run/pvpgn X X if pw group show "${GROUP}" 2>/dev/null; then X echo "You already have a group \"${GROUP}\", so I will use it." X else X if pw groupadd ${GROUP} -g ${GID}; then X echo "Added group \"${GROUP}\"." X else X echo "Adding group \"${GROUP}\" failed..." X exit 1 X fi X fi X X if pw user show "${USER}" 2>/dev/null; then X echo "You already have a user \"${USER}\", so I will use it." X else X if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ X -d ${HOME_DIR} -s /sbin/nologin -c "Bnetd user" X then X echo "Added user \"${USER}\"." X else X echo "Adding user \"${USER}\" failed..." X exit 1 X fi X fi X X mkdir -p %%PVPGN_DIR%%/bak/charinfo X mkdir -p %%PVPGN_DIR%%/bak/charsave X mkdir -p %%PVPGN_DIR%%/bnmail X mkdir -p %%PVPGN_DIR%%/chanlogs X mkdir -p %%PVPGN_DIR%%/charinfo X mkdir -p %%PVPGN_DIR%%/charsave X mkdir -p %%PVPGN_DIR%%/clans X mkdir -p %%PVPGN_DIR%%/ladders X mkdir -p %%PVPGN_DIR%%/reports X mkdir -p %%PVPGN_DIR%%/status X mkdir -p %%PVPGN_DIR%%/teams X mkdir -p %%PVPGN_DIR%%/users X mkdir -p %%PVPGN_DIR%%/userscdb X X chown -R ${USER}:${GROUP} %%PVPGN_DIR%% X mkdir -m 750 ${LOGDIR} ${PIDDIR} 2> /dev/null X chown -R ${USER}:${GROUP} ${LOGDIR} ${PIDDIR} X exit 0 X ;; Xesac END-of-pvpgn/pkg-install echo x - pvpgn/pkg-plist sed 's/^X//' >pvpgn/pkg-plist << 'END-of-pvpgn/pkg-plist' Xbin/bnbot Xbin/bncdb Xbin/bnchat Xbin/bnftp Xbin/bni2tga Xbin/bnibuild Xbin/bniextract Xbin/bnilist Xbin/bnpass Xbin/bnstat Xbin/tgainfo X%%PORTDOCS%%%%DOCSDIR%%/INSTALL.unix X%%PORTDOCS%%%%DOCSDIR%%/PORTS X%%PORTDOCS%%%%DOCSDIR%%/README.fdwatch X%%PORTDOCS%%%%DOCSDIR%%/README.storage X%%PORTDOCS%%%%DOCSDIR%%/bnmotd.txt Xetc/pvpgn/ad.conf-sample Xetc/pvpgn/address_translation.conf-sample Xetc/pvpgn/anongame_infos.conf-sample Xetc/pvpgn/autoupdate.conf-sample Xetc/pvpgn/bnalias.conf-sample Xetc/pvpgn/bnban.conf-sample Xetc/pvpgn/bnetd.conf-sample Xetc/pvpgn/bnetd_default_user.cdb-sample Xetc/pvpgn/bnetd_default_user.plain-sample Xetc/pvpgn/bnhelp.conf-sample Xetc/pvpgn/bnissue.txt-sample Xetc/pvpgn/bnmaps.conf-sample Xetc/pvpgn/bnmotd.txt-sample Xetc/pvpgn/bnxpcalc.conf-sample Xetc/pvpgn/bnxplevel.conf-sample Xetc/pvpgn/channel.conf-sample Xetc/pvpgn/command_groups.conf-sample Xetc/pvpgn/d2cs.conf-sample Xetc/pvpgn/d2dbs.conf-sample Xetc/pvpgn/d2server.ini-sample Xetc/pvpgn/news.txt-sample Xetc/pvpgn/realm.conf-sample Xetc/pvpgn/sql_DB_layout.conf-sample Xetc/pvpgn/supportfile.conf-sample Xetc/pvpgn/topics.conf-sample Xetc/pvpgn/tournament.conf-sample Xetc/pvpgn/versioncheck.conf-sample Xetc/rc.d/bnetd%%RC_SUFX%% Xsbin/bnetd Xsbin/bntrackd Xsbin/d2cs Xsbin/d2dbs Xshare/nls/POSIX Xshare/nls/en_US.US-ASCII Xshare/pvpgn/files/IX86ver1.mpq Xshare/pvpgn/files/PMACver1.mpq Xshare/pvpgn/files/WAR3IX86.mpq Xshare/pvpgn/files/XMACver1.mpq Xshare/pvpgn/files/ad000001.mng Xshare/pvpgn/files/ad000001.smk Xshare/pvpgn/files/ad000004.mng Xshare/pvpgn/files/bnserver-D2DV.ini Xshare/pvpgn/files/bnserver-D2XP.ini Xshare/pvpgn/files/bnserver-WAR3.ini Xshare/pvpgn/files/bnserver.ini Xshare/pvpgn/files/chathelp-war3-default.txt Xshare/pvpgn/files/chathelp-war3-enUS.txt Xshare/pvpgn/files/chathelp-war3-frFR.txt Xshare/pvpgn/files/chathelp-war3-ruRU.txt Xshare/pvpgn/files/chathelp-war3-zhCN.txt Xshare/pvpgn/files/icons-WAR3.bni Xshare/pvpgn/files/icons.bni Xshare/pvpgn/files/icons_STAR.bni Xshare/pvpgn/files/matchmaking-war3-default.dat Xshare/pvpgn/files/matchmaking-war3-enUS.dat Xshare/pvpgn/files/newaccount-default.txt Xshare/pvpgn/files/newaccount-enUS.txt Xshare/pvpgn/files/newbie.save Xshare/pvpgn/files/termsofservice-default.txt Xshare/pvpgn/files/termsofservice-enUS.txt Xshare/pvpgn/files/tos-unicode_BRA.txt Xshare/pvpgn/files/tos-unicode_CHI.txt Xshare/pvpgn/files/tos-unicode_DEU.txt Xshare/pvpgn/files/tos-unicode_ENU.txt Xshare/pvpgn/files/tos-unicode_ESP.txt Xshare/pvpgn/files/tos-unicode_FRA.txt Xshare/pvpgn/files/tos-unicode_HAN.txt Xshare/pvpgn/files/tos-unicode_ITA.txt Xshare/pvpgn/files/tos-unicode_JPN.txt Xshare/pvpgn/files/tos-unicode_KOR.txt Xshare/pvpgn/files/tos-unicode_POL.txt Xshare/pvpgn/files/tos-unicode_POR.txt Xshare/pvpgn/files/tos-unicode_RUS.txt Xshare/pvpgn/files/tos-unicode_SIN.txt Xshare/pvpgn/files/tos-unicode_USA.txt Xshare/pvpgn/files/tos.txt Xshare/pvpgn/files/tos_BRA.txt Xshare/pvpgn/files/tos_CHI.txt Xshare/pvpgn/files/tos_DEU.txt Xshare/pvpgn/files/tos_ENU.txt Xshare/pvpgn/files/tos_ESP.txt Xshare/pvpgn/files/tos_FRA.txt Xshare/pvpgn/files/tos_HAN.txt Xshare/pvpgn/files/tos_ITA.txt Xshare/pvpgn/files/tos_JPN.txt Xshare/pvpgn/files/tos_KOR.txt Xshare/pvpgn/files/tos_POL.txt Xshare/pvpgn/files/tos_POR.txt Xshare/pvpgn/files/tos_RUS.txt Xshare/pvpgn/files/tos_SIN.txt Xshare/pvpgn/files/tos_USA.txt X@dirrm share/pvpgn/bak/charinfo X@dirrm share/pvpgn/bak/charsave X@dirrm share/pvpgn/bak X@dirrm share/pvpgn/bnmail X@dirrm share/pvpgn/chanlogs X@dirrm share/pvpgn/charinfo X@dirrm share/pvpgn/charsave X@dirrm share/pvpgn/clans X@dirrm share/pvpgn/files X@dirrm share/pvpgn/ladders X@dirrm share/pvpgn/reports X@dirrm share/pvpgn/status X@dirrm share/pvpgn/teams X@dirrm share/pvpgn/users X@dirrm share/pvpgn/userscdb X@unexec rmdir %D/share/pvpgn 2>/dev/null || true X@dirrm etc/pvpgn X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-pvpgn/pkg-plist exit --- pvpgn.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501182301.j0IN11pH038977>