[pinto] 01/02: Added systemd support.
Oleg Gashev
oleg at gashev.net
Thu Sep 26 16:00:42 UTC 2013
This is an automated email from the git hooks/post-receive script.
gashev-guest pushed a commit to branch master
in repository pinto.
commit 61178c11ad1b3fcb405e67b561288f8780fa87ad
Author: Oleg Gashev <oleg at gashev.net>
Date: Thu Sep 26 15:59:05 2013 +0000
Added systemd support.
---
debian/control | 1 +
debian/pinto.service | 14 ++++++++++++++
debian/rules | 2 +-
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 0614a78..e86df6e 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: optional
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Oleg Gashev <oleg at gashev.net>
Build-Depends: debhelper (>= 8),
+ dh-systemd,
libmodule-build-perl (>= 0.400500) | perl (>= 5.19.1)
Build-Depends-Indep: cpanminus (>= 1.6916),
libapache-htpasswd-perl,
diff --git a/debian/pinto.service b/debian/pinto.service
new file mode 100644
index 0000000..3c63a03
--- /dev/null
+++ b/debian/pinto.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Web interface to a Pinto repository
+After=network.target remote-fs.target syslog.target
+Documentation=man:pintod(1p)
+Documentation=https://metacpan.org/release/Pinto
+
+[Service]
+ExecStart=/usr/bin/pintod --root=/var/lib/pinto/repository/default/ --auth backend=Passwd --auth path=/etc/pinto/htpasswd.users --access-log=/var/log/pinto/access.log --error-log=/var/log/pinto/error.log
+User=pinto
+Group=pinto
+PrivateTmp=yes
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/rules b/debian/rules
index 47368db..8d2bab8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
%:
- dh $@
+ dh $@ --with=systemd
override_dh_auto_test:
http_proxy= dh_auto_test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pinto.git
More information about the Pkg-perl-cvs-commits
mailing list