games-server/factorio-server: add 2.0.20
This commit is contained in:
parent
bd3512310d
commit
321383bc3d
|
@ -1,2 +1,2 @@
|
||||||
DIST factorio-server-1.1.104.tar.xz 59010576 BLAKE2B bc1de3483e28e005adc787304d6eeb955a3e978ee2e0028fa47d7e5a90b188539e02c1c97650ea396f08088a413907340aa275a92596e68b5c5d1aad5e105545 SHA512 664b5f2ff08b96f18febcd9743859e2910283d8a53c303c07c8fede6afe187e4b113fccde01b537ae0a1d91076f051be22be7fb57884cb7dfa397964ae8fe9f5
|
DIST factorio-server-1.1.104.tar.xz 59010576 BLAKE2B bc1de3483e28e005adc787304d6eeb955a3e978ee2e0028fa47d7e5a90b188539e02c1c97650ea396f08088a413907340aa275a92596e68b5c5d1aad5e105545 SHA512 664b5f2ff08b96f18febcd9743859e2910283d8a53c303c07c8fede6afe187e4b113fccde01b537ae0a1d91076f051be22be7fb57884cb7dfa397964ae8fe9f5
|
||||||
DIST factorio-server-2.0.14.tar.xz 83403180 BLAKE2B 172ff21a2a7e293573aba8f5f4f6522ccc6f5a415925bf14f88765b12eb7a4c611e87c76f8b8751ef0e84e5b1880d30e794208c082f9466eec6cbdb992ca66a1 SHA512 5dca93952a630a782b8de200389d41b12b0d1cca9b3bb7470b777180ca3b7e5b4d4897aff05749cd0bacb28ff32003b901e8a90d37720ab4181c86dc1b3aa81c
|
DIST factorio-server-2.0.20.tar.xz 83643572 BLAKE2B 77112a633bc01e881970ccfd87fc3bcaef00faad5ecc1ea8fba08795465afa0c49d13ec3ea8d6d93f21cf51e67619c892dbedf5125948aa82f64ab4d8ea3da14 SHA512 392df9167f66e276e25a2eff949cf2923d04640dc6a2029cc5cd1cd317aae71b03e4cad41c09e5b4d8eb6781262571d5c780d14b5d2687b54e56ede8a17ef25b
|
||||||
|
|
42
games-server/factorio-server/factorio-server-2.0.20.ebuild
Normal file
42
games-server/factorio-server/factorio-server-2.0.20.ebuild
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Copyright 1999-2022 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-${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."
|
||||||
|
}
|
Loading…
Reference in a new issue