games-server/factorio-server: Slotting
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
0344cd5dd0
commit
2db681366c
|
@ -1 +1,2 @@
|
||||||
DIST factorio-server-0.17.79.tar.xz 32864892 BLAKE2B c583e6c53b08977bf3ddfced5908babd02020ad932ca83fceaab2ef86a15ac62e2755dd9576bdf57dcb79ecc0291ef45772bc824222654c6f73cdcb090e5b928 SHA512 a1201a20914c0c90a91c9a329a4edb15f5904fc4f5b70687204381c9fc5ab157b4dd2a11928ac705de1afd44150f600d8087d6a52e16f9b236a51769d97a9bb6
|
DIST factorio-server-0.17.79.tar.xz 32864892 BLAKE2B c583e6c53b08977bf3ddfced5908babd02020ad932ca83fceaab2ef86a15ac62e2755dd9576bdf57dcb79ecc0291ef45772bc824222654c6f73cdcb090e5b928 SHA512 a1201a20914c0c90a91c9a329a4edb15f5904fc4f5b70687204381c9fc5ab157b4dd2a11928ac705de1afd44150f600d8087d6a52e16f9b236a51769d97a9bb6
|
||||||
|
DIST factorio-server-0.18.28.tar.xz 44226624 BLAKE2B e9f15683395773cb8a35ce3833aa53ae307bd2a85c5a86226181f36ebef07e8fd3f8b44c66c0d158a843193dcd81d3096788d57999f1bca7b1b825f53fe51d67 SHA512 2447db9631ebc2522b015431765831fdb77ef827cd4127e5fe2c8e52a198ddc681be4702e6b0aa20460660ee5a118dd5ab5cc5d9f9f3a4da918d77c76e024bb5
|
||||||
|
|
|
@ -7,7 +7,7 @@ DESCRIPTION="Factorio is a game in which you build and maintain factories"
|
||||||
HOMEPAGE="https://www.factorio.com/"
|
HOMEPAGE="https://www.factorio.com/"
|
||||||
SRC_URI="https://www.factorio.com/get-download/${PV}/headless/linux64 -> ${P}.tar.xz"
|
SRC_URI="https://www.factorio.com/get-download/${PV}/headless/linux64 -> ${P}.tar.xz"
|
||||||
LICENSE="Factorio"
|
LICENSE="Factorio"
|
||||||
SLOT="0"
|
SLOT="${PV%.*}"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
|
|
39
games-server/factorio-server/factorio-server-0.18.28.ebuild
Normal file
39
games-server/factorio-server/factorio-server-0.18.28.ebuild
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
# 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%.*}"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
acct-group/factorio
|
||||||
|
acct-user/factorio
|
||||||
|
"
|
||||||
|
|
||||||
|
RESTRICT="bindist mirror"
|
||||||
|
|
||||||
|
S="${WORKDIR}/factorio"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /opt/factorio
|
||||||
|
doins -r *
|
||||||
|
exeinto /opt/factorio/bin/x64
|
||||||
|
doexe bin/x64/factorio
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}"/factorio.initd factorio
|
||||||
|
newconfd "${FILESDIR}"/factorio.confd factorio
|
||||||
|
}
|
||||||
|
|
||||||
|
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."
|
||||||
|
}
|
Loading…
Reference in a new issue