Browse Source

games-server/factorio-server: We can’t modify a file in FILESDIR

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
net-dialup/freeradius-client
Alarig Le Lay 3 years ago
parent
commit
4e7b0d1436
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
  1. 6
      games-server/factorio-server/factorio-server-0.17.79.ebuild
  2. 6
      games-server/factorio-server/factorio-server-0.18.28.ebuild

6
games-server/factorio-server/factorio-server-0.17.79.ebuild

@ -20,9 +20,6 @@ RESTRICT="bindist mirror"
S="${WORKDIR}/factorio"
src_install() {
sed -i "s/%SLOT/${SLOT}/" "${FILESDIR}"/factorio.confd || \
die "SLOTing sed failed"
insinto "/opt/factorio-${SLOT}"
doins -r *
exeinto "/opt/factorio-${SLOT}"/bin/x64
@ -30,6 +27,9 @@ src_install() {
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() {

6
games-server/factorio-server/factorio-server-0.18.28.ebuild

@ -19,9 +19,6 @@ RESTRICT="bindist mirror"
S="${WORKDIR}/factorio"
src_install() {
sed -i "s/%SLOT/${SLOT}/" "${FILESDIR}"/factorio.confd || \
die "SLOTing sed failed"
insinto "/opt/factorio-${SLOT}"
doins -r *
exeinto "/opt/factorio-${SLOT}"/bin/x64
@ -29,6 +26,9 @@ src_install() {
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() {

Loading…
Cancel
Save