Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jun 2014 03:11:56 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356968 - head/games/minecraft-server
Message-ID:  <201406080311.s583ButU093811@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Sun Jun  8 03:11:56 2014
New Revision: 356968
URL: http://svnweb.freebsd.org/changeset/ports/356968
QAT: https://qat.redports.org/buildarchive/r356968/

Log:
  1: Stagify.
  2: use @sample on pkg-plist.
  3: bump version.

Modified:
  head/games/minecraft-server/Makefile
  head/games/minecraft-server/pkg-plist

Modified: head/games/minecraft-server/Makefile
==============================================================================
--- head/games/minecraft-server/Makefile	Sun Jun  8 02:48:40 2014	(r356967)
+++ head/games/minecraft-server/Makefile	Sun Jun  8 03:11:56 2014	(r356968)
@@ -3,6 +3,7 @@
 
 PORTNAME=	minecraft-server
 PORTVERSION=	1.4.7
+PORTREVISION=	1
 CATEGORIES=	games java
 MASTER_SITES=	http://assets.minecraft.net/${PORTVERSION:S|.|_|g}/ \
 		http://media-mcw.cursecdn.com/f/f7/:icon
@@ -40,7 +41,6 @@ CONFIG_FILES=	banned-ips.txt \
 		server.properties \
 		white-list.txt
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MX11}
@@ -59,10 +59,10 @@ PLIST_SUB+=	X11="@comment "
 .endif
 
 do-install:
-	${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/minecraft_server.jar ${DATADIR}/
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/minecraft_server.jar ${STAGEDIR}${DATADIR}/
 .if ${PORT_OPTIONS:MX11}
-	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/Bookshelf.png ${PREFIX}/share/pixmaps/minecraft-server.png
+	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/Bookshelf.png ${STAGEDIR}${PREFIX}/share/pixmaps/minecraft-server.png
 .endif
 	echo "#!/bin/sh"				>  ${WRKDIR}/${PORTNAME}
 	echo "if ! test -d ~/.minecraft-server ; then"	>> ${WRKDIR}/${PORTNAME}
@@ -73,22 +73,13 @@ do-install:
 	echo "java -Xmx1024M -Xms1024M -jar ${DATADIR}/minecraft_server.jar"		>> ${WRKDIR}/${PORTNAME}
 	echo "java -Xmx1024M -Xms1024M -jar ${DATADIR}/minecraft_server.jar nogui"	>> ${WRKDIR}/${PORTNAME}-nogui
 .if ${PORT_OPTIONS:MX11}
-	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
 .endif
-	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-nogui ${PREFIX}/bin/
-	${MKDIR} ${ETCDIR}
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-nogui ${STAGEDIR}${PREFIX}/bin/
+	${MKDIR} ${STAGEDIR}${ETCDIR}
 .for file in ${CONFIG_FILES}
-	${INSTALL_DATA} ${FILESDIR}/${file}.sample ${DATADIR}
-	if [ ! -f ${ETCDIR}/${file} ]; then \
-		${CP} -p ${DATADIR}/${file}.sample ${ETCDIR}/${file} ; \
-	fi
-	${CHMOD} 644 ${DATADIR}/${file}* ${ETCDIR}/${file}
-	${LN} -s ${ETCDIR}/${file} ${DATADIR}/${file}
+	${INSTALL_DATA} ${FILESDIR}/${file}.sample ${STAGEDIR}${ETCDIR}
+	${CHMOD} 644 ${STAGEDIR}${ETCDIR}/${file}.sample
 .endfor
-	${CHOWN} -R ${USERS}:${GROUPS} ${DATADIR}
-	${CHOWN} -R ${USERS}:${GROUPS} ${ETCDIR}
-
-post-install:
-	${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>

Modified: head/games/minecraft-server/pkg-plist
==============================================================================
--- head/games/minecraft-server/pkg-plist	Sun Jun  8 02:48:40 2014	(r356967)
+++ head/games/minecraft-server/pkg-plist	Sun Jun  8 03:11:56 2014	(r356968)
@@ -1,28 +1,16 @@
 @stopdaemon minecraft
-%%DATADIR%%/minecraft_server.jar
 %%X11%%bin/minecraft-server
 bin/minecraft-server-nogui
-@exec mkdir -p %D/etc/minecraft
-@unexec if cmp -s %D/%%DATADIR%%/ops.txt.sample %D/etc/minecraft/ops.txt; then rm -f %D/etc/minecraft/ops.txt; fi
-@unexec if cmp -s %D/%%DATADIR%%/banned-ips.txt.sample %D/etc/minecraft/banned-ips.txt; then rm -f %D/etc/minecraft/banned-ips.txt; fi
-@unexec if cmp -s %D/%%DATADIR%%/banned-players.txt.sample %D/etc/minecraft/banned-players.txt; then rm -f %D/etc/minecraft/banned-players.txt; fi
-@unexec if cmp -s %D/%%DATADIR%%/white-list.txt.sample %D/etc/minecraft/white-list.txt; then rm -f %D/etc/minecraft/white-list.txt; fi
-@unexec if cmp -s %D/%%DATADIR%%/server.properties.sample %D/etc/minecraft/server.properties; then rm -f %D/etc/minecraft/server.properties; fi
-%%DATADIR%%/server.properties
-%%DATADIR%%/ops.txt
-%%DATADIR%%/white-list.txt
-%%DATADIR%%/banned-ips.txt
-%%DATADIR%%/banned-players.txt
-%%DATADIR%%/server.properties.sample
-@exec if [ ! -f %D/etc/minecraft/server.properties ] ; then cp -p %D/%F %B/server.properties; fi
-%%DATADIR%%/ops.txt.sample
-@exec if [ ! -f %D/etc/minecraft/ops.txt ] ; then cp -p %D/%F %B/ops.txt; fi
-%%DATADIR%%/white-list.txt.sample
-@exec if [ ! -f %D/etc/minecraft/white-list.txt ] ; then cp -p %D/%F %B/white-list.txt; fi
-%%DATADIR%%/banned-ips.txt.sample
-@exec if [ ! -f %D/etc/minecraft/banned-ips.txt ] ; then cp -p %D/%F %B/banned-ips.txt; fi
-%%DATADIR%%/banned-players.txt.sample
-@exec if [ ! -f %D/etc/minecraft/banned-players.txt ] ; then cp -p %D/%F %B/banned-players.txt; fi
+@owner mcserver
+@group mcserver
+@sample %%ETCDIR%%/banned-ips.txt.sample
+@sample %%ETCDIR%%/banned-players.txt.sample
+@sample %%ETCDIR%%/ops.txt.sample
+@sample %%ETCDIR%%/server.properties.sample
+@sample %%ETCDIR%%/white-list.txt.sample
+%%DATADIR%%/minecraft_server.jar
+@owner
+@group
 %%X11%%share/pixmaps/minecraft-server.png
 @dirrmtry %%DATADIR%%
-@dirrmtry etc/minecraft
+@dirrmtry %%ETCDIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406080311.s583ButU093811>