Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mediatomb: simplify systemd unit installation

also use ${SYSTEMDSYSTEMUNITDIR} from systemd-service.exlib
  • Loading branch information...
commit 7dd6213c49f26a8ee976e0587d58def88519aa18 1 parent 5fd403d
@moben moben authored Philantrop committed
Showing with 3 additions and 7 deletions.
  1. +3 −7 packages/net-misc/mediatomb/mediatomb-0.12.1.exheres-0
View
10 packages/net-misc/mediatomb/mediatomb-0.12.1.exheres-0
@@ -140,14 +140,10 @@ src_install() {
fi
if option systemd ; then
- insinto /${LIBDIR}/systemd/system
+ install_systemd_files
if option mysql ; then
- edo cp "${FILES}"/systemd/mediatomb.service "${TEMP}"
- edo sed -i '/Requires=network.target/a\Requires=mysql.service' "${TEMP}"/mediatomb.service
- edo sed -i '/After=network.target/a\After=mysql.service' "${TEMP}"/mediatomb.service
- doins "${TEMP}"/mediatomb.service
- else
- doins "${FILES}"/systemd/mediatomb.service
+ edo sed -i '/Requires=network.target/a\Requires=mysql.service' "${IMAGE}"${SYSTEMDSYSTEMUNITDIR}/mediatomb.service
+ edo sed -i '/After=network.target/a\After=mysql.service' "${IMAGE}"${SYSTEMDSYSTEMUNITDIR}/mediatomb.service
fi
fi
}

0 comments on commit 7dd6213

Please sign in to comment.
Something went wrong with that request. Please try again.