Install scripts under /usr/share/<pkg>/bin instead of /usr/lib/pagure/<pkg>

Also, set executable bit on milters script.
This commit is contained in:
Sergio Durigan Junior 2016-08-08 20:11:40 -04:00
parent 401723a93b
commit 31afbfc62c
10 changed files with 13 additions and 9 deletions

View file

@ -18,7 +18,7 @@ fi
# Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
DESC="pagure"
DAEMON="/usr/lib/pagure/pagure-ev-server/pagure-stream-server.py"
DAEMON="/usr/share/pagure-ev-server/bin/pagure-stream-server.py"
PIDFILE="/var/run/pagure/pagure-ev-server.pid"
U="git"

View file

@ -1 +1 @@
ev-server/pagure-stream-server.py debian/tmp/usr/lib/pagure/pagure-ev-server/
ev-server/pagure-stream-server.py debian/tmp/usr/share/pagure-ev-server/bin/

View file

@ -4,7 +4,7 @@ After=redis.target
Documentation=https://pagure.io/pagure
[Service]
ExecStart=/usr/lib/pagure/pagure-ev-server/pagure-stream-server.py
ExecStart=/usr/share/pagure-ev-server/bin/pagure-stream-server.py
Type=simple
User=git
Group=git

View file

@ -18,7 +18,7 @@ fi
# Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
DESC="pagure"
DAEMON="/usr/bin/python2 /usr/share/pagure/pagure-milters/comment_email_milter.py"
DAEMON="/usr/bin/python2 /usr/share/pagure-milters/bin/comment_email_milter.py"
PIDFILE="/var/run/pagure/pagure-milters.pid"
test -x "${DAEMON}" || exit 0

View file

@ -1 +1 @@
milters/comment_email_milter.py debian/tmp/usr/share/pagure/pagure-milters/
milters/comment_email_milter.py debian/tmp/usr/share/pagure-milters/bin/

View file

@ -4,7 +4,7 @@ After=postfix.target
Documentation=https://pagure.io/pagure
[Service]
ExecStart=/usr/bin/python2 /usr/share/pagure/pagure-milters/comment_email_milter.py
ExecStart=/usr/bin/python2 /usr/share/pagure-milters/bin/comment_email_milter.py
Type=simple
User=postfix
Group=postfix

View file

@ -18,7 +18,7 @@ fi
# Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
DESC="pagure"
DAEMON="/usr/lib/pagure/pagure-webhook-server/pagure-webhook-server.py"
DAEMON="/usr/share/pagure-webhook-server/bin/pagure-webhook-server.py"
PIDFILE="/var/run/pagure/pagure-webhook-server.pid"
U="git"

View file

@ -1 +1 @@
webhook-server/pagure-webhook-server.py debian/tmp/usr/lib/pagure/pagure-webhook-server/
webhook-server/pagure-webhook-server.py debian/tmp/usr/share/pagure-webhook-server/bin/

View file

@ -4,7 +4,7 @@ After=redis.target
Documentation=https://pagure.io/pagure
[Service]
ExecStart=/usr/lib/pagure/pagure-webhook-server/pagure-webhook-server.py
ExecStart=/usr/share/pagure-webhook-server/bin/pagure-webhook-server.py
Type=simple
User=git
Group=git

4
debian/rules vendored
View file

@ -9,3 +9,7 @@ override_dh_auto_build:
dh_auto_build
PYTHONPATH=$(CURDIR) http_proxy='127.0.0.1:9' \
make -C doc/ html man
override_dh_auto_install:
dh_auto_install
$(CHMOD) 0755 debian/tmp/usr/share/pagure-milters/bin/comment_email_milter.py