diff options
Diffstat (limited to 'games-server')
62 files changed, 1412 insertions, 146 deletions
diff --git a/games-server/Manifest.gz b/games-server/Manifest.gz Binary files differindex e39d67bb0e02..2414af966efd 100644 --- a/games-server/Manifest.gz +++ b/games-server/Manifest.gz diff --git a/games-server/bf1942-lnxded-1.61-r1 b/games-server/bf1942-lnxded-1.61-r1 deleted file mode 100644 index acc87e15b5a3..000000000000 --- a/games-server/bf1942-lnxded-1.61-r1 +++ /dev/null @@ -1,11 +0,0 @@ -DEFINED_PHASES=install unpack -DESCRIPTION=dedicated server for Battlefield 1942 -EAPI=6 -HOMEPAGE=http://www.battlefield.com/battlefield-1942 -KEYWORDS=~x86 -LICENSE=bf1942-lnxded -RESTRICT=mirror bindist strip -SLOT=0 -SRC_URI=http://ftp.games.skynet.be/pub/misc/bf1942_lnxded-1.6-rc2.run http://ftp.games.skynet.be/pub/misc/bf1942-update-1.61.tar.gz -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 unpacker 87633b2194cdb56adaa1f5a5c8862c44 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=1bce5670f9811ab9f9fdffd0e3901ec3 diff --git a/games-server/bf1942-lnxded/Manifest b/games-server/bf1942-lnxded/Manifest new file mode 100644 index 000000000000..5e6c56b6e62c --- /dev/null +++ b/games-server/bf1942-lnxded/Manifest @@ -0,0 +1,4 @@ +DIST bf1942-update-1.61.tar.gz 7768635 BLAKE2B 14427516f4c1d0ce8777f51cd09cef8392a255f5695043e67d961c54a8161bccd4f0b24719bc80f46f725e98efa6e708b3556371a4f0c3499c4e13149ea09d59 SHA512 041c1ad03daab592b799dec1560e15156e1da583919aa270220d53d308b5c1b8e7da771176eea6e3e1558407dbad37388d480199847c68ecf94b58f29d64a26b +DIST bf1942_lnxded-1.6-rc2.run 108138508 BLAKE2B b59bad9c2ae15ea30974de376f8809dd43cfa6f7a01aa81c7a3b603d8c6308ff022ff7af3cf15d5825e9959d09e750d38b6bdd767ffd062cfc880d4942be1570 SHA512 9171eb8f729bd36fc76133563201332d91e434aa6a54813eb0ec5278f04e7132d4e5b74c92d69ad1e542c37a586aae6ee8d12b2e92d5a853d2682de530ad1db1 +EBUILD bf1942-lnxded-1.61-r1.ebuild 947 BLAKE2B d1d1b0c4c23eccebd7e63e7126b86aaae96f6e44a16e6928b111a86ea36f1ab31c32117b3ea0c016f62d00cd1424e7147437d612f476cab7598449d75f118918 SHA512 b0c2ef2b8854c5118588e3ce765bdde6b3a697bf3c428c6a034835d9138043aba106c0ee943828412333524955ab378a69ca883b2ad308acd4a451a08a6930bf +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-server/bf1942-lnxded/bf1942-lnxded-1.61-r1.ebuild b/games-server/bf1942-lnxded/bf1942-lnxded-1.61-r1.ebuild new file mode 100644 index 000000000000..3d83028ae7d5 --- /dev/null +++ b/games-server/bf1942-lnxded/bf1942-lnxded-1.61-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils unpacker + +DESCRIPTION="dedicated server for Battlefield 1942" +HOMEPAGE="http://www.battlefield.com/battlefield-1942" +SRC_URI="http://ftp.games.skynet.be/pub/misc/${PN/-/_}-1.6-rc2.run + http://ftp.games.skynet.be/pub/misc/bf1942-update-${PV}.tar.gz" + +LICENSE="bf1942-lnxded" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +RESTRICT="mirror bindist strip" + +S=${WORKDIR} + +dir="/opt/bf1942" +Ddir="${D}/${dir}" + +QA_PREBUILT="${dir}/*.so ${dir}/bf1942_lnxded.*" + +src_unpack() { + mkdir bf1942 || die + pushd bf1942 || die + unpack_makeself ${PN/-/_}-1.6-rc2.run + popd || die + unpack bf1942-update-${PV}.tar.gz +} + +src_install() { + dodir "${dir}" + mv -f "${S}"/bf1942/* "${S}" || die + rm -rf "${S}"/bf1942 || die + + mv "${S}"/* "${Ddir}" || die + dosym bf1942_lnxded.dynamic "${dir}"/bf1942_lnxded + make_wrapper ${PN} ./bf1942_lnxded "${dir}" +} diff --git a/games-server/bf1942-lnxded/metadata.xml b/games-server/bf1942-lnxded/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-server/bf1942-lnxded/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-server/crossfire-server-1.71.0-r1 b/games-server/crossfire-server-1.71.0-r1 deleted file mode 100644 index 9584e4e3377b..000000000000 --- a/games-server/crossfire-server-1.71.0-r1 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=compile configure install prepare -DEPEND=net-misc/curl X? ( x11-libs/libXaw media-libs/libpng:0= ) -DESCRIPTION=Server for the crossfire clients -EAPI=6 -HOMEPAGE=http://crossfire.real-time.com/ -IUSE=X -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 -RDEPEND=net-misc/curl X? ( x11-libs/libXaw media-libs/libpng:0= ) -RESTRICT=test -SLOT=0 -SRC_URI=mirror://sourceforge/crossfire/crossfire-server/1.71.0/crossfire-1.71.0.tar.bz2 mirror://sourceforge/crossfire/crossfire-server/1.71.0/crossfire-1.71.0.maps.tar.bz2 mirror://sourceforge/crossfire/crossfire-server/1.71.0/crossfire-1.71.0.arch.tar.bz2 -_md5_=e4b5af9428a46b8df5740eb3ca1df58c diff --git a/games-server/crossfire-server/Manifest b/games-server/crossfire-server/Manifest new file mode 100644 index 000000000000..64faf9f2c84f --- /dev/null +++ b/games-server/crossfire-server/Manifest @@ -0,0 +1,6 @@ +AUX crossfire-server-1.71.0-format.patch 1115 BLAKE2B 7bce8fa52889ec1f1ca636c48995ac5110f5fc62965b0e7a8db01f37df8f6339756b290028425fbbe3e93b559126e8571d619ffe55f119007b3416abe5ae71eb SHA512 3d1cf04cc787177776f8f65afbe585ebe5982687313219a6cc64797bf4a992c1b6077ad2ad75b1f7c3372041c9cb0eaadbebee3fb27a25ff5664a8adb48e986f +DIST crossfire-1.71.0.arch.tar.bz2 3462161 BLAKE2B 4f2c7e9619ceca3aafea03a681e59c04e31c954c91b94e4065a6446d537c6f039fe58c04f50fd5eddb8290b9cb93533772c6c7963b526c537bf297f469ad5bb5 SHA512 f9707dc5dab24d0ba74654c6433e016a58ab4e99da5dade6614491eca00736965bb7fd9a24db4188c3409a0479a88bb0ea55282e519ffcbabf23d82e6a5b975e +DIST crossfire-1.71.0.maps.tar.bz2 19463076 BLAKE2B a6b1935985d82b53ef1dfd76b91e8d9417f03dceeddbc69154799703597d14d3ffb3dba8cec809345b62e99294ed3adec66cb2c9fae52fface96db8ba75daa7d SHA512 c3940b0a48f1badc14eb81610cfcd4241d140b666b5cb123845dca6ad742a18977ad7ada1d75d738f15f44374896c4dd6047989122257d7cd87362a3af0f97e8 +DIST crossfire-1.71.0.tar.bz2 6712638 BLAKE2B 91957fab3f19e52839eadfcb015a2fd8dfc551230fa55dd00254f39608ffbb8648227f3d2a244a609538ee2e426675e6b58dac73cf565554611ccb40d2839873 SHA512 d867f3393cb18ed78158c9a724d386dd642f0193ace86fef592e7bdc80885b7f7ce3c37be34b77d73b31c939d41e533029f2e7dea405c00d7a67aa3baebd146d +EBUILD crossfire-server-1.71.0-r1.ebuild 1106 BLAKE2B f6578eae5e58dfe4bec3c20545d4e54ecc5900c8e4a3193f0c0bca83dacb4ede455747e412837c7b204f42d4f83c4e0fc4f8f88a338c3da2edec0ee8c5f716b6 SHA512 2bb94adc5f86a6f38f41b6907855a24e22886befde4f4dd07c4aeb0ae495acc8c928ef8adb3fee3f6f2eae56b763ad58b6bd5430701da62ca507a3fe42e8679b +MISC metadata.xml 332 BLAKE2B b2b20adc6daa1c491850292a929df2b67738519b81cbab2cd2c2d278176daf4e895a10bc712213abcb41714f27bb0c9e2b1731f970b7381cbf9ffefe6c393666 SHA512 cf046be69b614cd43deba574e8fbd23b566507c694b9f7cbda92d7009d727ac4087de411bf63463561beb3160ecfe7f9fb685574b018466b473535184529ccf7 diff --git a/games-server/crossfire-server/crossfire-server-1.71.0-r1.ebuild b/games-server/crossfire-server/crossfire-server-1.71.0-r1.ebuild new file mode 100644 index 000000000000..3012afe88c9b --- /dev/null +++ b/games-server/crossfire-server/crossfire-server-1.71.0-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_P="${P/-server/}" +DESCRIPTION="Server for the crossfire clients" +HOMEPAGE="http://crossfire.real-time.com/" +SRC_URI="mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.tar.bz2 + mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.maps.tar.bz2 + mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.arch.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X" +RESTRICT="test" + +RDEPEND=" + net-misc/curl + X? ( + x11-libs/libXaw + media-libs/libpng:0= + ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + rm -f "${WORKDIR}"/maps/Info/combine.pl # bug #236205 + ln -s "${WORKDIR}/arch" "${S}/lib" || die + eapply "${FILESDIR}"/${P}-format.patch +} + +src_configure() { + econf --disable-static +} + +src_compile() { + # work around the collect.pl locking + emake -j1 -C lib + emake +} + +src_install() { + default + keepdir /var/lib/crossfire/{account,datafiles,maps,players,template-maps,unique-items} + insinto /usr/share/crossfire + doins -r "${WORKDIR}/maps" + find "${D}" -name '*.la' -delete || die +} diff --git a/games-server/crossfire-server/files/crossfire-server-1.71.0-format.patch b/games-server/crossfire-server/files/crossfire-server-1.71.0-format.patch new file mode 100644 index 000000000000..afed04da57f4 --- /dev/null +++ b/games-server/crossfire-server/files/crossfire-server-1.71.0-format.patch @@ -0,0 +1,20 @@ +--- a/server/c_chat.c.old 2015-12-15 21:35:30.024866220 +0100 ++++ b/server/c_chat.c 2015-12-15 21:36:58.479266312 +0100 +@@ -483,7 +483,7 @@ + { "You spit over your left shoulder.", "%s spits over his left shoulder." }, + { "Strut your stuff.", "%s struts proudly." }, + { NULL, NULL }, +- { "%s patiently twiddles his thumbs.", "You patiently twiddle your thumbs." }, ++ { "You patiently twiddle your thumbs.", "%s patiently twiddles his thumbs." }, + { "You wave.", "%s waves happily." }, + { "You whistle appreciatively.", "%s whistles appreciatively." }, + { "Have you got something in your eye?", "%s winks suggestively." }, +@@ -645,7 +645,7 @@ + + if (*params == '\0') { + if (emotion > EMOTE_FIRST && emotion < EMOTE_LAST && single_emotes[emotion - 1][0] != NULL) { +- snprintf(buf, sizeof(buf), single_emotes[emotion - 1][0]); ++ snprintf(buf, sizeof(buf), "%s", single_emotes[emotion - 1][0]); + snprintf(buf2, sizeof(buf2), single_emotes[emotion - 1][1], op->name); + } else { + snprintf(buf, sizeof(buf), "You are a nut."); diff --git a/games-server/crossfire-server/metadata.xml b/games-server/crossfire-server/metadata.xml new file mode 100644 index 000000000000..baf8c3afc277 --- /dev/null +++ b/games-server/crossfire-server/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">crossfire</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-server/etqw-ded-1.5-r1 b/games-server/etqw-ded-1.5-r1 deleted file mode 100644 index 5335f2c61d7a..000000000000 --- a/games-server/etqw-ded-1.5-r1 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=install nofetch unpack -DEPEND=app-arch/unzip -DESCRIPTION=Enemy Territory: Quake Wars dedicated server -EAPI=6 -HOMEPAGE=https://www.splashdamage.com/content/et-quake-wars-standalone-server-linux -KEYWORDS=-* ~amd64 ~x86 -LICENSE=ETQW -RDEPEND=sys-libs/glibc -RESTRICT=fetch strip -SLOT=0 -SRC_URI=ETQW-server-1.5-full.x86.run -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=807e11c9862e2ddd21dc0c1171540ef9 diff --git a/games-server/etqw-ded/Manifest b/games-server/etqw-ded/Manifest new file mode 100644 index 000000000000..c880d448a81e --- /dev/null +++ b/games-server/etqw-ded/Manifest @@ -0,0 +1,3 @@ +DIST ETQW-server-1.5-full.x86.run 452679053 BLAKE2B 01721b7a288671873a87164e438cb4bf3483f86fe282fc0a306043bb44e18bf126736e57f6ee5ec0880057b7f53119e1b2f6c9ddd625f9083a01f3e12c613bef SHA512 8daa5f192330be09b476d9633af79085f8b45d64e99fb50f6dc2ded085171f3d310218308b813bc7fc9a56b5fb34d52d72248a1e926a0e499ce096690407b0cd +EBUILD etqw-ded-1.5-r1.ebuild 908 BLAKE2B b7bfcc57a72ed9c1fb1937ab71fea699990f237a5b93a41f14baf12a313811e78d8cf479d104540993cf6b3deededcf1e21f2b87116798fe98cd5a040d7d77d7 SHA512 bbdb0fe8518e1caea50c0dca89a8aa24962fa8bfc28a937434ea3327b26b7c810a28174912124c2ef67e771808dda6b92d22164296b1b0451704b8c16043fe38 +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-server/etqw-ded/etqw-ded-1.5-r1.ebuild b/games-server/etqw-ded/etqw-ded-1.5-r1.ebuild new file mode 100644 index 000000000000..6c08c5bc17c2 --- /dev/null +++ b/games-server/etqw-ded/etqw-ded-1.5-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="Enemy Territory: Quake Wars dedicated server" +HOMEPAGE="https://www.splashdamage.com/content/et-quake-wars-standalone-server-linux" +SRC_URI="ETQW-server-${PV}-full.x86.run" + +LICENSE="ETQW" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" +RESTRICT="fetch strip" + +DEPEND="app-arch/unzip" +RDEPEND="sys-libs/glibc" + +S=${WORKDIR}/data +dir=/opt/${PN} + +QA_PREBUILT="${dir:1}/pb/*.so + ${dir:1}/*.x86 + ${dir:1}/*.so*" + +pkg_nofetch() { + einfo "Please download ${A} from ${HOMEPAGE} and copy it to ${DISTDIR}" +} + +src_unpack() { + tail -c +194885 "${DISTDIR}"/${A} > ${A}.zip || die + unpack ./${A}.zip + rm -f ${A}.zip || die +} + +src_install() { + insinto "${dir}" + doins -r base pb *.txt + exeinto "${dir}" + doexe etqwded.x86 *.so* + make_wrapper ${PN} ./etqwded.x86 "${dir}" "${dir}" +} diff --git a/games-server/etqw-ded/metadata.xml b/games-server/etqw-ded/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-server/etqw-ded/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-server/mednafen-server-0.5.2-r1 b/games-server/mednafen-server-0.5.2-r1 deleted file mode 100644 index eb52488e0165..000000000000 --- a/games-server/mednafen-server-0.5.2-r1 +++ /dev/null @@ -1,9 +0,0 @@ -DEFINED_PHASES=install postinst prepare -DESCRIPTION=Server for Mednafen emulator -EAPI=6 -HOMEPAGE=http://mednafen.fobby.net/releases/ -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2+ -SLOT=0 -SRC_URI=http://mednafen.fobby.net/releases/files/mednafen-server-0.5.2.tar.gz -_md5_=2fde62915ef59ddab55484dce9a1cb67 diff --git a/games-server/mednafen-server/Manifest b/games-server/mednafen-server/Manifest new file mode 100644 index 000000000000..fb1eecc30b0a --- /dev/null +++ b/games-server/mednafen-server/Manifest @@ -0,0 +1,3 @@ +DIST mednafen-server-0.5.2.tar.gz 149237 BLAKE2B e3143c68fcf9b3f1e110be776354d5b806add52cf0f486f2ec7e753fc4c7805cf893e48e945f410c75d02e06061abb5ffaccc0a360bdaf36daae09977616ec2f SHA512 7ca094c7123e147bfaaedc254958fa664b7d71b141f8409b251bb646e04a7a6a5bc7f01ecac049b3895334a09a02e7449ac90e6db1d469322dba44f7281edf15 +EBUILD mednafen-server-0.5.2-r1.ebuild 647 BLAKE2B b7cc9e2ada9afc52859a02976e1226525b9db1fdc7082ca12a4281fbeba7aeed7a075563257211d1cf75f62d12824ca5359b57e6088c27fdcc15f154817160a8 SHA512 20e5dc6ebfa90f1aa50d9b70247e6558c5061195a1f42c9e5ed971c4fd285c190ed22379bd45c7ac05d15a7c40acd12adc277594ca183ca527c867d5b0828818 +MISC metadata.xml 253 BLAKE2B 443ca9c8d4f6801169382e87a0ecd1385c56e65229209e7200f9d313ef380e92ae8d7dc3c38e5989a4166289f22607a20b1e13bb960fff6b3d9f78629d8ab020 SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 diff --git a/games-server/mednafen-server/mednafen-server-0.5.2-r1.ebuild b/games-server/mednafen-server/mednafen-server-0.5.2-r1.ebuild new file mode 100644 index 000000000000..5e29146befce --- /dev/null +++ b/games-server/mednafen-server/mednafen-server-0.5.2-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Server for Mednafen emulator" +HOMEPAGE="http://mednafen.fobby.net/releases/" +SRC_URI="http://mednafen.fobby.net/releases/files/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="" +DEPEND="" + +S=${WORKDIR}/${PN} + +src_prepare() { + default + + mv standard.conf standard.conf.example || die + mv run.sh run.sh.example || die +} + +src_install() { + dobin src/${PN} + dodoc README *.example +} + +pkg_postinst() { + einfo "Example config file and run file can be found in" + einfo "/usr/share/doc/${PF}/" +} diff --git a/games-server/mednafen-server/metadata.xml b/games-server/mednafen-server/metadata.xml new file mode 100644 index 000000000000..26079e608bed --- /dev/null +++ b/games-server/mednafen-server/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> +</pkgmetadata> diff --git a/games-server/metadata.xml b/games-server/metadata.xml new file mode 100644 index 000000000000..65ad0509b916 --- /dev/null +++ b/games-server/metadata.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The games-server category contains game servers. + </longdescription> + <longdescription lang="de"> + Die Kategorie games-server enthält Spieleserver. + </longdescription> + <longdescription lang="es"> + La categoría games-server contiene servidores de juegos. + </longdescription> + <longdescription lang="ja"> + games-serverカテゴリーにはゲーム・サーバーが含まれています。 + </longdescription> + <longdescription lang="nl"> + De games-server categorie bevat spelservers. + </longdescription> + <longdescription lang="vi"> + Nhóm games-server chứa các game server. + </longdescription> + <longdescription lang="it"> + La categoria games-server contiene server per i giochi multigiocatore. + </longdescription> + <longdescription lang="pt"> + A categoria games-server contém servidores de jogos. + </longdescription> + <longdescription lang="pl"> + Kategoria games-server zawiera serwery gier. + </longdescription> +</catmetadata> + diff --git a/games-server/minecraft-server-1.12.2 b/games-server/minecraft-server-1.12.2 deleted file mode 100644 index 90036a3f960d..000000000000 --- a/games-server/minecraft-server-1.12.2 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=install postinst setup unpack -DESCRIPTION=The official server for the sandbox video game Minecraft -EAPI=6 -HOMEPAGE=https://www.minecraft.net/ -KEYWORDS=~amd64 ~x86 -LICENSE=Mojang -RDEPEND=app-misc/screen virtual/jre -RESTRICT=bindist mirror strip -SLOT=0 -SRC_URI=https://s3.amazonaws.com/Minecraft.Download/versions/1.12.2/minecraft_server.1.12.2.jar -> minecraft-server-1.12.2.jar -_eclasses_=user 8bc2845510e2109af75e3eeac607ec81 -_md5_=04a52257e0588b2d98e9d66ad2f76e10 diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest new file mode 100644 index 000000000000..518f357e2ab2 --- /dev/null +++ b/games-server/minecraft-server/Manifest @@ -0,0 +1,5 @@ +AUX minecraft-server.confd 318 BLAKE2B c4ae9a7e68e0db71f9cf648aeab10030264a544927f697d005016662a402bd1d64ea02779eb6b645c16845cec6b22842cf08c51734d608f90eb0d45f6c786a67 SHA512 bad9df2874a862f28a2a34f70509c34086ab5d63e6bfda79905f4058a029141ada592dc435d9773b6aa6332447c875675d68e7152ddf18b55a6157b81ed82f95 +AUX minecraft-server.initd 1421 BLAKE2B a59a6ab1270fb8110ec0ede580a52373626ffa2c42a75f63dc7508fc07b6f4e05ee85d04777d3f1a04a23229632f4de088164121bc351d7a38ea076b7e463e28 SHA512 6ef9df7d33cebb60981fc4fb4cbf1c4d737f3d957902effd02f8a278a6d4cedddd38fd89ecec0ac3ff5e25f236fcf484715fe3583d0f8865a83a1ae673775aee +DIST minecraft-server-1.12.2.jar 30222121 BLAKE2B 91733822789405dbec5d335fc67e47d3278138929280c4fdcf6053fb0824651474c8e2310c342862fc1aefdf74f55d0a21d78b3c34f32484ec8196b7c5921d72 SHA512 327196bfb833160ae6fb7d12b7d372d031bc0ffbac3455481c1635b01e00f0d5502d4698fbc4f8e7ee59cc3902d56c41261c45d1f1c8f3972e192631f504a0fc +EBUILD minecraft-server-1.12.2.ebuild 1865 BLAKE2B 5392b409ac7db38a997d5c4218f1de34120215b9732bec6aad610029ac548ffae220d328c98319911d6d89b173daa5296e841499015a94e417fb6baa5e6f462a SHA512 686219de7fecbf02b4f2d4957d5dc048d05aefe4f7ef1aec303896e9184ff1f1c6e4177194436a06a701bd7858816a33855501ec74939d9765f5dad705e8bb5d +MISC metadata.xml 614 BLAKE2B 78e166781dd7310c6e8a148ba0bc1e36c8e6a21a64587d65b5239f43e7dda4b494b77b254b420e3c1317390debad03ec35847eadbf345aec3c0ba1a6d759f546 SHA512 0deb2afc6cfcfc57351b210f21506ffb5dca43e51aeda268a92781640d8940ce71024ed71a8de249b4ac135da92fd5e741bd8be5e5c00cf0d4b26100b838ac10 diff --git a/games-server/minecraft-server/files/minecraft-server.confd b/games-server/minecraft-server/files/minecraft-server.confd new file mode 100644 index 000000000000..700498e5aead --- /dev/null +++ b/games-server/minecraft-server/files/minecraft-server.confd @@ -0,0 +1,7 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Java options for your started server +# You should at least define some memory settings (-Xms, -Xmx), +# for maximum memory, as the java default is far to low for Minecraft +MINECRAFT_OPTS="-Xms1024m -Xmx1024m" diff --git a/games-server/minecraft-server/files/minecraft-server.initd b/games-server/minecraft-server/files/minecraft-server.initd new file mode 100644 index 000000000000..630c88871d76 --- /dev/null +++ b/games-server/minecraft-server/files/minecraft-server.initd @@ -0,0 +1,48 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +if [ "${SVCNAME}" = "minecraft-server" ]; then + instance="main" +else + instance="${SVCNAME#minecraft-server.}" +fi + +java="${JAVA_HOME-/usr}"/bin/java +minecraft_jar="/usr/share/games/minecraft-server/minecraft-server.jar" +minecraft_logs="/var/log/minecraft-server" +minecraft_path="/var/lib/minecraft-server/${instance}" +name="Minecraft Server (World: ${instance})" +pidfile="/run/minecraft-server.${instance}.pid" +screen_name="minecraft-server.${instance}" +start_stop_daemon_args="--chdir ${minecraft_path}" + +command="screen" +command_args="-DmUS ${screen_name} ${java} ${MINECRAFT_OPTS} -jar ${minecraft_jar}" +command_background="true" +command_group="minecraft" +command_user="minecraft" + +depend() { + use net +} + +start_pre() { + checkpath -d -o "${command_user}:${command_group}" -q "${minecraft_path}" + + checkpath -f -o "${command_user}:${command_group}" -q "${minecraft_path}"/eula.txt + echo "eula=true" > "${minecraft_path}"/eula.txt + + checkpath -d -o "${command_user}:${command_group}" -q "${minecraft_logs}"/"${instance}" + + if [ ! -L "${minecraft_path}"/logs ]; then + cd "$minecraft_path}" && ln -s ../../../log/minecraft-server/"${instance}" logs + fi + + if [ -z ${MINECRAFT_OPTS} ]; then + eerror "You must define MINECRAFT_OPTS in /etc/conf.d/minecraft.${SVCNAME}!" + return 1 + fi + + return 0 +} diff --git a/games-server/minecraft-server/metadata.xml b/games-server/minecraft-server/metadata.xml new file mode 100644 index 000000000000..45b32f4be812 --- /dev/null +++ b/games-server/minecraft-server/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ck+gentoo@bl4ckb0x.de</email> + <name>Conrad Kostecki</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + Minecraft is a sandbox video game created and designed + by Swedish game designer Markus "Notch" Persson, + and later fully developed and published by Mojang. + This is the headless server for Minecraft. + </longdescription> +</pkgmetadata> diff --git a/games-server/minecraft-server/minecraft-server-1.12.2.ebuild b/games-server/minecraft-server/minecraft-server-1.12.2.ebuild new file mode 100644 index 000000000000..5b0f749a4556 --- /dev/null +++ b/games-server/minecraft-server/minecraft-server-1.12.2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit user + +DESCRIPTION="The official server for the sandbox video game Minecraft" +HOMEPAGE="https://www.minecraft.net/" +SRC_URI="https://s3.amazonaws.com/Minecraft.Download/versions/${PV}/minecraft_server.${PV}.jar -> ${P}.jar" + +LICENSE="Mojang" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="app-misc/screen + virtual/jre" + +RESTRICT="bindist mirror strip" + +S="${WORKDIR}" + +pkg_setup() { + enewgroup minecraft + enewuser minecraft -1 -1 /var/lib/minecraft-server minecraft +} + +src_unpack() { + # Don't unpack that jar, just copy it to WORKDIR + cp "${DISTDIR}"/${A} "${WORKDIR}" || die +} + +src_install() { + insinto /usr/share/games/minecraft-server + insopts -o minecraft -g minecraft + newins minecraft-server-${PV}.jar minecraft-server.jar + + newinitd "${FILESDIR}"/minecraft-server.initd minecraft-server + newconfd "${FILESDIR}"/minecraft-server.confd minecraft-server + + diropts -o minecraft -g minecraft + keepdir /var/lib/minecraft-server + keepdir /var/log/minecraft-server +} + +pkg_postinst() { + elog "This package provides an init script and a conf file." + elog "You don't have to modify those files directly," + elog "but instead you can make a symlink of that init script" + elog "and a copy of that conf file." + elog "You would do this for every server, you want to setup." + elog "" + elog "For example, you wan't to setup an world called 'gentoo'," + elog "you would do:" + elog "" + elog "cd /etc/init.d" + elog "ln -s minecraft-server minecraft-server.gentoo" + elog "" + elog "cd /etc/conf.d" + elog "cp minecraft-server minecraft-server.gentoo" + elog "" + elog "After that, make your settings in" + elog "/etc/conf.d/minecraft-server.gentoo." + elog "" + elog "If you don't make a symlink, but use the default scripts," + elog "your world will be called 'main'" +} diff --git a/games-server/monopd-0.10.2-r1 b/games-server/monopd-0.10.2-r1 deleted file mode 100644 index f88896d18660..000000000000 --- a/games-server/monopd-0.10.2-r1 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=configure install prepare -DEPEND=systemd? ( sys-apps/systemd ) >=dev-cpp/muParser-2 dev-libs/utfcpp >=app-portage/elt-patches-20170422 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig -DESCRIPTION=server for atlantik games -EAPI=6 -HOMEPAGE=http://gtkatlantic.gradator.net/ -IUSE=systemd -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 -RDEPEND=systemd? ( sys-apps/systemd ) -SLOT=0 -SRC_URI=http://download.tuxfamily.org/gtkatlantic/monopd/monopd-0.10.2.tar.gz -_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 systemd 04e50685fbf3d89e5c67ac6a385dd595 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=d5cc60ef3baa2a58ce0ab3f243e1a803 diff --git a/games-server/monopd/Manifest b/games-server/monopd/Manifest new file mode 100644 index 000000000000..e7f9cdedc1c4 --- /dev/null +++ b/games-server/monopd/Manifest @@ -0,0 +1,4 @@ +AUX monopd.in 391 BLAKE2B 8bf1681e070ef5240ced7cf15dae52ee2c690f93f9dd5c94ba4ae3390fe9b79c2084d83129d1add3e24ee05a81a54bd8de8315f170b448e48d8ade9d5c513805 SHA512 55b9fd625039b72032b4d0ea6769c2b5a2690ede1f5445e72900a4d423a2ea51c768cdc1f08f69577f7776f9638983d23a1e0f5afe20a174ccc2d44ef77271ab +DIST monopd-0.10.2.tar.gz 180317 BLAKE2B a2955149963b63d4839cc65be464c8989f2816bccf8e122833cd5be8be9ded7789e72f59c5f3bb6e2c20d4565cb3553e64dfd2670b003fc5868c40da02948731 SHA512 f47d9623e110a98d9d32b522484944998fb6e7e8644e1f2b439428a1e12b3b514b902e52e7135150135a3e3251aa38604434347d06533f3cf3ffb28a2a81ede3 +EBUILD monopd-0.10.2-r1.ebuild 902 BLAKE2B 3b9f048fe4b746d28729294015c427f376e72ab7ad8d8deb6e11c7acbdebced153d7659c04b84c01e20c08acec59ded82ff425096ce2c123ece9720e752c8a44 SHA512 db67b071b77926d6f9dece68fa2f0e83579d221dad71c4de843c6f272273c9e2e39a8d7300ac6cc1038d633d08f367fde589ccf0f0593cb19f47431a662db6b2 +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-server/monopd/files/monopd.in b/games-server/monopd/files/monopd.in new file mode 100644 index 000000000000..9a0fbda55ffb --- /dev/null +++ b/games-server/monopd/files/monopd.in @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net +} + +start() { + ebegin "Starting monopd server" + start-stop-daemon --start -q -b --exec GENTOO_DIR/monopd + eend $? +} + +stop() { + ebegin "Stopping monopd server" + start-stop-daemon --stop -q --exec GENTOO_DIR/monopd + eend $? +} diff --git a/games-server/monopd/metadata.xml b/games-server/monopd/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-server/monopd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-server/monopd/monopd-0.10.2-r1.ebuild b/games-server/monopd/monopd-0.10.2-r1.ebuild new file mode 100644 index 000000000000..c0776e83d646 --- /dev/null +++ b/games-server/monopd/monopd-0.10.2-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils systemd + +DESCRIPTION="server for atlantik games" +HOMEPAGE="http://gtkatlantic.gradator.net/" +SRC_URI="http://download.tuxfamily.org/gtkatlantic/monopd/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="systemd" + +RDEPEND="systemd? ( sys-apps/systemd )" +DEPEND="${RDEPEND} + >=dev-cpp/muParser-2 + dev-libs/utfcpp" + +src_prepare() { + default + + sed "s:GENTOO_DIR:\"/usr/bin\":" \ + "${FILESDIR}"/monopd.in > "${T}"/monopd || die + sed -i \ + -e "s:/usr/sbin:/usr/bin:" \ + doc/systemd/monopd.service || die + sed -i \ + -e '/C_SUBST(CXXFLAGS/s/CFLAGS/CXXFLAGS/' \ + configure.ac || die + eautoreconf +} + +src_configure() { + econf $(use_with systemd systemd-daemon) +} + +src_install() { + default + doinitd "${T}"/monopd + systemd_dounit doc/systemd/monopd.s* +} diff --git a/games-server/mtavc-0.5-r1 b/games-server/mtavc-0.5-r1 deleted file mode 100644 index 4329d9ad5d3a..000000000000 --- a/games-server/mtavc-0.5-r1 +++ /dev/null @@ -1,11 +0,0 @@ -DEFINED_PHASES=install prepare -DESCRIPTION=dedicated server for GTA3 multiplayer -EAPI=6 -HOMEPAGE=http://mtavc.com/ -KEYWORDS=-* ~x86 -LICENSE=MTA-0.5 -RDEPEND=virtual/libstdc++ -SLOT=0 -SRC_URI=http://files.gonnaplay.com/201/MTAServer0_5-linux.tar.gz -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=1a92061454b06373acbdfff4584ca408 diff --git a/games-server/mtavc/Manifest b/games-server/mtavc/Manifest new file mode 100644 index 000000000000..95fb83d4ff6e --- /dev/null +++ b/games-server/mtavc/Manifest @@ -0,0 +1,4 @@ +AUX mtavc 46 BLAKE2B 0f35cd14bac92c2f761a152b1f9b895de9ca4b8c86cca34c982e1cfd3d0d8205d4eefdd5e0c9a188311db207201f1b6db385ec3341b2146b36921d792dc7056a SHA512 e71aed1a05ade048665c9ffd4c272a8a9eb74a14b05ff95baa4ac61cd53d5d67d0c6dd7a1d0798cd89ff70cf12f7153e7dbf31e9f10df55e773f01313458430e +DIST MTAServer0_5-linux.tar.gz 229056 BLAKE2B d46784a532046bfe28bb2110470ad8c07dc2c9d1f68366663bdce519f3214bcf74bf4975495a4013b8f9c104921a52a42fe7d6599bf6a012171a1d120e6678b1 SHA512 eed0ec109427c53c9627826f1977b4a2454be0130d445b2ff7288e3f93b93d76d21b22ffdb706d306009baffd37bd317f9573a9650477e25146ff5d3b49f9c1f +EBUILD mtavc-0.5-r1.ebuild 900 BLAKE2B 5aee94a7d2298c23d46c54f094706424842e0a845ec59e758245a4c4541b14300d4f6f67b439e401b0bb40269b9ed9e72fdfa38bf8eda985bd1b49bc29469916 SHA512 71e78638954ffc8d0c2afe63a5ee43bca34f5325c24419aa886c281f7097844a5d8afcb246e460e0aed39c77059f59397315a706aebe0413bd7b8efaf4ed0e8f +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-server/mtavc/files/mtavc b/games-server/mtavc/files/mtavc new file mode 100644 index 000000000000..00b76f9d6f18 --- /dev/null +++ b/games-server/mtavc/files/mtavc @@ -0,0 +1,3 @@ +#!/bin/sh +cd GENTOO_DIR +exec ./MTAServer "$@" diff --git a/games-server/mtavc/metadata.xml b/games-server/mtavc/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-server/mtavc/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-server/mtavc/mtavc-0.5-r1.ebuild b/games-server/mtavc/mtavc-0.5-r1.ebuild new file mode 100644 index 000000000000..773e87124012 --- /dev/null +++ b/games-server/mtavc/mtavc-0.5-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="dedicated server for GTA3 multiplayer" +HOMEPAGE="http://mtavc.com/" +SRC_URI="http://files.gonnaplay.com/201/MTAServer0_5-linux.tar.gz" + +LICENSE="MTA-0.5" +SLOT="0" +KEYWORDS="-* ~x86" +IUSE="" + +RDEPEND="virtual/libstdc++" +DEPEND="" + +S=${WORKDIR} + +QA_PREBUILT="/opt/${PN}/MTAServer" +QA_EXECSTACK="/opt/${PN}/MTAServer" + +src_prepare() { + default + + sed -i 's:NoName:Gentoo:' mtaserver.conf || die +} + +src_install() { + local dir=/opt/${PN} + local files="banned.lst motd.txt mtaserver.conf" + local f + + dobin "${FILESDIR}"/mtavc + sed -i -e "s:GENTOO_DIR:${dir}:" "${D}/usr/bin"/mtavc + + exeinto "${dir}" + newexe MTAServer${PV} MTAServer + insinto /etc/${PN} + doins ${files} + dodoc README CHANGELOG + for f in ${files} ; do + dosym /etc/${PN}/${f} "${dir}"/${f} + done +} diff --git a/games-server/nwn-ded-1.69-r1 b/games-server/nwn-ded-1.69-r1 deleted file mode 100644 index 38a459cd89d3..000000000000 --- a/games-server/nwn-ded-1.69-r1 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=install unpack -DEPEND=app-arch/unzip -DESCRIPTION=Neverwinter Nights Dedicated server -EAPI=6 -HOMEPAGE=http://nwn.bioware.com/downloads/standaloneserver.html -IUSE=l10n_en -KEYWORDS=-* ~amd64 ~x86 -LICENSE=NWN-EULA -RESTRICT=mirror strip -SLOT=0 -SRC_URI=http://files.bioware.com/neverwinternights/updates/windows/server/NWNDedicatedServer1.69.zip l10n_en? ( http://files.bioware.com/neverwinternights/dialog//english/NWNEnglish1.69dialog.zip ) -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=f59fdb65c6eb0bd6407a57c84a4b44c6 diff --git a/games-server/nwn-ded/Manifest b/games-server/nwn-ded/Manifest new file mode 100644 index 000000000000..fc835790f181 --- /dev/null +++ b/games-server/nwn-ded/Manifest @@ -0,0 +1,4 @@ +DIST NWNDedicatedServer1.69.zip 606293816 BLAKE2B f5e9f49bcaf76329310eee092328ef6cfc7d825409d66369ec18a8b2f881a6f6232a0a63d89d23f755165c1e13e6140575549875b55e80a0002f85b7af2b98ee SHA512 0f91ab8d03d040389d9ad7ccc7d50079057d62d542fecfb2164a726511718ba982f7b2f9878bc1143f2c61b3ef7ab8f92e5e4007b515ad6aff51216c5b602ffd +DIST NWNEnglish1.69dialog.zip 3200987 BLAKE2B 8d0864ce22b39862a72291afca3e4ea8ff7ae35cee0dd38cb1424d7f767aeb4df82e4a6c53a1d59c2e670e3af05c8e6ff1984e6f1065d7e71f70ead97d0a369e SHA512 8c3214a3bcf137ea3b4b59d89055b7e22d15b8ab8d6007d81a9e70e156f8af611a8032ce5cf5c42ecd8c5af7eebe95f012a3f91723f273efa42701fd036482be +EBUILD nwn-ded-1.69-r1.ebuild 1787 BLAKE2B cddcef0e76a4d35888cacc73e12ab2e20e1715752e8aaec3d792bde67c3543e73ca50fbb69e0290885383e079a52e5dd918388486541f77e64d05ab33929e915 SHA512 fffe02b765fef007cd04230fb6d6c218c351a904b8f332cc7522fcc5990a9f049ab13278df7cfaea4db2632a87bb3d618a5730bf5da39997069111b3e21245fc +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-server/nwn-ded/metadata.xml b/games-server/nwn-ded/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-server/nwn-ded/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-server/nwn-ded/nwn-ded-1.69-r1.ebuild b/games-server/nwn-ded/nwn-ded-1.69-r1.ebuild new file mode 100644 index 000000000000..21ee32df32f6 --- /dev/null +++ b/games-server/nwn-ded/nwn-ded-1.69-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +LANGUAGES="l10n_en" +DIALOG_URL_BASE=http://files.bioware.com/neverwinternights/dialog/ + +DESCRIPTION="Neverwinter Nights Dedicated server" +HOMEPAGE="http://nwn.bioware.com/downloads/standaloneserver.html" +SRC_URI="http://files.bioware.com/neverwinternights/updates/windows/server/NWNDedicatedServer${PV}.zip + l10n_en? ( ${DIALOG_URL_BASE}/english/NWNEnglish${PV}dialog.zip )" + +LICENSE="NWN-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="${LANGUAGES}" +RESTRICT="mirror strip" + +DEPEND="app-arch/unzip" + +S=${WORKDIR} + +dir="/opt/${PN}" +QA_PREBUILT="${dir:1}/common/nwserver" + +src_unpack() { + mkdir common || die + cd common || die + unpack NWNDedicatedServer${PV}.zip + tar -zxf linuxdedserver${PV/./}.tar.gz || die + rm -f *dedserver*.{tar.gz,sit,zip} *.exe *.dll || die + cd .. + local currentlocale="" + local a + for a in ${A} + do + if [ -z "${a/*dialog*/}" ] ; then + if [ -z "${a/*English*/}" ]; then currentlocale="en"; fi + if [ -z "${a/*French*/}" ]; then currentlocale="fr"; fi + if [ -z "${a/*German*/}" ]; then currentlocale="de"; fi + if [ -z "${a/*Italian*/}" ]; then currentlocale="it"; fi + if [ -z "${a/*Spanish*/}" ]; then currentlocale="es"; fi + if [ -z "${a/*Japanese*/}" ]; then currentlocale="ja"; fi + mkdir ${currentlocale} || die + cd ${currentlocale} || die + cp -rfl ../common/* . || die + unpack "${a}" + cd .. + fi + done +} + +src_install() { + dodir ${dir} + + local currentlocale + for currentlocale in * ; do + if [[ ${currentlocale} != "common" ]] + then + make_wrapper nwserver-${currentlocale} ./nwserver "${dir}/${currentlocale}" "${dir}/${currentlocale}" + fi + done + + mv * "${D}/${dir}"/ || die + + chmod -R g+w "${D}/${dir}" +} diff --git a/games-server/pvpgn-1.8.5-r1 b/games-server/pvpgn-1.8.5-r1 deleted file mode 100644 index 45f38c423d9f..000000000000 --- a/games-server/pvpgn-1.8.5-r1 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=compile configure install postinst preinst prepare setup unpack -DEPEND=mysql? ( virtual/mysql ) postgres? ( dev-db/postgresql[server] ) -DESCRIPTION=A gaming server for Battle.Net compatible clients -EAPI=5 -HOMEPAGE=https://sourceforge.net/projects/pvpgn.berlios/ -IUSE=mysql postgres -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 -RDEPEND=mysql? ( virtual/mysql ) postgres? ( dev-db/postgresql[server] ) games-misc/games-envd -SLOT=0 -SRC_URI=mirror://sourceforge/pvpgn.berlios/pvpgn-1.8.5.tar.bz2 mirror://sourceforge/pvpgn.berlios/pvpgn-support-1.3.tar.gz -_eclasses_=base 983774947da124fb7d542ce25a218bb1 desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc games 2bb3ede665927a68ffdb7c41eec7efde ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 user 8bc2845510e2109af75e3eeac607ec81 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=05af2e401e2dbf0c109df93a0c2eabb9 diff --git a/games-server/pvpgn/Manifest b/games-server/pvpgn/Manifest new file mode 100644 index 000000000000..e49946d2f576 --- /dev/null +++ b/games-server/pvpgn/Manifest @@ -0,0 +1,6 @@ +AUX pvpgn-1.8.5-fhs.patch 11549 BLAKE2B 7776e8df3d97238084664f6b3edca525445d7d4aafa3049897fbe2b4b069e768acbab9daf474f8ffcbd4e5375e2fcfca4b8bea0ec42ab62f557c08c708033933 SHA512 9842120682df08c34eada97712246b3c492be66e3e3bd10dfe744896f7c1c461da530ea90c819dff2de436017836bf4b107d46b0960d928e00004ab6381dbbd1 +AUX pvpgn.rc 885 BLAKE2B c0739177a13a2bddbe3cc82ad7bf87ff313faf0882159f7475c223ec76ef164ba572b048d05683bd02756d121e97efb04ec34fbd53ad856a54f6c23663fec6a3 SHA512 4b0a5d52e50bfde317ab3d9689aef6491b0dc8e3e94576c8ee7376c2118e3a315555a66b2aecb086914aec055011b7687eb1bdfea266423071098ac1151d0cdf +DIST pvpgn-1.8.5.tar.bz2 982931 BLAKE2B 73c84278c5a7a13b781541f49a77af45d05950f0e378237ec0bfce3b4a55a94f91cfc2f994f56046e76c3dfb5d390427ee9cecbc21d1da048d2c503bfa21cf7b SHA512 7cbe141efe03efa4ce0fc1cc3b4e15afe2e85e3c83a27afdf36fec9e2dadf1c7b9aca1773e6a3e6566b62f5a7999cc040c9517786ca70eeb70f86eea84e9218e +DIST pvpgn-support-1.3.tar.gz 123805 BLAKE2B dc051265c6d4c5a2ab69379f7ac4a57f402d25e8898020217f2ae5f12cb2ca4db860df47efe38ed6494eb040cbd52a7ed495bc3dab59c9e9e48a8e1386500d6e SHA512 9002fcdb7da92e84af97319b9f1e38f5cf97466aef88549b1fe81b9070643f321011adf674424e2c4acc22f847c7fc61ca2cbf2da0223842e9b9e6c8f1427d76 +EBUILD pvpgn-1.8.5-r1.ebuild 2505 BLAKE2B 05a0f7f8e3f9072c1ea4708b25311f861ffa30440cdf0e0cb1fe43a14668937c55d01409068f7f1f96c2822ad71612385c68da9ee8588da5acb6a2e0a5a651ba SHA512 8e8f4be487eccd49de8bc23d9b3d563ca4977377d6a643ffbbcb67812fb5b588333e248bcf291c92b59b384aa8f10f9e79bde2d636abbbd929a4b5475eb063d7 +MISC metadata.xml 336 BLAKE2B c11b3fef92305d55a4881dddeb386549100c4e7b74227b12a19f59c720fe502e4ff4e55681150d5b24471ed1a27230c2e8fe5162ffda30812f66195ae541c5f0 SHA512 5f28f8c449006d87effadc3d9e8dc234fede927b9487dc1efa5c9912913b23c752fb7e7589dc3f466cdd91894a5d5b7ca8d155460e73f0ac9280ddaf011412aa diff --git a/games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch b/games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch new file mode 100644 index 000000000000..d1450b3ad178 --- /dev/null +++ b/games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch @@ -0,0 +1,233 @@ +diff -ruN pvpgn-1.8.0rc2.orig/conf/bnetd.conf.in pvpgn-1.8.0rc2/conf/bnetd.conf.in +--- pvpgn-1.8.0rc2.orig/conf/bnetd.conf.in 2005-09-19 08:17:50.000000000 -0400 ++++ pvpgn-1.8.0rc2/conf/bnetd.conf.in 2006-08-16 23:34:10.000000000 -0400 +@@ -50,22 +50,22 @@ + # - "prefix" : prefix to use for all pvpgn tables (default "") # + # # + # Examples: # +-# storage_path = file:mode=plain;dir=/usr/local/var/users;clan=/usr/local/var/clans;team=/usr/local/var/teams;default=/usr/local/etc/bnetd_default_user.plain +-# storage_path = file:mode=cdb;dir=/usr/local/var/userscdb;clan=/usr/local/var/clans;team=/usr/local/var/teams;default=/usr/local/etc/bnetd_default_user.cdb ++# storage_path = file:mode=plain;dir=%statedir%/users;clan=%statedir%/clans;team=%statedir%/teams;default=%confdir%/bnetd_default_user.plain ++# storage_path = file:mode=cdb;dir=%statedir%/userscdb;clan=%statedir%/clans;team=%statedir%/teams;default=%confdir%/bnetd_default_user.cdb + # storage_path = sql:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_ + # storage_path = sql:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_ +-# storage_path = sql:mode=sqlite3;name=/usr/local/var/users.db;default=0;prefix=pvpgn_ ++# storage_path = sql:mode=sqlite3;name=%statedir%/users.db;default=0;prefix=pvpgn_ + # storage_path = sql:mode=odbc;name=PVPGN;prefix=pvpgn_ + # + # WARNING!! you MUST change "DBlayoutfile" bellow configuration directive to + # sql_DB_layout2.conf to be able to use "sql2" !!! + # storage_path = sql2:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn2_ + # storage_path = sql2:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn2_ +-# storage_path = sql2:mode=sqlite3;name=/usr/local/var/users.db;default=0;prefix=pvpgn2_ ++# storage_path = sql2:mode=sqlite3;name=%statedir%/users.db;default=0;prefix=pvpgn2_ + # storage_path = sql2:mode=odbc;name=PVPGN;prefix=pvpgn2_ + #----------------------------------------------------------------------------# + +-storage_path = file:mode=plain;dir=/usr/local/var/users;clan=/usr/local/var/clans;team=/usr/local/var/teams;default=/usr/local/etc/bnetd_default_user.plain ++storage_path = file:mode=plain;dir=%statedir%/users;clan=%statedir%/clans;team=%statedir%/teams;default=%confdir%/bnetd_default_user.plain + + # # + ############################################################################## +@@ -76,35 +76,35 @@ + # Use absolute paths in these lines to avoid problems! # + #----------------------------------------------------------------------------# + +-filedir = /usr/local/var/files +-reportdir = /usr/local/var/reports +-chanlogdir = /usr/local/var/chanlogs +-motdfile = /usr/local/etc/bnmotd.txt +-issuefile = /usr/local/etc/bnissue.txt +-channelfile = /usr/local/etc/channel.conf +-newsfile = /usr/local/etc/news.txt +-adfile = /usr/local/etc/ad.conf +-topicfile = /usr/local/etc/topics.conf +-ipbanfile = /usr/local/etc/bnban.conf +-helpfile = /usr/local/etc/bnhelp.conf +-mpqfile = /usr/local/etc/autoupdate.conf +-logfile = /usr/local/var/bnetd.log +-realmfile = /usr/local/etc/realm.conf +-maildir = /usr/local/var/bnmail +-versioncheck_file = /usr/local/etc/versioncheck.conf +-mapsfile = /usr/local/etc/bnmaps.conf +-xplevelfile = /usr/local/etc/bnxplevel.conf +-xpcalcfile = /usr/local/etc/bnxpcalc.conf +-#pidfile = /usr/local/var/bnetd.pid +-ladderdir = /usr/local/var/ladders +-command_groups_file = /usr/local/etc/command_groups.conf +-tournament_file = /usr/local/etc/tournament.conf +-statusdir = /usr/local/var/status +-aliasfile = /usr/local/etc/bnalias.conf +-anongame_infos_file = /usr/local/etc/anongame_infos.conf +-DBlayoutfile = /usr/local/etc/sql_DB_layout.conf +-supportfile = /usr/local/etc/supportfile.conf +-transfile = /usr/local/etc/address_translation.conf ++filedir = %datadir% ++reportdir = %statedir%/reports ++chanlogdir = %statedir%/chanlogs ++motdfile = %confdir%/bnmotd.txt ++issuefile = %confdir%/bnissue.txt ++channelfile = %confdir%/channel.conf ++newsfile = %confdir%/news.txt ++adfile = %confdir%/ad.conf ++topicfile = %confdir%/topics.conf ++ipbanfile = %confdir%/bnban.conf ++helpfile = %confdir%/bnhelp.conf ++mpqfile = %confdir%/autoupdate.conf ++logfile = %logdir%/bnetd.log ++realmfile = %confdir%/realm.conf ++maildir = %statedir%/bnmail ++versioncheck_file = %confdir%/versioncheck.conf ++mapsfile = %confdir%/bnmaps.conf ++xplevelfile = %confdir%/bnxplevel.conf ++xpcalcfile = %confdir%/bnxpcalc.conf ++#pidfile = /var/run/bnetd/bnetd.pid ++ladderdir = %confdir%/ladders ++command_groups_file = %confdir%/command_groups.conf ++tournament_file = %confdir%/tournament.conf ++statusdir = %statedir%/status ++aliasfile = %confdir%/bnalias.conf ++anongame_infos_file = %confdir%/anongame_infos.conf ++DBlayoutfile = %confdir%/sql_DB_layout.conf ++supportfile = %confdir%/supportfile.conf ++transfile = %confdir%/address_translation.conf + + fortunecmd = /usr/games/fortune + +diff -ruN pvpgn-1.8.0rc2.orig/conf/d2cs.conf.in pvpgn-1.8.0rc2/conf/d2cs.conf.in +--- pvpgn-1.8.0rc2.orig/conf/d2cs.conf.in 2005-09-29 01:37:33.000000000 -0400 ++++ pvpgn-1.8.0rc2/conf/d2cs.conf.in 2006-08-16 23:35:43.000000000 -0400 +@@ -86,16 +86,16 @@ + # Use absolute paths in these lines to avoid problems! # + #-------------------------------------------------------------------------------# + # # +-logfile = /usr/local/var/d2cs.log +-charsavedir = /usr/local/var/charsave +-charinfodir = /usr/local/var/charinfo +-bak_charsavedir = /usr/local/var/bak/charsave +-bak_charinfodir = /usr/local/var/bak/charinfo +-ladderdir = /usr/local/var/ladders +-newbiefile = /usr/local/var/files/newbie.save +-transfile = /usr/local/etc/address_translation.conf +-d2gsconffile = /usr/local/etc/d2server.ini +-#pidfile = /usr/local/var/d2cs.pid ++logfile = %logdir%/d2cs.log ++charsavedir = %statedir%/charsave ++charinfodir = %statedir%/charinfo ++bak_charsavedir = %statedir%/bak/charsave ++bak_charinfodir = %statedir%/bak/charinfo ++ladderdir = %statedir%/ladders ++newbiefile = %statedir%/files/newbie.save ++transfile = %confdir%/address_translation.conf ++d2gsconffile = %confdir%/d2server.ini ++#pidfile = /var/run/bnetd/d2cs.pid + + # # + ################################################################################# +diff -ruN pvpgn-1.8.0rc2.orig/conf/d2dbs.conf.in pvpgn-1.8.0rc2/conf/d2dbs.conf.in +--- pvpgn-1.8.0rc2.orig/conf/d2dbs.conf.in 2005-08-24 23:58:18.000000000 -0400 ++++ pvpgn-1.8.0rc2/conf/d2dbs.conf.in 2006-08-16 23:36:58.000000000 -0400 +@@ -49,14 +49,14 @@ + # File and Path section # + # Use absolute paths in these lines to avoid problems! # + #-------------------------------------------------------------------------------# +-logfile = /usr/local/var/d2dbs.log +-logfile-gs = /usr/local/var/d2dbs-gs.log +-charsavedir = /usr/local/var/charsave +-charinfodir = /usr/local/var/charinfo +-ladderdir = /usr/local/var/ladders +-bak_charsavedir = /usr/local/var/bak/charsave +-bak_charinfodir = /usr/local/var/bak/charinfo +-#pidfile = /usr/local/var/d2dbs.pid ++logfile = %logdir%/d2dbs.log ++logfile-gs = %logdir%/d2dbs-gs.log ++charsavedir = %statedir%/charsave ++charinfodir = %statedir%/charinfo ++ladderdir = %statedir%/ladders ++bak_charsavedir = %statedir%/bak/charsave ++bak_charinfodir = %statedir%/bak/charinfo ++#pidfile = /var/run/bnetd/d2dbs.pid + + # # + ################################################################################# + +diff -ruN pvpgn-1.8.0rc2.orig/src/Makefile.in pvpgn-1.8.0rc2/src/Makefile.in +--- pvpgn-1.8.0rc2.orig/src/Makefile.in 2005-07-29 02:11:38.000000000 +0600 ++++ pvpgn-1.8.0rc2/src/Makefile.in 2005-09-23 15:10:02.968342144 +0600 +@@ -23,22 +23,23 @@ + bindir = @bindir@ + sbindir = @sbindir@ + mandir = @mandir@ +-confdir = @sysconfdir@ +-sharedir = @localstatedir@ +-filesdir = @localstatedir@/files +-usersdir = @localstatedir@/users +-userscdbdir = @localstatedir@/userscdb +-clandir = @localstatedir@/clans +-teamdir = @localstatedir@/teams +-bnmaildir = @localstatedir@/bnmail +-reportsdir = @localstatedir@/reports +-chanlogsdir = @localstatedir@/chanlogs +-charinfodir = @localstatedir@/charinfo +-charsavedir = @localstatedir@/charsave +-ladderdir = @localstatedir@/ladders +-statusdir = @localstatedir@/status +-bak_charsavedir = @localstatedir@/bak/charsave +-bak_charinfodir = @localstatedir@/bak/charinfo ++confdir = @sysconfdir@/pvpgn ++statedir = @localstatedir@/pvpgn ++filesdir = @datadir@/pvpgn ++usersdir = @localstatedir@/pvpgn/users ++userscdbdir = @localstatedir@/pvpgn/userscdb ++clandir = @localstatedir@/pvpgn/clans ++bnmaildir = @localstatedir@/pvpgn/bnmail ++reportsdir = @localstatedir@/pvpgn/reports ++chanlogsdir = @localstatedir@/pvpgn/chanlogs ++charinfodir = @localstatedir@/pvpgn/charinfo ++charsavedir = @localstatedir@/pvpgn/charsave ++ladderdir = @localstatedir@/pvpgn/ladders ++statusdir = @localstatedir@/pvpgn/status ++bak_charsavedir = @localstatedir@/pvpgn/bak/charsave ++bak_charinfodir = @localstatedir@/pvpgn/bak/charinfo ++logdir = @localstatedir@/pvpgn/log ++ + + SRC_SRCDIR = @srcdir@ + SRC_BINDIR = @srcdir@/../bin +@@ -677,7 +678,8 @@ + + .PHONY: install-share + install-share: +- ${INSTALL_DIRS} ${DESTDIR}/${sharedir} ${DESTDIR}/${filesdir} ${DESTDIR}/${usersdir} ${DESTDIR}/${userscdbdir} ${DESTDIR}/${bnmaildir} ${DESTDIR}/${reportsdir} \ ++ ${INSTALL_DIRS} ${DESTDIR}/${datadir} ${DESTDIR}/${statedir} \ ++ ${DESTDIR}/${filesdir} ${DESTDIR}/${usersdir} ${DESTDIR}/${userscdbdir} ${DESTDIR}/${bnmaildir} ${DESTDIR}/${reportsdir} \ + ${DESTDIR}/${chanlogsdir} ${DESTDIR}/${charinfodir} ${DESTDIR}/${charsavedir} ${DESTDIR}/${bak_charsavedir} \ + ${DESTDIR}/${bak_charinfodir} ${DESTDIR}/${ladderdir} ${DESTDIR}/${statusdir} \ + ${DESTDIR}/${clandir} ${DESTDIR}/${teamdir} +@@ -728,21 +730,21 @@ + .PHONY: uninstall-share + uninstall-share: + @list='${SHARES}'; for p in $$list; do \ +- ${ECHO} " ${RMF} ${sharedir}/$$p"; \ +- ${RMF} ${sharedir}/$$p; \ ++ ${ECHO} " ${RMF} ${filesdir}/$$p"; \ ++ ${RMF} ${filesdir}/$$p; \ + done + + ${SRC_CONFDIR}/bnetd.conf: ${SRC_CONFDIR}/bnetd.conf.in ${SRC_SRCDIR}/config.status + @${RMF} $@ +- ${SED} -e "s@/usr/local/var/@${sharedir}/@g" -e "s@/usr/local/etc/@${confdir}/@g" ${SRC_CONFDIR}/bnetd.conf.in > $@ ++ ${SED} -e "s@%datadir%@${filesdir}/@g" -e "s@%confdir%@${confdir}/@g" -e "s@%statedir%@${statedir}@g" -e "s@%logdir%@${logdir}@g" ${SRC_CONFDIR}/bnetd.conf.in > $@ + + ${SRC_CONFDIR}/d2cs.conf: ${SRC_CONFDIR}/d2cs.conf.in ${SRC_SRCDIR}/config.status + @${RMF} $@ +- ${SED} -e "s@/usr/local/var/@${sharedir}/@g" -e "s@/usr/local/etc/@${confdir}/@g" ${SRC_CONFDIR}/d2cs.conf.in > $@ ++ ${SED} -e "s@%datadir%@${filesdir}/@g" -e "s@%confdir%@${confdir}/@g" -e "s@%statedir%@${statedir}@g" -e "s@%logdir%@${logdir}@g" ${SRC_CONFDIR}/d2cs.conf.in > $@ + + ${SRC_CONFDIR}/d2dbs.conf: ${SRC_CONFDIR}/d2dbs.conf.in ${SRC_SRCDIR}/config.status + @${RMF} $@ +- ${SED} -e "s@/usr/local/var/@${sharedir}/@g" -e "s@/usr/local/etc/@${confdir}/@g" ${SRC_CONFDIR}/d2dbs.conf.in > $@ ++ ${SED} -e "s@%datadir%@${filesdir}/@g" -e "s@%confdir%@${confdir}/@g" -e "s@%statedir%@${statedir}@g" -e "s@%logdir%@${logdir}@g" ${SRC_CONFDIR}/d2dbs.conf.in > $@ + + ${SRC_ACDIR}/ansi2knr: ${SRC_ACDIR}/ansi2knr.o + @${RMF} $@ diff --git a/games-server/pvpgn/files/pvpgn.rc b/games-server/pvpgn/files/pvpgn.rc new file mode 100644 index 000000000000..83da55a62c15 --- /dev/null +++ b/games-server/pvpgn/files/pvpgn.rc @@ -0,0 +1,40 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +depend() { + need net +} + +checkconfig() { + if [[ ! -f /etc/games/pvpgn/NAME.conf ]] ; then + eerror "You must have a NAME.conf configuration file to start NAME" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting PvPGN NAME" + start-stop-daemon --background --start --quiet \ + --make-pidfile \ + --pidfile /var/run/NAME.pid \ + --exec GAMES_BINDIR/NAME -c GAMES_USER:GAMES_GROUP -- -f + eend $? "Failed to start NAME" +} + +stop() { + ebegin "Stopping PvPGN NAME" + start-stop-daemon --stop --quiet --retry 20 \ + --pidfile /var/run/NAME.pid + eend $? +} + +reload() { + ebegin "Rehashing configuration for PvPGN NAME" + start-stop-daemon --stop --signal HUP --oknodo \ + --pidfile /var/run/NAME.pid + eend $? +} diff --git a/games-server/pvpgn/metadata.xml b/games-server/pvpgn/metadata.xml new file mode 100644 index 000000000000..a7406f387a17 --- /dev/null +++ b/games-server/pvpgn/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">pvpgn.berlios</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild b/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild new file mode 100644 index 000000000000..2ec880c5c21c --- /dev/null +++ b/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +SUPPORTP="${PN}-support-1.3" +DESCRIPTION="A gaming server for Battle.Net compatible clients" +HOMEPAGE="https://sourceforge.net/projects/pvpgn.berlios/" +SRC_URI="mirror://sourceforge/pvpgn.berlios/${PN}-${PV/_/}.tar.bz2 + mirror://sourceforge/pvpgn.berlios/${SUPPORTP}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="mysql postgres" + +DEPEND="mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql[server] )" +RDEPEND=${DEPEND} + +src_prepare() { + epatch "${FILESDIR}/${P}-fhs.patch" +} + +src_configure() { + cd src + # everything in GAMES_BINDIR (bug #63071) + egamesconf \ + --sbindir="${GAMES_BINDIR}" \ + $(use_with mysql) \ + $(use_with postgres pgsql) +} + +src_compile() { + emake -C src +} + +src_install() { + local f + + dodoc README README.DEV CREDITS BUGS TODO UPDATE version-history.txt + docinto docs + dodoc docs/* + + emake -C src DESTDIR="${D}" install + + insinto "${GAMES_DATADIR}/${PN}" + doins "${WORKDIR}/${SUPPORTP}/"* + + # GAMES_USER_DED here instead of GAMES_USER (bug #65423) + for f in bnetd d2cs d2dbs ; do + newinitd "${FILESDIR}/${PN}.rc" ${f} + sed -i \ + -e "s:NAME:${f}:g" \ + -e "s:GAMES_BINDIR:${GAMES_BINDIR}:g" \ + -e "s:GAMES_USER:${GAMES_USER_DED}:g" \ + -e "s:GAMES_GROUP:${GAMES_GROUP}:g" \ + "${D}/etc/games/${PN}/${f}.conf" \ + "${D}/etc/init.d/${f}" || die + done + + keepdir $(find "${D}${GAMES_STATEDIR}"/${PN} -type d -printf "${GAMES_STATEDIR}/${PN}/%P ") "${GAMES_STATEDIR}"/${PN}/log + prepgamesdirs + + chown -R ${GAMES_USER_DED}:${GAMES_GROUP} "${D}${GAMES_STATEDIR}/${PN}" + fperms 0775 "${GAMES_STATEDIR}/${PN}/log" + fperms 0770 "${GAMES_STATEDIR}/${PN}" +} + +pkg_postinst() { + games_pkg_postinst + + elog "If this is a first installation you need to configure the package by" + elog "editing the configuration files provided in ${GAMES_SYSCONFDIR}/${PN}" + elog "Also you should read the documentation in /usr/share/docs/${PF}" + elog + elog "If you are upgrading you MUST read UPDATE in /usr/share/docs/${PF}" + elog "and update your configuration accordingly." + if use mysql ; then + elog + elog "You have enabled MySQL storage support. You will need to edit" + elog "bnetd.conf to use it. Read README.storage from the docs directory." + fi + if use postgres ; then + elog + elog "You have enabled PostgreSQL storage support. You will need to edit" + elog "bnetd.conf to use it. Read README.storage from the docs directory." + fi +} diff --git a/games-server/steamcmd-1.0 b/games-server/steamcmd-1.0 deleted file mode 100644 index 4e4ca6962022..000000000000 --- a/games-server/steamcmd-1.0 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=install postinst setup -DESCRIPTION=This is the command-line version of the Steam client for dedicated servers -EAPI=6 -HOMEPAGE=https://developer.valvesoftware.com/wiki/SteamCMD -KEYWORDS=-* ~amd64 ~x86 -LICENSE=LGPL-2.1+ Steam -RDEPEND=app-misc/screen -RESTRICT=bindist mirror -SLOT=0 -SRC_URI=https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz -> steamcmd-1.0.tar.gz -_eclasses_=readme.gentoo-r1 54aecea034d5e90bdb0684b80da5c9f3 user 8bc2845510e2109af75e3eeac607ec81 -_md5_=14926e225a9d6373a9fea2e2f865c2e7 diff --git a/games-server/steamcmd/Manifest b/games-server/steamcmd/Manifest new file mode 100644 index 000000000000..1152900288e5 --- /dev/null +++ b/games-server/steamcmd/Manifest @@ -0,0 +1,6 @@ +AUX README.gentoo 1420 BLAKE2B 470f3a40acf5eb150c583697a5dc2b80b6a8d1814b8c4e2c74757479e24540c5f38297b27096e8edd57b685fa0458f5175d75e34d08bd2acf45f4d7aa2c12fa8 SHA512 103ebd60a5e8c9bce0ba742ed945734d19330f5567e738317a0d8e37b2625b852c6606678487c8aa27937c7cd25a05680a7d165cc8f33a0044a993d801e5a65d +AUX steamcmd.confd 570 BLAKE2B fc2fb283a9cfa8786d46c7c5820decdb6c939912bb09d5d7619f229d44994c191e97c869a79a04f9579f90f7496d38e5a026eb20377b01c39dc388dcca3633ed SHA512 223cc5890669911047ee30d97551004d3023c423d5566bf70393f6601c60b8300ccd5049bd5149b2d629dbb35861a331d43aaabc2d10c945aab4327e9435366a +AUX steamcmd.initd 814 BLAKE2B bdf07f0a14751d7d94d65e567f741f73388277dd7a2d084e1ad696f23e1f1081188ec6008c06a078a0850c7a096a0a5a6566d455cad7d333b8a27c334f0e1d4d SHA512 591302e570e01de27684e6abef8e89716b211b48e3993bef323e17b351f07834435acf4abfae7fedc44669ab002847657794db2aada65385b1d8fb347b6d633d +DIST steamcmd-1.0.tar.gz 2428561 BLAKE2B c51dbb8c7731222eb748508b8a84a4cbda55168c85116078074bd0da85018a344ca088b7af41a07a96c15e64d0aeb28fb90cd85d99f444e9425f5a326c1823fe SHA512 b37debfa45e5578cc065924770258a026adad339aae86da1a66e71ac4ee80d2ddbca9060ca4c734affd2c6902635e7b32e2b3efe11bb600969654b3abeb3839e +EBUILD steamcmd-1.0.ebuild 1176 BLAKE2B b3523614535721626b77a03189b3f20a23b1f9ee1fc57956d807b01a58739ddd0ae572287457b9b331dc390129db1ea47951c07792250ebf7e017963de3f4a2c SHA512 3e07ad7ae9e51dbaa52443ac781fd51a5a2c30247b684945758ec3437085056a6e2ec7c267dd66d85fcee9f043c860d6825d0b61bb4ff541845758794c9d4b3a +MISC metadata.xml 754 BLAKE2B 0e5610ae928ebb8324f903b6a4429e53c503f604400f09cf40faf721c9187536e1b9412dcbbfa5b79d44ac6f2efa2bc87ba7dc5f54ccf87388691c287ab7478c SHA512 eac3fb10da1a2b27986c75465b5e7ff7e2c74ca09b396053715d9e403ad6bb190eb7747c65dee54b6555e4ae8a014574a26bd7eb10a047e00ee733a90b3b217a diff --git a/games-server/steamcmd/files/README.gentoo b/games-server/steamcmd/files/README.gentoo new file mode 100644 index 000000000000..70f027bb8044 --- /dev/null +++ b/games-server/steamcmd/files/README.gentoo @@ -0,0 +1,42 @@ +Before you can start installing your favourite dedicated server, +you must let SteamCMD do update itself. +You can do this, by running SteamCMD itself: + +cd /opt/steamcmd +runuser -l steamcmd -c './steamcmd.sh' -s /bin/bash + +On the first run, you will see, that SteamCMD starts updating itself. +After that, SteamCMD is ready to go +for installing your favourite dedicated server. + +Please keep in mind: You should not run SteamCMD as root! + +This package provides an init script and a conf file. +Don't modify those files directly, +but instead make a symlink of that init script +and a copy of that conf file. +You would do this for every server, you want to setup. + +For example, you wan't to setup an old Counter-Strike 1.6 server, +you would do: + +cd /etc/init.d +ln -s steamcmd steamcmd.cstrike + +cd /etc/conf.d +cp steamcmd steamcmd.cstrike + +After that, make your settings in /etc/conf.d/steamcmd.cstrike + +In order to install with SteamCMD a dedicated server, +for example CS 1.6, please run: + +cd /opt/steamcmd +./steamcmd.sh +login anonymous +force_install_dir /opt/steamcmd/hlds +app_set_config 90 mod cstrike +app_update 90 validate +quit + +While you can use any path for '+force_install_dir', it's recommended to use: +'/opt/steamcmd/hlds' for older HL1 based mods. +'/opt/steamcmd/srcds' for newer HL2 based mods. + +For more information, please visit the Valve Developer Community: +https://developer.valvesoftware.com/wiki/SteamCMD diff --git a/games-server/steamcmd/files/steamcmd.confd b/games-server/steamcmd/files/steamcmd.confd new file mode 100644 index 000000000000..dcaf8036b88a --- /dev/null +++ b/games-server/steamcmd/files/steamcmd.confd @@ -0,0 +1,15 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Specifies, which server binary is used. +# This could be 'hlds_run' or 'srcds_run', depending on your game. +STEAMCMD_BINARY="hlds_run" + +# Path to the files of your started server. +# It's recommended to use: +# '/opt/steamcmd/hlds' for older HL1 based mods. +# '/opt/steamcmd/srcds' for newer HL2 based mods. +STEAMCMD_PATH="/opt/steamcmd/hlds" + +# Options for your server binary. +STEAMCMD_OPTS="-game valve +ip 127.0.0.1 +maxplayers 32 +map crossfire -pingboost 3" diff --git a/games-server/steamcmd/files/steamcmd.initd b/games-server/steamcmd/files/steamcmd.initd new file mode 100644 index 000000000000..fecd30e3079b --- /dev/null +++ b/games-server/steamcmd/files/steamcmd.initd @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +if [ "${SVCNAME}" = "steamcmd" ]; then + instance="main" +else + instance="${SVCNAME#steamcmd.}" +fi + +name="SteamCMD (Mod: ${instance})" +pidfile="/run/steamcmd.${instance}.pid" +screen_name="steamcmd.${instance}" +start_stop_daemon_args="--chdir ${STEAMCMD_PATH}" + +command="screen" +command_args="-DmUS ${screen_name} ${STEAMCMD_PATH}/${STEAMCMD_BINARY} ${STEAMCMD_OPTS}" +command_background="true" +command_group="steamcmd" +command_user="steamcmd" + +depend() { + use net +} + +start_pre() { + if [ -z "$STEAMCMD_BINARY" ] || [ -z "$STEAMCMD_PATH" ] || [ -z "$STEAMCMD_OPTS" ]; then + eerror "One or more STEAMCMD_* variables in /etc/conf.d/steamcmd.${SVCNAME} are not set!" + return 1 + fi + return 0 +} diff --git a/games-server/steamcmd/metadata.xml b/games-server/steamcmd/metadata.xml new file mode 100644 index 000000000000..7b05247dc78f --- /dev/null +++ b/games-server/steamcmd/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ck+gentoo@bl4ckb0x.de</email> + <name>Conrad Kostecki</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + The Steam Console Client or SteamCMD is a command-line version of the Steam client. + Its primary use is to install and update various dedicated servers available on Steam + using a command-line interface. It works with games that use the SteamPipe content system. + All games have been migrated from the deprecated HLDSUpdateTool to SteamCMD. + </longdescription> +</pkgmetadata> diff --git a/games-server/steamcmd/steamcmd-1.0.ebuild b/games-server/steamcmd/steamcmd-1.0.ebuild new file mode 100644 index 000000000000..0d2067a30692 --- /dev/null +++ b/games-server/steamcmd/steamcmd-1.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit readme.gentoo-r1 user + +DESCRIPTION="This is the command-line version of the Steam client for dedicated servers" +HOMEPAGE="https://developer.valvesoftware.com/wiki/SteamCMD" +SRC_URI="https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1+ Steam" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +RDEPEND="app-misc/screen" + +RESTRICT="bindist mirror" + +S="${WORKDIR}" + +QA_PREBUILT="opt/steamcmd/linux32/libstdc++.so.6 + opt/steamcmd/linux32/steamcmd" + +pkg_setup() { + enewgroup steamcmd + enewuser steamcmd -1 -1 /opt/steamcmd steamcmd +} + +src_install() { + diropts -o steamcmd -g steamcmd + dodir /opt/steamcmd + keepdir /opt/steamcmd/{.steam,.steam/sdk32,linux32} + + exeopts -o steamcmd -g steamcmd + exeinto /opt/steamcmd + doexe steamcmd.sh + + exeopts -o steamcmd -g steamcmd + exeinto /opt/steamcmd/linux32 + doexe linux32/steamcmd linux32/libstdc++.so.6 + + newinitd "${FILESDIR}"/steamcmd.initd steamcmd + newconfd "${FILESDIR}"/steamcmd.confd steamcmd + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/games-server/ut2003-ded-2225-r2 b/games-server/ut2003-ded-2225-r2 deleted file mode 100644 index 6eb76cd68aba..000000000000 --- a/games-server/ut2003-ded-2225-r2 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=compile configure install postinst preinst prepare setup unpack -DEPEND=app-arch/unzip -DESCRIPTION=Unreal Tournament 2003 Linux Dedicated Server -EAPI=5 -HOMEPAGE=http://www.ut2003.com/ -KEYWORDS=~amd64 ~x86 -LICENSE=ut2003 -RDEPEND=games-misc/games-envd -RESTRICT=mirror strip -SLOT=0 -SRC_URI=http://www.agaland.it/misc/ut2003/ut2003-lnxded-2225.tar.bz2 mirror://gentoo/UT2003CrashFix.zip -_eclasses_=base 983774947da124fb7d542ce25a218bb1 desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc games 2bb3ede665927a68ffdb7c41eec7efde ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 user 8bc2845510e2109af75e3eeac607ec81 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=a6dc165bebf38b28765f35497be3c816 diff --git a/games-server/ut2003-ded/Manifest b/games-server/ut2003-ded/Manifest new file mode 100644 index 000000000000..9fe56def4ed7 --- /dev/null +++ b/games-server/ut2003-ded/Manifest @@ -0,0 +1,4 @@ +DIST UT2003CrashFix.zip 2764 BLAKE2B 697c35a02f447d0d436fc32bebdeafbca55ef644d951e92085c33f7597108625770b76e027f31287cd2ac66607692ff8c908f6971f936a134d58d0effc2586fc SHA512 24fdaac873b08a0860c23f66b9bd93922fc4f64486adbe9bfefeb340f9d9374778b5e7bacd0e12cc79d819fb340e007ab2a7f1f45c9e4f27ab3ab6b11033d444 +DIST ut2003-lnxded-2225.tar.bz2 304132056 BLAKE2B 3d3beb840eaa33b1bed4ca8b0c95c1a872b893275c404572f76a97764d09e4b8947f36b102559c1d344e6bbf4f013b9b202a47bc41083dd6c3f15da6759df62c SHA512 33ea560fe2583c2c82d0d1499e5ad16fcd70efdede27e088cb9e5a14cf6ce72f57fad8783e4b5a3fe2dbfc9277fc4d0094d6ad854a1a2150a9d04d967516fee4 +EBUILD ut2003-ded-2225-r2.ebuild 1728 BLAKE2B 6d48911ca99a886c7a63fc0e6bdfa7bce3485fe0b064255bdd4991677d83b9136c5cc4100fedcceb6dc4bd10ba363b38009ec9f515fd2f6e605bb85c566bb9a2 SHA512 7bb2b3d86ec194877c6c8b7d12acab42c9552832cbf7f3a1bc50066f324b2862f54dece16680490fb13cd7f48120afdf432d79f2f3e857001fecbf62181afb58 +MISC metadata.xml 636 BLAKE2B 85e9b947b17ef728ba3a405135e2e3f4eb6062267353766ed1fda515dec0d3bb04d5ea625476a5a8bebb414a53b8675815f8f6140ff9ec91766d932c7cbd1aa8 SHA512 79558fd6169771f018ba03a8b2b7c0919813c063abbd42a05b4687338625f9b05b5855c22ea0591ec0ff860d488985d005b2cc3e844568e960d9caf5cb7512a8 diff --git a/games-server/ut2003-ded/metadata.xml b/games-server/ut2003-ded/metadata.xml new file mode 100644 index 000000000000..5a21e7d7ec39 --- /dev/null +++ b/games-server/ut2003-ded/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +<longdescription> +Unreal Tounament 2003 is a first-person 3-D shooter and sequel to the 1999 Game of the Year, Unreal Tournament. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This is the dedicated server portion of the game and does not require the retail discs to use. +</longdescription> +</pkgmetadata> diff --git a/games-server/ut2003-ded/ut2003-ded-2225-r2.ebuild b/games-server/ut2003-ded/ut2003-ded-2225-r2.ebuild new file mode 100644 index 000000000000..6ed8f2d43974 --- /dev/null +++ b/games-server/ut2003-ded/ut2003-ded-2225-r2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit games + +DESCRIPTION="Unreal Tournament 2003 Linux Dedicated Server" +HOMEPAGE="http://www.ut2003.com/" +SRC_URI="http://www.agaland.it/misc/ut2003/ut2003-lnxded-${PV}.tar.bz2 + mirror://gentoo/UT2003CrashFix.zip" + +LICENSE="ut2003" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="mirror strip" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +QA_PREBUILT="${dir:1}/System/*" + +src_unpack() { + unpack ut2003-lnxded-${PV}.tar.bz2 + unzip "${DISTDIR}"/UT2003CrashFix.zip || die +} + +src_install() { + einfo "This will take a while ... go get a pizza or something" + + dodir "${dir}" + mv "${S}"/ut2003_dedicated/* "${Ddir}" + + # Here we apply DrSiN's crash patch + cp "${S}"/CrashFix/System/crashfix.u "${Ddir}"/System + + ed "${Ddir}"/System/Default.ini >/dev/null 2>&1 <<EOT +$ +?Engine.GameInfo? +a +AccessControlClass=crashfix.iaccesscontrolini +. +w +q +EOT + + # Here we apply fix for bug #54726 + sed -i \ + -e "s:UplinkToGamespy=True:UplinkToGamespy=False:" \ + "${D}${dir}"/System/Default.ini || die + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + ewarn "NOTE: To have your server authenticate properly, you" + ewarn " MUST visit the following site and request a key." + ewarn "http://ut2003.epicgames.com/ut2003server/cdkey.php" + echo + ewarn "If you are not installing for the first time and you plan on running" + ewarn "a server, you will probably need to edit your" + ewarn "~/.ut2003/System/UT2003.ini file and add a line that says" + ewarn "AccessControlClass=crashfix.iaccesscontrolini to your" + ewarn "[Engine.GameInfo] section to close a security issue." +} diff --git a/games-server/ut2004-ded-3369.3-r1 b/games-server/ut2004-ded-3369.3-r1 deleted file mode 100644 index f8696a44ba46..000000000000 --- a/games-server/ut2004-ded-3369.3-r1 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=compile configure install postinst preinst prepare setup unpack -DEPEND=app-arch/unzip app-arch/p7zip -DESCRIPTION=Unreal Tournament 2004 Linux Dedicated Server -EAPI=5 -HOMEPAGE=http://www.unrealtournament.com/ -KEYWORDS=~amd64 ~x86 -LICENSE=ut2003 -RDEPEND=sys-libs/glibc !games-fps/ut2004[dedicated] games-fps/ut2004-bonuspack-ece games-fps/ut2004-bonuspack-mega games-misc/games-envd -RESTRICT=mirror strip -SLOT=0 -SRC_URI=mirror://3dgamers/unrealtourn2k4/dedicatedserver3339-bonuspack.zip http://files.chaoticdreams.org/UT2004/DedicatedServer3339-BonusPack.zip -> dedicatedserver3339-bonuspack.zip http://downloads.unrealadmin.org/UT2004/Server/dedicatedserver3339-bonuspack.zip http://sonic-lux.net/data/mirror/ut2004/dedicatedserver3339-bonuspack.zip mirror://3dgamers/unrealtourn2k4/ut2004-lnxpatch3369-2.tar.bz2 http://downloads.unrealadmin.org/UT2004/Patches/Linux/ut2004-lnxpatch3369-2.tar.bz2 http://sonic-lux.net/data/mirror/ut2004/ut2004-lnxpatch3369-2.tar.bz2 mirror://gentoo/ut2004-v3369-3-linux-dedicated.7z -_eclasses_=base 983774947da124fb7d542ce25a218bb1 desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc games 2bb3ede665927a68ffdb7c41eec7efde ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 user 8bc2845510e2109af75e3eeac607ec81 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=f2feb693af1c3af9d31a50c07134d014 diff --git a/games-server/ut2004-ded/Manifest b/games-server/ut2004-ded/Manifest new file mode 100644 index 000000000000..a157bc10833f --- /dev/null +++ b/games-server/ut2004-ded/Manifest @@ -0,0 +1,7 @@ +AUX ut2004-ded.confd 228 BLAKE2B 18e5f0d823b266a4463cc5b83c4982fc662c4bdfb4b8f9f9e6ae22256d0ac2d463d0987db2fdf419dbcc9b3fbda777511adbf6ac7d0ad34a09184a08fc28f6b1 SHA512 f304c134139a29e43f6a297969462d8ca667071be898bf0b5495785eba7b0042e7103b5df2dc2c1fa333f4c16f75efcfdcd8ddc2dc88bf46d93cf8a9739eb300 +AUX ut2004-ded.initd 561 BLAKE2B a30dfd055e00d42df3b5214c7429203fb1188617ac469e1cb9e3fa66c99df3ed3691eff0a1d932b0cf1a44f300623d720e8c87ce47e8999d5607f969c883f7c9 SHA512 0d5be8488cdbb357ab10223c4a5c6a3f302622782c0432d28e0a5ec7c38e886a44ea2931cde82403db807225bf6cf2ebcbb7f3abf62b8ea6bfd8ffb41c316c58 +DIST dedicatedserver3339-bonuspack.zip 914213907 BLAKE2B 883253d9817b4ee7f9594bf611e9d440d7e90c8cd43d34b366cfb4e781d4ad78e2812a0aa4f5acaed4880b1bc47f0dffed6fbb0caf9cc53477c01bc92d891325 SHA512 353161a7c811ac5c688c6438e3ecfad1aa37bcfd13a3e17f2a9deaf510eda9311a423524bd4635fcf972001cfe24c1a1b71a2bb6a060c37a24351f3bce0c7f26 +DIST ut2004-lnxpatch3369-2.tar.bz2 22465217 BLAKE2B 9852f9d55804b7f2927a31be86aee1552aaebeb38d2a40fb206154c236e9d6eff47f7594024c0d9b25c7216d3ca62571b1f89f23f72ee9e135b2e6451bcb006a SHA512 0d6f26d5a811efd64be8c304e928e03f546d9a8eaba6b074843e2b7e76e0670b39df95200a2fe2040d72bbd204c7157ed0115649a5c85396a76d9e0b7ec284b1 +DIST ut2004-v3369-3-linux-dedicated.7z 5013927 BLAKE2B 72d24d7bc37c777f3697b767a03e052ad9b547005dd6da73833e439496e87a9c1ebbe01f88d62b29a41b2bf6380a3b3bd745e6883fbb6d0f2b7e52998d4af276 SHA512 3b2a7b64934a3647c02c9fec48565c5c2c35370d635b2af4059eb76587bfa13f46e6a4e14fdb0494ba7a4182497ed5963601986f4fcfa318e69a8a8a8c0178cf +EBUILD ut2004-ded-3369.3-r1.ebuild 3273 BLAKE2B fc052f2618f8b77af31011463c30cdd2b7e681afd036bac582f7dc1e5bea4508456d8558ac7236eddaffea27a659dd70c142c5527f1716267b6d21ca8886b93a SHA512 840a3b1b7294e5007e04dbed8803cba6f209b43013e7a7fca3637cbc4f3bec8299cff1ad26ef08befbadc2f5e469d8eae07d2b4da8e3788f472969bee04c7c16 +MISC metadata.xml 641 BLAKE2B 6f4b33ffb4810e9161f185859d8a822bf655f70f40220968a1638398072506486a72180065d2f1589446f09d61416b2cc379bdfafd540162bf8b817834002849 SHA512 637588c313e117912d01da6345324d455f7c1c658e413d936b60f1fcceff88d8ecae084e11727479c8cf72438f14412336d9c81d94cccc1ffb54a5ec2d69ebc7 diff --git a/games-server/ut2004-ded/files/ut2004-ded.confd b/games-server/ut2004-ded/files/ut2004-ded.confd new file mode 100644 index 000000000000..a485b12d221e --- /dev/null +++ b/games-server/ut2004-ded/files/ut2004-ded.confd @@ -0,0 +1,9 @@ +# User and group the server should run as +ut2004_ded_user="@USER@" +ut2004_ded_group="@GROUP@" + +# Directory to use for HOME +ut2004_ded_home="@HOME@" + +# Any extra options you want to pass to the server +ut2004_ded_opts="DM-Deck17" diff --git a/games-server/ut2004-ded/files/ut2004-ded.initd b/games-server/ut2004-ded/files/ut2004-ded.initd new file mode 100644 index 000000000000..fe323a9e00ee --- /dev/null +++ b/games-server/ut2004-ded/files/ut2004-ded.initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting ut2004-ded" + start-stop-daemon --start --quiet --background --make-pidfile \ + --pidfile /var/run/ut2004-ded.pid \ + --chuid ${ut2004_ded_user}:${ut2004_ded_group} \ + --env HOME="${ut2004_ded_home}" \ + --exec "@DIR@/ut2004-ded" \ + -- ${ut2004_ded_opts} + eend $? +} + +stop() { + ebegin "Stopping ut2004-ded" + start-stop-daemon --stop \ + --pidfile /var/run/ut2004-ded.pid + eend $? +} diff --git a/games-server/ut2004-ded/metadata.xml b/games-server/ut2004-ded/metadata.xml new file mode 100644 index 000000000000..6c7217507290 --- /dev/null +++ b/games-server/ut2004-ded/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +<longdescription> +Unreal Tounament 2004 is a first-person 3-D shooter and sequel to the 2003 Game of the Year, Unreal Tournament 2003. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This is the dedicated server portion of the game and does not require the retail discs to use. +</longdescription> +</pkgmetadata> diff --git a/games-server/ut2004-ded/ut2004-ded-3369.3-r1.ebuild b/games-server/ut2004-ded/ut2004-ded-3369.3-r1.ebuild new file mode 100644 index 000000000000..218fe1616d96 --- /dev/null +++ b/games-server/ut2004-ded/ut2004-ded-3369.3-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit games + +BONUSPACK_P="dedicatedserver3339-bonuspack.zip" +PATCH_P="ut2004-lnxpatch${PV%.*}-2.tar.bz2" +DESCRIPTION="Unreal Tournament 2004 Linux Dedicated Server" +HOMEPAGE="http://www.unrealtournament.com/" +SRC_URI="mirror://3dgamers/unrealtourn2k4/${BONUSPACK_P} + http://files.chaoticdreams.org/UT2004/DedicatedServer3339-BonusPack.zip -> ${BONUSPACK_P} + http://downloads.unrealadmin.org/UT2004/Server/${BONUSPACK_P} + http://sonic-lux.net/data/mirror/ut2004/${BONUSPACK_P} + mirror://3dgamers/unrealtourn2k4/${PATCH_P} + http://downloads.unrealadmin.org/UT2004/Patches/Linux/${PATCH_P} + http://sonic-lux.net/data/mirror/ut2004/${PATCH_P} + mirror://gentoo/ut2004-v${PV/./-}-linux-dedicated.7z" + +LICENSE="ut2003" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="mirror strip" + +DEPEND="app-arch/unzip + app-arch/p7zip" +RDEPEND="sys-libs/glibc + !games-fps/ut2004[dedicated] + games-fps/ut2004-bonuspack-ece + games-fps/ut2004-bonuspack-mega" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} + +src_prepare() { + cp -rf UT2004-Patch/* . || die + rm -rf System/{ucc-bin*,ut2004-bin*,*.dll,*.exe} UT2004-Patch + if use amd64 ; then + mv -f ut2004-ucc-bin-09192008/ucc-bin-linux-amd64 System/ucc-bin || die + else + mv -f ut2004-ucc-bin-09192008/ucc-bin System/ || die + fi + rm -rf ut2004-ucc-bin-09192008 + # Owned by ut2004-bonuspack-ece + rm -f Animations/{MetalGuardAnim,ONSBPAnimations,NecrisAnim,MechaSkaarjAnims}.ukx + rm -f Help/BonusPackReadme.txt + rm -f Maps/{ONS-Adara,ONS-IslandHop,ONS-Tricky,ONS-Urban}.ut2 + rm -f Sounds/{CicadaSnds,DistantBooms,ONSBPSounds}.uax + rm -f StaticMeshes/{HourAdara,BenMesh02,BenTropicalSM01,ONS-BPJW1,PC_UrbanStatic}.usx + rm -f System/{ONS-IslandHop,ONS-Tricky,ONS-Adara,ONS-Urban,OnslaughtBP}.int + rm -f System/xaplayersl3.upl + rm -f Textures/{ONSBPTextures,BonusParticles,HourAdaraTexor,BenTex02,BenTropical01,PC_UrbanTex,AW-2k4XP,ONSBP_DestroyedVehicles,UT2004ECEPlayerSkins,CicadaTex,Construction_S}.utx + # Owned by ut2004-bonuspack-mega + rm -f System/{Manifest.ini,Manifest.int,Packages.md5} +} + +src_install() { + einfo "This will take a while... go get a pizza or something" + + games_make_wrapper ${PN} "./ucc-bin server" "${dir}"/System + + insinto "${dir}" + doins -r * + fperms +x "${dir}"/System/ucc-bin + + sed \ + -e "s:@USER@:${GAMES_USER_DED}:" \ + -e "s:@GROUP@:${GAMES_GROUP}:" \ + -e "s:@HOME@:${GAMES_PREFIX}:" \ + "${FILESDIR}"/${PN}.confd > "${T}"/${PN}.confd || die + newconfd "${T}"/${PN}.confd ${PN} + + sed \ + -e "s:@DIR@:${GAMES_BINDIR}:g" \ + "${FILESDIR}"/${PN}.initd > "${T}"/${PN}.initd || die + newinitd "${T}"/${PN}.initd ${PN} + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + ewarn "You should take the time to edit the default server INI." + ewarn "Consult the INI Reference at http://www.unrealadmin.org/" + ewarn "for assistance in adjusting the following file:" + ewarn "${dir}/System/Default.ini" + ewarn + ewarn "To have your server authenticate properly to the" + ewarn "central server, you MUST visit the following site" + ewarn "and request a key. This is not required if you" + ewarn "want an unfindable private server. [DoUplink=False]" + ewarn + ewarn "http://unreal.epicgames.com/ut2004server/cdkey.php" +} |