Drop custom wrapper script
authorMichał Kępień <github@kempniu.pl>
Fri, 18 Nov 2016 20:02:05 +0000 (21:02 +0100)
committerJustin Bronder <jsbronder@gentoo.org>
Sat, 19 Nov 2016 16:33:12 +0000 (11:33 -0500)
net-nntp/sabnzbd/files/sabnzbd [deleted file]
net-nntp/sabnzbd/files/sabnzbd.initd
net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild

diff --git a/net-nntp/sabnzbd/files/sabnzbd b/net-nntp/sabnzbd/files/sabnzbd
deleted file mode 100644 (file)
index ccc1a67..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-pyexe=python2.7
-
-if [ ! -x /usr/bin/${pyexe} ]; then
-    pyexe=python2.6
-fi
-
-if [ ! -x /usr/bin/${pyexe} ]; then
-    echo "No suitable python executable found in /usr/sbin (python2.6 || python2.7)"
-    exit 1
-fi
-
-cd /usr/share/sabnzbd && /usr/bin/${pyexe} SABnzbd.py $*
index ad11573f5498bb74fc01c1ee0cc8d142ac3bf4f4..a2a8407a48c492d21bcfdb25465d78e80c1eec0d 100755 (executable)
@@ -24,7 +24,7 @@ start() {
                --group ${SABNZBD_GROUP} \
                --pidfile "${PIDFILE}" \
                --wait 1000 \
-               --exec /usr/bin/sabnzbd \
+               --exec /usr/share/sabnzbd/SABnzbd.py \
                -- \
                --config-file "${SABNZBD_CONFIGFILE}" \
                --logging "${SABNZBD_LOGGING}" \
index 120ac64ced802cf67feb6e316ea3aba34949a62d..d013e87a47980392560871311e86a262b15fb2d8 100644 (file)
@@ -79,17 +79,15 @@ src_prepare() {
 src_install() {
        local d
 
-       dodir /usr/share/${PN}/sabnzbd
-       insinto /usr/share/${PN}/
-       doins SABnzbd.py
-       fperms +x /usr/share/${PN}/SABnzbd.py
-       dobin "${FILESDIR}"/sabnzbd
-
        for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
                insinto /usr/share/${PN}/${d}
                doins -r ${d}/*
        done
 
+       insinto /usr/share/${PN}
+       insopts -m 0755
+       doins SABnzbd.py
+
        python_optimize "${D}usr/share/${PN}"
 
        newinitd "${FILESDIR}/${PN}.initd" "${PN}"