Skip to content

Commit

Permalink
media-video/motion: fix reference to wrong init script, thanks to Sve…
Browse files Browse the repository at this point in the history
…n Schwyn <[email protected]> for the headsup.

Package-Manager: portage-2.3.0
  • Loading branch information
wschlich committed Jan 20, 2017
1 parent 04a49fb commit d4a61c2
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ DEPEND="${RDEPEND}

DISABLE_AUTOFORMATTING="yes"
DOC_CONTENTS="You need to setup /etc/${PN}/${PN}.conf before running
${PN} for the first time.
${PN} for the first time. You can use /etc/${PN}/${PN}-dist.conf as a
template. Please note that the 'daemon' and 'process_id_file' settings
are overridden by the bundled OpenRC init script and systemd unit where
appropriate.
To install ${PN} as a service, use:
rc-update add ${PN} default # with OpenRC
systemctl enable ${PN}.service # with systemd
Expand Down Expand Up @@ -64,7 +68,7 @@ src_install() {
examplesdir=/usr/share/doc/${PF}/examples \
install

newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}
newinitd "${FILESDIR}"/${PN}.initd-r3 ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}

systemd_dounit "${FILESDIR}"/${PN}.service
Expand All @@ -75,7 +79,5 @@ src_install() {
fowners motion:video /var/lib/motion
fperms 0750 /var/lib/motion

mv -vf "${D}"/etc/${PN}/${PN}{-dist,}.conf || die

readme.gentoo_create_doc
}

0 comments on commit d4a61c2

Please sign in to comment.