Index: head/games/pvpgn/Makefile =================================================================== --- head/games/pvpgn/Makefile (revision 179911) +++ head/games/pvpgn/Makefile (revision 179912) @@ -1,108 +1,107 @@ # New ports collection makefile for: pvpgn # Date created: 19 January 2005 # Whom: mek # # $FreeBSD$ # PORTNAME= pvpgn -PORTVERSION= 1.7.9 +PORTVERSION= 1.8.0 CATEGORIES= games -MASTER_SITES= http://download.berlios.de/pvpgn/ +MASTER_SITES= ${MASTER_SITE_BERLIOS} +MASTER_SITE_SUBDIR= pvpgn DISTFILES= ${EXTRACT_ONLY} pvpgn-support-1.0.tar.gz DIST_SUBDIR= pvpgn EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= mek@mek.uz.ua COMMENT= Free Blizzard Battle.net emulation software PKGINSTALL?= ${WRKDIR}/pkg-install PKGDEINSTALL?= ${WRKDIR}/pkg-deinstall USE_BZIP2= yes USE_GMAKE= yes SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' -USE_RC_SUBR= yes RC_DIR= ${PREFIX}/etc/rc.d RC_SUFX= .sh -SED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \ - -e 's|%%RC_DIR%%|${RC_DIR}|g' \ +SED_SCRIPT+= -e 's|%%RC_DIR%%|${RC_DIR}|g' \ -e 's|%%RC_SUFX%%|${RC_SUFX}|g' PLIST_SUB+= RC_SUFX=${RC_SUFX} WRKSRC= ${WRKDIR}/${DISTNAME}/src HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/pvpgn \ - --localstatedir=${DATADIR} + --localstatedir=${DATADIR} --with-libraries=${LOCALBASE}/lib +USE_RC_SUBR= bnetd.sh + MAN1= bnbot.1 bnchat.1 bnetd.1 bnftp.1 bni2tga.1 bnibuild.1 \ bniextract.1 bnilist.1 bnpass.1 bnstat.1 bntrackd.1 tgainfo.1 MAN5= bnetd.conf.5 bntext.5 OPTIONS= MYSQL "Include MySQL user accounts support" off \ PGSQL "Include PostgreSQL user accounts support" off \ SQLITE3 "Include SQLite3 user accounts support" off \ D2 "Enable Diablo II server (D2CS/D2DBS)" on .include .if defined(WITH_MYSQL) USE_MYSQL= yes CONFIGURE_ARGS+=--with-mysql .endif .if defined(WITH_PGSQL) USE_PGSQL= yes CONFIGURE_ARGS+=--with-pgsql .endif .if defined(WITH_SQLITE3) -USE_SQLITE= yes +USE_SQLITE= 3 CONFIGURE_ARGS+=--with-sqlite3 .endif .if defined(WITHOUT_D2) CONFIGURE_ARGS+= --disable-d2cs --disable-d2dbs PLIST_SUB+= WITH_D2="@comment " .else PLIST_SUB+= WITH_D2="" .endif ## support files SUPPORT_SUFFX= .tar.gz SUPPORT_FILES= pvpgn-support-1.0 post-extract: @${MKDIR} ${WRKSRC}/${SUPPORT_FILES} @${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${SUPPORT_FILES}${SUPPORT_SUFFX} post-build: - @${SED} ${SED_SCRIPT} ${FILESDIR}/bnetd.sh > ${WRKSRC}/bnetd.sh @${SED} "s|%%PVPGN_DIR%%|${DATADIR}|g" ${PKGDIR}/pkg-install > ${WRKDIR}/pkg-install @${SED} "s|%%PVPGN_DIR%%|${DATADIR}|g" ${PKGDIR}/pkg-deinstall > ${WRKDIR}/pkg-deinstall post-install: - @${INSTALL_SCRIPT} ${WRKSRC}/bnetd.sh ${PREFIX}/etc/rc.d/bnetd${RC_SUFX} @${ECHO_MSG} ">>> installing support files ..." .for i in IX86ver1.mpq PMACver1.mpq WAR3IX86.mpq XMACver1.mpq \ bnserver-D2DV.ini bnserver-D2XP.ini bnserver-WAR3.ini bnserver.ini \ icons-WAR3.bni icons.bni icons_STAR.bni matchmaking-war3-default.dat \ matchmaking-war3-enUS.dat ${INSTALL_DATA} ${WRKSRC}/${SUPPORT_FILES}/${i} ${DATADIR}/files .endfor ## Additional documentation .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} .for i in INSTALL.unix PORTS README.fdwatch README.storage bnmotd.txt ${INSTALL_MAN} ${WRKSRC}/../docs/${i} ${DOCSDIR} .endfor .endif @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .include Property changes on: head/games/pvpgn/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.9 \ No newline at end of property +1.10 \ No newline at end of property Index: head/games/pvpgn/distinfo =================================================================== --- head/games/pvpgn/distinfo (revision 179911) +++ head/games/pvpgn/distinfo (revision 179912) @@ -1,6 +1,6 @@ -MD5 (pvpgn/pvpgn-1.7.9.tar.bz2) = 08d61ec6d5a791fd631af5ba8431b868 -SHA256 (pvpgn/pvpgn-1.7.9.tar.bz2) = 2e8f87391708c3233ddde3a10ebfb1d52fc96762730b0667adcb6a6bd469ae9e -SIZE (pvpgn/pvpgn-1.7.9.tar.bz2) = 992419 +MD5 (pvpgn/pvpgn-1.8.0.tar.bz2) = 575e2ebd66a7093f76e620b5f6e27d9b +SHA256 (pvpgn/pvpgn-1.8.0.tar.bz2) = 9eb713c8f9ccb297674ab1497f9768c1e623fccce4dbd9758b7aed2f35ffd42d +SIZE (pvpgn/pvpgn-1.8.0.tar.bz2) = 999543 MD5 (pvpgn/pvpgn-support-1.0.tar.gz) = 8ba36144ea3a7efe200536c142bb7886 SHA256 (pvpgn/pvpgn-support-1.0.tar.gz) = f2f832fd6265ae20239fdaa70498ee6bf922020172f47389520e656a3babff2d SIZE (pvpgn/pvpgn-support-1.0.tar.gz) = 126047 Property changes on: head/games/pvpgn/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.6 \ No newline at end of property +1.7 \ No newline at end of property Index: head/games/pvpgn/files/bnetd.sh =================================================================== --- head/games/pvpgn/files/bnetd.sh (revision 179911) +++ head/games/pvpgn/files/bnetd.sh (nonexistent) @@ -1,41 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: bnetd -# REQUIRE: DAEMON -# BEFORE: LOGIN -# KEYWORD: 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" Property changes on: head/games/pvpgn/files/bnetd.sh ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.2 \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Index: head/games/pvpgn/files/bnetd.sh.in =================================================================== --- head/games/pvpgn/files/bnetd.sh.in (nonexistent) +++ head/games/pvpgn/files/bnetd.sh.in (revision 179912) @@ -0,0 +1,41 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: bnetd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: 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" Property changes on: head/games/pvpgn/files/bnetd.sh.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/games/pvpgn/pkg-plist =================================================================== --- head/games/pvpgn/pkg-plist (revision 179911) +++ head/games/pvpgn/pkg-plist (revision 179912) @@ -1,124 +1,124 @@ +@unexec %D/etc/rc.d/bnetd.sh stop > /dev/null 2>&1 || true bin/bnbot bin/bncdb bin/bnchat bin/bnftp bin/bni2tga bin/bnibuild bin/bniextract bin/bnilist bin/bnpass bin/bnstat bin/tgainfo %%PORTDOCS%%%%DOCSDIR%%/INSTALL.unix %%PORTDOCS%%%%DOCSDIR%%/PORTS %%PORTDOCS%%%%DOCSDIR%%/README.fdwatch %%PORTDOCS%%%%DOCSDIR%%/README.storage %%PORTDOCS%%%%DOCSDIR%%/bnmotd.txt etc/pvpgn/ad.conf-sample etc/pvpgn/address_translation.conf-sample etc/pvpgn/anongame_infos.conf-sample etc/pvpgn/autoupdate.conf-sample etc/pvpgn/bnalias.conf-sample etc/pvpgn/bnban.conf-sample etc/pvpgn/bnetd.conf-sample etc/pvpgn/bnetd_default_user.cdb-sample etc/pvpgn/bnetd_default_user.plain-sample etc/pvpgn/bnhelp.conf-sample etc/pvpgn/bnissue.txt-sample etc/pvpgn/bnmaps.conf-sample etc/pvpgn/bnmotd.txt-sample etc/pvpgn/bnxpcalc.conf-sample etc/pvpgn/bnxplevel.conf-sample etc/pvpgn/channel.conf-sample etc/pvpgn/command_groups.conf-sample %%WITH_D2%%etc/pvpgn/d2cs.conf-sample %%WITH_D2%%etc/pvpgn/d2dbs.conf-sample %%WITH_D2%%etc/pvpgn/d2server.ini-sample etc/pvpgn/news.txt-sample etc/pvpgn/realm.conf-sample etc/pvpgn/sql_DB_layout.conf-sample etc/pvpgn/sql_DB_layout2.conf-sample etc/pvpgn/supportfile.conf-sample etc/pvpgn/topics.conf-sample etc/pvpgn/tournament.conf-sample etc/pvpgn/versioncheck.conf-sample -etc/rc.d/bnetd%%RC_SUFX%% sbin/bnetd sbin/bntrackd %%WITH_D2%%sbin/d2cs %%WITH_D2%%sbin/d2dbs %%DATADIR%%/files/IX86ver1.mpq %%DATADIR%%/files/PMACver1.mpq %%DATADIR%%/files/WAR3IX86.mpq %%DATADIR%%/files/XMACver1.mpq %%DATADIR%%/files/ad000001.mng %%DATADIR%%/files/ad000001.smk %%DATADIR%%/files/ad000004.mng %%DATADIR%%/files/bnserver-D2DV.ini %%DATADIR%%/files/bnserver-D2XP.ini %%DATADIR%%/files/bnserver-WAR3.ini %%DATADIR%%/files/bnserver.ini %%DATADIR%%/files/chathelp-war3-default.txt %%DATADIR%%/files/chathelp-war3-enUS.txt %%DATADIR%%/files/chathelp-war3-frFR.txt %%DATADIR%%/files/chathelp-war3-ruRU.txt %%DATADIR%%/files/chathelp-war3-zhCN.txt %%DATADIR%%/files/icons-WAR3.bni %%DATADIR%%/files/icons.bni %%DATADIR%%/files/icons_STAR.bni %%DATADIR%%/files/matchmaking-war3-default.dat %%DATADIR%%/files/matchmaking-war3-enUS.dat %%DATADIR%%/files/newaccount-default.txt %%DATADIR%%/files/newaccount-enUS.txt %%DATADIR%%/files/newbie.save %%DATADIR%%/files/termsofservice-default.txt %%DATADIR%%/files/termsofservice-enUS.txt %%DATADIR%%/files/tos-unicode_BRA.txt %%DATADIR%%/files/tos-unicode_CHI.txt %%DATADIR%%/files/tos-unicode_DEU.txt %%DATADIR%%/files/tos-unicode_ENU.txt %%DATADIR%%/files/tos-unicode_ESP.txt %%DATADIR%%/files/tos-unicode_FRA.txt %%DATADIR%%/files/tos-unicode_HAN.txt %%DATADIR%%/files/tos-unicode_ITA.txt %%DATADIR%%/files/tos-unicode_JPN.txt %%DATADIR%%/files/tos-unicode_KOR.txt %%DATADIR%%/files/tos-unicode_POL.txt %%DATADIR%%/files/tos-unicode_POR.txt %%DATADIR%%/files/tos-unicode_RUS.txt %%DATADIR%%/files/tos-unicode_SIN.txt %%DATADIR%%/files/tos-unicode_USA.txt %%DATADIR%%/files/tos.txt %%DATADIR%%/files/tos_BRA.txt %%DATADIR%%/files/tos_CHI.txt %%DATADIR%%/files/tos_DEU.txt %%DATADIR%%/files/tos_ENU.txt %%DATADIR%%/files/tos_ESP.txt %%DATADIR%%/files/tos_FRA.txt %%DATADIR%%/files/tos_HAN.txt %%DATADIR%%/files/tos_ITA.txt %%DATADIR%%/files/tos_JPN.txt %%DATADIR%%/files/tos_KOR.txt %%DATADIR%%/files/tos_POL.txt %%DATADIR%%/files/tos_POR.txt %%DATADIR%%/files/tos_RUS.txt %%DATADIR%%/files/tos_SIN.txt %%DATADIR%%/files/tos_USA.txt @dirrm %%DATADIR%%/bak/charinfo @dirrm %%DATADIR%%/bak/charsave @dirrm %%DATADIR%%/bak @dirrm %%DATADIR%%/bnmail @dirrm %%DATADIR%%/chanlogs @dirrm %%DATADIR%%/charinfo @dirrm %%DATADIR%%/charsave @dirrm %%DATADIR%%/clans @dirrm %%DATADIR%%/files @dirrm %%DATADIR%%/ladders @dirrm %%DATADIR%%/reports @dirrm %%DATADIR%%/status @dirrm %%DATADIR%%/teams @dirrm %%DATADIR%%/users @dirrm %%DATADIR%%/userscdb @dirrmtry %%DATADIR%% @dirrm etc/pvpgn %%PORTDOCS%%@dirrm %%DOCSDIR%% Property changes on: head/games/pvpgn/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.5 \ No newline at end of property +1.6 \ No newline at end of property