pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

armagetronad-server: Handle pkgsrc specific sysconfdir



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Jul 24 16:10:34 2016 +0200
Changeset:	3139272d134591c0bdecbe88bb17f0820aa9d327

Modified Files:
	armagetronad-server/Makefile
	armagetronad-server/PLIST

Log Message:
armagetronad-server: Handle pkgsrc specific sysconfdir

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3139272d134591c0bdecbe88bb17f0820aa9d327

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 armagetronad-server/Makefile | 21 +++++++++++++++++++++
 armagetronad-server/PLIST    | 38 +++++++++++++++++++-------------------
 2 files changed, 40 insertions(+), 19 deletions(-)

diffs:
diff --git a/armagetronad-server/Makefile b/armagetronad-server/Makefile
index 5f723a8..4efa4a2 100644
--- a/armagetronad-server/Makefile
+++ b/armagetronad-server/Makefile
@@ -11,4 +11,25 @@ MAINTAINER=     pkgsrc-users%NetBSD.org@localhost
 # Enable server, don't build client
 CONFIGURE_ARGS+=	--enable-dedicated
 
+# pkgsrc specific handling of configuration
+EGDIR=			${PREFIX}/share/examples/${PKGBASE}
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
+INSTALL_MAKE_FLAGS+=    sysconfdir=${EGDIR}
+
+MAKE_DIRS+=	${PKG_SYSCONFDIR}/armagetronad-dedicated
+MAKE_DIRS+=	${PKG_SYSCONFDIR}/armagetronad-dedicated/examples
+MAKE_DIRS+=	${PKG_SYSCONFDIR}/armagetronad-dedicated/examples/cvs_test
+
+.for f in aiplayers.cfg default.cfg master.srv rc.config settings.cfg settings_authentication.cfg settings_dedicated.cfg settings_visual.cfg subcultures.srv
+CONF_FILES+=	${EGDIR}/armagetronad-dedicated/${f} ${PKG_SYSCONFDIR}/${PKGBASE}/${f}
+.endfor
+
+.for f in breakfast_in_hell.cfg death_zone.cfg fortress_soccer.cfg single_use_turbo.cfg teamsumo.cfg
+CONF_FILES+=	${EGDIR}/armagetronad-dedicated/examples/${f} ${PKG_SYSCONFDIR}/${PKGBASE}/examples/${f}
+.endfor
+
+.for f in fortress_complete.cfg fortress_physics.cfg fortress_politics.cfg fortress_scoring.cfg sumo_complete.cfg
+CONF_FILES+=	${EGDIR}/armagetronad-dedicated/examples/cvs_test/${f} ${PKG_SYSCONFDIR}/${PKGBASE}/examples/cvs_test/${f}
+.endfor
+
 .include "../../mk/bsd.pkg.mk"
diff --git a/armagetronad-server/PLIST b/armagetronad-server/PLIST
index b249470..50f5103 100644
--- a/armagetronad-server/PLIST
+++ b/armagetronad-server/PLIST
@@ -1,24 +1,5 @@
 @comment $NetBSD$
 bin/armagetronad-dedicated
-etc/armagetronad-dedicated/aiplayers.cfg
-etc/armagetronad-dedicated/default.cfg
-etc/armagetronad-dedicated/examples/breakfast_in_hell.cfg
-etc/armagetronad-dedicated/examples/cvs_test/fortress_complete.cfg
-etc/armagetronad-dedicated/examples/cvs_test/fortress_physics.cfg
-etc/armagetronad-dedicated/examples/cvs_test/fortress_politics.cfg
-etc/armagetronad-dedicated/examples/cvs_test/fortress_scoring.cfg
-etc/armagetronad-dedicated/examples/cvs_test/sumo_complete.cfg
-etc/armagetronad-dedicated/examples/death_zone.cfg
-etc/armagetronad-dedicated/examples/fortress_soccer.cfg
-etc/armagetronad-dedicated/examples/single_use_turbo.cfg
-etc/armagetronad-dedicated/examples/teamsumo.cfg
-etc/armagetronad-dedicated/master.srv
-etc/armagetronad-dedicated/rc.config
-etc/armagetronad-dedicated/settings.cfg
-etc/armagetronad-dedicated/settings_authentication.cfg
-etc/armagetronad-dedicated/settings_dedicated.cfg
-etc/armagetronad-dedicated/settings_visual.cfg
-etc/armagetronad-dedicated/subcultures.srv
 share/armagetronad-dedicated/desktop/armagetronad.desktop
 share/armagetronad-dedicated/desktop/icons/large/armagetronad.png
 share/armagetronad-dedicated/desktop/icons/medium/armagetronad.png
@@ -78,3 +59,22 @@ share/doc/armagetronad-dedicated/html/network.html
 share/doc/armagetronad-dedicated/html/readme_macosx.html
 share/doc/armagetronad-dedicated/html/todo.html
 share/doc/armagetronad-dedicated/html/versions.html
+share/examples/armagetronad-server/armagetronad-dedicated/aiplayers.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/default.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/examples/breakfast_in_hell.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/examples/cvs_test/fortress_complete.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/examples/cvs_test/fortress_physics.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/examples/cvs_test/fortress_politics.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/examples/cvs_test/fortress_scoring.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/examples/cvs_test/sumo_complete.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/examples/death_zone.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/examples/fortress_soccer.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/examples/single_use_turbo.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/examples/teamsumo.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/master.srv
+share/examples/armagetronad-server/armagetronad-dedicated/rc.config
+share/examples/armagetronad-server/armagetronad-dedicated/settings.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/settings_authentication.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/settings_dedicated.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/settings_visual.cfg
+share/examples/armagetronad-server/armagetronad-dedicated/subcultures.srv


Home | Main Index | Thread Index | Old Index