Commits

neko259 committed 1216764

Added minetest-9999 and initscript for minetest.

Comments (0)

Files changed (4)

games-action/minetest/Manifest

+AUX minetestserver.init 611 RMD160 80830f5b59e5aac680e1a0b0b3b1c87cac34cc95 SHA1 c155c46da2a138618c7b53fdc072d1a6ef15b628 SHA256 3fe09a06362e1c0de251e366d8c7598f5bec9114f4ee620d5782e57299f6af72
 DIST minetest-0.4.20120320.tar.gz 1968841 RMD160 dd3ca005c4ee7139960614fd7a2b2e4a31dcfe71 SHA1 d3ad5f7434bf92425fed975e2c659cc6f79e73ea SHA256 1c748e4b418d1333c8e7e5403ca48d863bb80451a688d2ac6859e3a1c31d9a17
-EBUILD minetest-0.4.20120320.ebuild 867 RMD160 3d99222dd529939389d99281a1ae7b450db37820 SHA1 0898090cefc955d886d0bcd10705dbc512a37d84 SHA256 1527c62d49fe3ae64d875c4678a24ba1af27153466b48380d8024da6949e8a9b
+EBUILD minetest-0.4.20120320.ebuild 1182 RMD160 b1c5491aba6a920d06b94d3b42bc5b853a75c83b SHA1 fff3962789a00760d47ddc37eea971f848f6dd63 SHA256 4754b7302b69cd595a903f91d8af592ac58d5840aff1b6ae3f5ec65cb2e8e55b
+EBUILD minetest-9999.ebuild 1177 RMD160 6177a3bd6f05ecbe506794aa886c21122132f2e9 SHA1 de1e7ed3a69b70d8fbf7662fc53aea2479270de6 SHA256 21c908697f80e5a1c000d7a69c9cdd6b7dfa48511ded4836cc5161cc8704c909

games-action/minetest/files/minetestserver.init

+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+    need net
+    provide minetestserver
+}
+
+start() {
+    start-stop-daemon \
+        --start \
+        --user minetest \
+        --group minetest \
+        --make-pidfile \
+        --background \
+        --stdout /var/lib/minetest/server.log \
+        --exec /usr/bin/minetestserver \
+        --pidfile /var/run/minetest.pid
+}
+
+stop() {
+    start-stop-daemon \
+        --stop \
+        --exec /usr/bin/minetestserver \
+        --pidfile /var/run/minetest.pid
+}

games-action/minetest/minetest-0.4.20120320.ebuild

 	
 	cmake-utils_src_configure
 }
+
+pkg_preinst() {
+	enewgroup minetest
+	enewuser minetest -1 -1 /var/lib/minetest "minetest,games"
+	mkdir -p ${D}/var/lib/minetest
+	mkdir -p ${D}/etc/init.d
+	chown minetest:minetest ${D}/var/lib/minetest
+	cp "${FILESDIR}"/minetestserver.init ${D}/etc/init.d/minetestserver
+	chmod o+x ${D}/etc/init.d/minetestserver
+}

games-action/minetest/minetest-9999.ebuild

+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit eutils cmake-utils games git
+
+DESCRIPTION="Building single/multiplayer game"
+HOMEPAGE="http://c55.me/minetest/"
+
+SRC_URI=""
+EGIT_REPO_URI="git://github.com/celeron55/minetest.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS=""
+IUSE="+client nls +server"
+
+DEPEND="
+	sys-libs/zlib
+	nls? ( sys-devel/gettext )
+	>=dev-games/irrlicht-1.7
+	x11-libs/libX11
+	virtual/opengl
+	app-arch/bzip2
+	media-libs/libpng
+	dev-db/sqlite:3
+	>=dev-libs/jthread-1.2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+	git_src_unpack
+	cd ${S}
+}
+
+src_configure() {
+	mycmakeargs="
+		-DRUN_IN_PLACE=0
+		$(cmake-utils_use_build client CLIENT)
+		$(cmake-utils_use_build server SERVER)
+		$(cmake-utils_use_use nls GETTEXT)"
+	
+	cmake-utils_src_configure
+}
+
+pkg_preinst() {
+	enewgroup minetest
+	enewuser minetest -1 -1 /var/lib/minetest/ "minetest,games"
+	mkdir -p ${D}/var/lib/minetest
+	mkdir -p ${D}/etc/init.d
+	chown minetest:minetest ${D}/var/lib/minetest
+	cp "${FILESDIR}"/minetestserver.init ${D}/etc/init.d/minetestserver
+	chmod o+x ${D}/etc/init.d/minetestserver
+}