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>
This commit is contained in:
Alarig Le Lay 2020-05-31 17:34:45 +02:00
parent 951eacbee7
commit 4e7b0d1436
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
2 changed files with 6 additions and 6 deletions

View file

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

View file

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