From fb28615105b32c2bbc56766ba6a0f79cb4a0dcd2 Mon Sep 17 00:00:00 2001 From: Steve Arnold Date: Fri, 2 Feb 2018 10:59:39 -0800 Subject: media-video/mjpg-streamer: move sed invocation to src_install Signed-off-by: Steve Arnold --- media-video/mjpg-streamer/mjpg-streamer-9999.ebuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/media-video/mjpg-streamer/mjpg-streamer-9999.ebuild b/media-video/mjpg-streamer/mjpg-streamer-9999.ebuild index 0270582..bddf995 100644 --- a/media-video/mjpg-streamer/mjpg-streamer-9999.ebuild +++ b/media-video/mjpg-streamer/mjpg-streamer-9999.ebuild @@ -46,9 +46,6 @@ S="${WORKDIR}/${P}/mjpg-streamer-experimental" src_configure() { append-cxxflags -std=gnu++11 cmake-utils_src_configure - - sed -i -e 's|usr/lib|usr/$(get_libdir)|' \ - "${FILESDIR}"/mjpg-streamer.initd || die } src_install() { @@ -56,6 +53,8 @@ src_install() { newinitd "${FILESDIR}"/${PN}.initd ${PN} newconfd "${FILESDIR}"/${PN}.confd ${PN} + + sed -i -e 's|usr/lib|usr/$(get_libdir)|g' /etc/init.d/${PN} } pkg_postinst() { -- cgit v1.2.3-65-gdbad