dev-python/flower: install script in /usr/libexec/flower for bug 578444

Package-Manager: portage-2.2.28
This commit is contained in:
Zac Medico
2016-03-29 11:56:26 -07:00
parent 4a7aa2d947
commit 17c6bd2cb7
3 changed files with 6 additions and 2 deletions

View 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 \

View 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

View 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
}