From 4bef7f5eb12b728f021913b82371cf2e8fad3d6f Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Fri, 26 Jun 2020 18:52:15 +0200 Subject: [PATCH] games-server/factorio-server: Version bump to 0.18.34 Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Alarig Le Lay --- games-server/factorio-server/Manifest | 1 + .../factorio-server-0.18.34.ebuild | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 games-server/factorio-server/factorio-server-0.18.34.ebuild diff --git a/games-server/factorio-server/Manifest b/games-server/factorio-server/Manifest index c78ddb3..34bd258 100644 --- a/games-server/factorio-server/Manifest +++ b/games-server/factorio-server/Manifest @@ -3,3 +3,4 @@ DIST factorio-server-0.18.30.tar.xz 44201904 BLAKE2B 61924932928a9a8c30385ea3785 DIST factorio-server-0.18.31.tar.xz 44333756 BLAKE2B 65301b67b1d9057da3d94bc73735863dbf61fa2e163a32f38f0c387910883f06bcc1e7bc83e174c7a35f9e806e53fd3e6ba65e5de8282d9b50901e9747e487dd SHA512 8590ab0ec7f4c8097cb357378cf7986e1d18b5feaf468b4eb7e573621042807fe4bfd8ef81494222fdf8e709b38ae528d791693679890c333b580a3862df02f4 DIST factorio-server-0.18.32.tar.xz 44365748 BLAKE2B 92964d6506560e94f321ca19f8eacf12d581cffa7f3e94bea9f8c4778e587dcd6c016b7b148e89cba8d7c86b8adb72bcc4b8efc320324924339bd53002bdb404 SHA512 d006f385a4fb40a7ed32efd6f0172712176d6303315bd613d6ae7379cc240a029ad5867e1e1ecd24f959b88fc443b201f33c8f3985abca7dae57bd498564c7f7 DIST factorio-server-0.18.33.tar.xz 43933144 BLAKE2B 154169cdc52cf80c1fd6b38f2ecce3cf89b56b7d86f9b196d1fc76f13d643f6a649d6856f9f26e057a2eb61f726374edef342cd951a1eda25f54fed322d07bf5 SHA512 d24f53d0bb6ee6b0004cd6907ef75dea0df1209fae2f20a12aeb8c4c2a31c52f3b1973c8f7e4695cfb6926adf87ed679939c7d4b0c71083c8ecdca4203eee7a6 +DIST factorio-server-0.18.34.tar.xz 44000944 BLAKE2B 66bfbc2243b5ce95d4cd011d4995de053183f4788f9fd0f2bace080665282b0af390b09d2230be81a4881f7001f22d8bca4e497de6b8a7aca5f449213ca103dc SHA512 3fcf1edf071414c534296c2d0219ec182f8ae632f0628cef82db53c83df3b3a8750572d7eb71afe1e72725326607c3b949eec49695ee9f9a86d9b63c60f14bc1 diff --git a/games-server/factorio-server/factorio-server-0.18.34.ebuild b/games-server/factorio-server/factorio-server-0.18.34.ebuild new file mode 100644 index 0000000..df197b3 --- /dev/null +++ b/games-server/factorio-server/factorio-server-0.18.34.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Factorio is a game in which you build and maintain factories" +HOMEPAGE="https://www.factorio.com/" +SRC_URI="https://www.factorio.com/get-download/${PV}/headless/linux64 -> ${P}.tar.xz" +LICENSE="Factorio" +SLOT="${PV%.*}" + +DEPEND=" + acct-group/factorio + acct-user/factorio +" + +RESTRICT="bindist mirror" + +S="${WORKDIR}/factorio" + +src_install() { + insinto "/opt/factorio-${SLOT}" + doins -r * + exeinto "/opt/factorio-${SLOT}"/bin/x64 + doexe bin/x64/factorio + + newinitd "${FILESDIR}"/factorio.initd "factorio-${SLOT}" + newconfd "${FILESDIR}"/factorio.confd "factorio-${SLOT}" + + sed -i "s/%SLOT%/${SLOT}/" "${D}/etc/conf.d/factorio-${SLOT}" || \ + die "SLOTing sed failed" +} + +pkg_postinst() { + einfo "As factorio user, copy data/server-settings.example.json to" + einfo "config/server-settings.json and data/server-whitelist.example.json" + einfo "to config/server-whitelist.json and adapt it according to your needs." + einfo "" + einfo "Then, run bin/x64/factorio --create ./saves/my-save.zip to create a" + einfo "new map, and start the service." +}