media-video/motion: fix reference to wrong init script, thanks to Sven Schwyn <svoop...
authorWolfram Schlich <wschlich@gentoo.org>
Fri, 20 Jan 2017 08:34:27 +0000 (09:34 +0100)
committerWolfram Schlich <wschlich@gentoo.org>
Fri, 20 Jan 2017 08:34:53 +0000 (09:34 +0100)
Package-Manager: portage-2.3.0

media-video/motion/motion-4.0.1-r1.ebuild [moved from media-video/motion/motion-4.0.1.ebuild with 86% similarity]

similarity index 86%
rename from media-video/motion/motion-4.0.1.ebuild
rename to media-video/motion/motion-4.0.1-r1.ebuild
index e82099351ae57b0b293aa7985a85833601eee72a..b866f050d0ababf484eb65ae5ba33f57be17be23 100644 (file)
@@ -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
@@ -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
@@ -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
 }