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() {