From 4e7b0d1436d9ade814e9f06d09291b0632973845 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Sun, 31 May 2020 17:34:45 +0200 Subject: [PATCH] =?UTF-8?q?games-server/factorio-server:=20We=20can?= =?UTF-8?q?=E2=80=99t=20modify=20a=20file=20in=20FILESDIR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alarig Le Lay --- games-server/factorio-server/factorio-server-0.17.79.ebuild | 6 +++--- games-server/factorio-server/factorio-server-0.18.28.ebuild | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/games-server/factorio-server/factorio-server-0.17.79.ebuild b/games-server/factorio-server/factorio-server-0.17.79.ebuild index 6c4d4f9..c0c27a9 100644 --- a/games-server/factorio-server/factorio-server-0.17.79.ebuild +++ b/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() { diff --git a/games-server/factorio-server/factorio-server-0.18.28.ebuild b/games-server/factorio-server/factorio-server-0.18.28.ebuild index 4900fa7..df197b3 100644 --- a/games-server/factorio-server/factorio-server-0.18.28.ebuild +++ b/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() {