dev-python/flower: install script in /usr/libexec/flower for bug 578444
authorZac Medico <zmedico@gentoo.org>
Tue, 29 Mar 2016 18:56:26 +0000 (11:56 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 29 Mar 2016 18:57:05 +0000 (11:57 -0700)
Package-Manager: portage-2.2.28

dev-python/flower/files/flower.initd
dev-python/flower/files/flower.service
dev-python/flower/flower-0.8.4.ebuild

index bd2008fc2f9eb814c568550758c2cdeb8a4f1e8e..8464cd2e511ec1358889e205798b45720270bd37 100644 (file)
@@ -8,7 +8,7 @@ pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
 user=${SVCNAME}
 group=${SVCNAME}
 
-command="/usr/bin/${SVCNAME}"
+command="/usr/libexec/${SVCNAME}/${SVCNAME}"
 command_background="true"
 start_stop_daemon_args="--user ${user} --group ${group} \
        --stdout /var/log/${SVCNAME}/${SVCNAME}.log \
index 5220d89fcff84dfe01136f7f916c8638b9631e2c..dd2f1d9da105362dcc7e352ae6242166ad1b5ad2 100644 (file)
@@ -7,7 +7,7 @@ After=network-online.target
 User=flower
 PrivateDevices=Yes
 Environment=_FLOWER_OPTS="--conf=/etc/flower/config.py"
-ExecStart=/usr/bin/flower $_FLOWER_OPTS
+ExecStart=/usr/libexec/flower/flower $_FLOWER_OPTS
 
 [Install]
 WantedBy=multi-user.target
index bbbeb2ac7a571991550a9caa1ff857b988948722..2feb9ea58f0086e0e0861ba75a4068c4473dabf2 100644 (file)
@@ -46,6 +46,10 @@ src_install() {
        fowners ${PN}:${PN} /var/log/${PN}
 }
 
+python_install() {
+       distutils-r1_python_install --install-scripts "${EPREFIX}/usr/libexec/flower"
+}
+
 python_test() {
        esetup.py test || die
 }