svn commit: r370678 - head/games/pvpgn
Jason E. Hale
jhale at FreeBSD.org
Sat Oct 11 23:33:54 UTC 2014
Author: jhale
Date: Sat Oct 11 23:33:52 2014
New Revision: 370678
URL: https://svnweb.freebsd.org/changeset/ports/370678
QAT: https://qat.redports.org/buildarchive/r370678/
Log:
- Convert to options helpers
- Simplify MASTER_SITES (although, they seem dead)
- Cleanup plist
Modified:
head/games/pvpgn/Makefile
head/games/pvpgn/pkg-plist
Modified: head/games/pvpgn/Makefile
==============================================================================
--- head/games/pvpgn/Makefile Sat Oct 11 22:50:14 2014 (r370677)
+++ head/games/pvpgn/Makefile Sat Oct 11 23:33:52 2014 (r370678)
@@ -5,8 +5,7 @@ PORTNAME= pvpgn
PORTVERSION= 1.8.5
PORTREVISION= 1
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_BERLIOS}
-MASTER_SITE_SUBDIR= pvpgn
+MASTER_SITES= BERLIOS
DISTFILES= ${EXTRACT_ONLY} pvpgn-support-1.2.tar.gz
DIST_SUBDIR= pvpgn
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
@@ -38,34 +37,21 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/e
USE_RC_SUBR= bnetd
-OPTIONS_DEFINE= MYSQL PGSQL SQLITE3 D2
-D2_DESC= Diablo II server (D2CS/D2DBS)
-
+OPTIONS_DEFINE= D2 MYSQL PGSQL SQLITE3
OPTIONS_DEFAULT= D2
+OPTIONS_SUB= yes
+
+D2_DESC= Diablo II server (D2CS/D2DBS)
+D2_CONFIGURE_ENABLE= d2cs d2dbs
+
+MYSQL_USE= MYSQL=yes
+MYSQL_CONFIGURE_WITH= mysql
-.include <bsd.port.options.mk>
+PGSQL_USES= pgsql
+PGSQL_CONFIGURE_WITH= pgsql
-.if ${PORT_OPTIONS:MMYSQL}
-USE_MYSQL= yes
-CONFIGURE_ARGS+=--with-mysql
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-USE_PGSQL= yes
-CONFIGURE_ARGS+=--with-pgsql
-.endif
-
-.if ${PORT_OPTIONS:MSQLITE3}
-USE_SQLITE= 3
-CONFIGURE_ARGS+=--with-sqlite3
-.endif
-
-.if ${PORT_OPTIONS:MD2}
-PLIST_SUB+= WITH_D2=""
-.else
-CONFIGURE_ARGS+= --disable-d2cs --disable-d2dbs
-PLIST_SUB+= WITH_D2="@comment "
-.endif
+SQLITE3_USE= SQLITE=3
+SQLITE3_CONFIGURE_WITH= sqlite3
## support files
@@ -91,11 +77,9 @@ post-install:
## Additional documentation
-.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in INSTALL.unix PORTS README.fdwatch README.storage bnmotd.txt
${INSTALL_DATA} ${WRKSRC}/../docs/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
Modified: head/games/pvpgn/pkg-plist
==============================================================================
--- head/games/pvpgn/pkg-plist Sat Oct 11 22:50:14 2014 (r370677)
+++ head/games/pvpgn/pkg-plist Sat Oct 11 23:33:52 2014 (r370678)
@@ -1,4 +1,3 @@
- at unexec %D/etc/rc.d/bnetd.sh stop > /dev/null 2>&1 || true
bin/bnbot
bin/bncdb
bin/bnchat
@@ -32,9 +31,9 @@ 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
+%%D2%%etc/pvpgn/d2cs.conf-sample
+%%D2%%etc/pvpgn/d2dbs.conf-sample
+%%D2%%etc/pvpgn/d2server.ini-sample
etc/pvpgn/news.txt-sample
etc/pvpgn/realm.conf-sample
etc/pvpgn/sql_DB_layout.conf-sample
@@ -59,8 +58,8 @@ man/man5/bnetd.conf.5.gz
man/man5/bntext.5.gz
sbin/bnetd
sbin/bntrackd
-%%WITH_D2%%sbin/d2cs
-%%WITH_D2%%sbin/d2dbs
+%%D2%%sbin/d2cs
+%%D2%%sbin/d2dbs
%%DATADIR%%/files/IX86ver1.mpq
%%DATADIR%%/files/PMACver1.mpq
%%DATADIR%%/files/XMACver1.mpq
@@ -116,21 +115,3 @@ sbin/bntrackd
%%DATADIR%%/files/tos_RUS.txt
%%DATADIR%%/files/tos_SIN.txt
%%DATADIR%%/files/tos_USA.txt
- at dirrm %%DATADIR%%/bak/charinfo
- at dirrm %%DATADIR%%/bak/charsave
- at dirrm %%DATADIR%%/bak
- at dirrm %%DATADIR%%/bnmail
- at dirrm %%DATADIR%%/chanlogs
- at dirrm %%DATADIR%%/charinfo
- at dirrm %%DATADIR%%/charsave
- at dirrm %%DATADIR%%/clans
- at dirrm %%DATADIR%%/files
- at dirrm %%DATADIR%%/ladders
- at dirrm %%DATADIR%%/reports
- at dirrm %%DATADIR%%/status
- at dirrm %%DATADIR%%/teams
- at dirrm %%DATADIR%%/users
- at dirrm %%DATADIR%%/userscdb
- at dirrmtry %%DATADIR%%
- at dirrm etc/pvpgn
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
More information about the svn-ports-head
mailing list