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:
parent
401723a93b
commit
31afbfc62c
10 changed files with 13 additions and 9 deletions
2
debian/pagure-ev-server.init
vendored
2
debian/pagure-ev-server.init
vendored
|
@ -18,7 +18,7 @@ fi
|
||||||
# Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
|
# Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
|
||||||
|
|
||||||
DESC="pagure"
|
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"
|
PIDFILE="/var/run/pagure/pagure-ev-server.pid"
|
||||||
U="git"
|
U="git"
|
||||||
|
|
||||||
|
|
2
debian/pagure-ev-server.install
vendored
2
debian/pagure-ev-server.install
vendored
|
@ -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/
|
||||||
|
|
2
debian/pagure-ev-server.service
vendored
2
debian/pagure-ev-server.service
vendored
|
@ -4,7 +4,7 @@ After=redis.target
|
||||||
Documentation=https://pagure.io/pagure
|
Documentation=https://pagure.io/pagure
|
||||||
|
|
||||||
[Service]
|
[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
|
Type=simple
|
||||||
User=git
|
User=git
|
||||||
Group=git
|
Group=git
|
||||||
|
|
2
debian/pagure-milters.init
vendored
2
debian/pagure-milters.init
vendored
|
@ -18,7 +18,7 @@ fi
|
||||||
# Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
|
# Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
|
||||||
|
|
||||||
DESC="pagure"
|
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"
|
PIDFILE="/var/run/pagure/pagure-milters.pid"
|
||||||
|
|
||||||
test -x "${DAEMON}" || exit 0
|
test -x "${DAEMON}" || exit 0
|
||||||
|
|
2
debian/pagure-milters.install
vendored
2
debian/pagure-milters.install
vendored
|
@ -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/
|
||||||
|
|
2
debian/pagure-milters.service
vendored
2
debian/pagure-milters.service
vendored
|
@ -4,7 +4,7 @@ After=postfix.target
|
||||||
Documentation=https://pagure.io/pagure
|
Documentation=https://pagure.io/pagure
|
||||||
|
|
||||||
[Service]
|
[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
|
Type=simple
|
||||||
User=postfix
|
User=postfix
|
||||||
Group=postfix
|
Group=postfix
|
||||||
|
|
2
debian/pagure-webhook-server.init
vendored
2
debian/pagure-webhook-server.init
vendored
|
@ -18,7 +18,7 @@ fi
|
||||||
# Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
|
# Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
|
||||||
|
|
||||||
DESC="pagure"
|
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"
|
PIDFILE="/var/run/pagure/pagure-webhook-server.pid"
|
||||||
U="git"
|
U="git"
|
||||||
|
|
||||||
|
|
2
debian/pagure-webhook-server.install
vendored
2
debian/pagure-webhook-server.install
vendored
|
@ -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/
|
||||||
|
|
2
debian/pagure-webhook-server.service
vendored
2
debian/pagure-webhook-server.service
vendored
|
@ -4,7 +4,7 @@ After=redis.target
|
||||||
Documentation=https://pagure.io/pagure
|
Documentation=https://pagure.io/pagure
|
||||||
|
|
||||||
[Service]
|
[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
|
Type=simple
|
||||||
User=git
|
User=git
|
||||||
Group=git
|
Group=git
|
||||||
|
|
4
debian/rules
vendored
4
debian/rules
vendored
|
@ -9,3 +9,7 @@ override_dh_auto_build:
|
||||||
dh_auto_build
|
dh_auto_build
|
||||||
PYTHONPATH=$(CURDIR) http_proxy='127.0.0.1:9' \
|
PYTHONPATH=$(CURDIR) http_proxy='127.0.0.1:9' \
|
||||||
make -C doc/ html man
|
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
|
||||||
|
|
Loading…
Reference in a new issue