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:
parent
951eacbee7
commit
4e7b0d1436
|
@ -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() {
|
||||
|
|
|
@ -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…
Reference in a new issue