[Pkg-virtualbox-commits] [virtualbox] 01/02: Revert "Revert "Add service file from Sérgio Basto""
Gianfranco Costamagna
locutusofborg-guest at moszumanska.debian.org
Fri Nov 27 16:15:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
locutusofborg-guest pushed a commit to branch master
in repository virtualbox.
commit 127b9819e2364adce3d546efee5b44d816c269a4
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Fri Nov 27 16:16:37 2015 +0100
Revert "Revert "Add service file from Sérgio Basto""
This reverts commit e369d886fcdf127a3168f9c6ea6918238995ab03.
---
debian/changelog | 6 ++++++
debian/control | 1 +
debian/rules | 6 +++++-
debian/vboxweb.service | 12 ++++++++++++
debian/virtualbox.dirs | 1 +
5 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index cb5ac60..23438dd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+virtualbox (5.0.10-dfsg-4) unstable; urgency=low
+
+ * Add vboxweb.service from Sérgio Basto
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org> Tue, 24 Nov 2015 11:39:57 +0100
+
virtualbox (5.0.10-dfsg-3) unstable; urgency=medium
[ Mattia Rizzolo ]
diff --git a/debian/control b/debian/control
index 6c31814..fa0b56c 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Build-Depends: bzip2,
debhelper (>= 9),
default-jdk,
dh-python,
+ dh-systemd (>=1.5),
dkms (>= 2.1.1.1),
docbook-xml,
docbook-xsl,
diff --git a/debian/rules b/debian/rules
index d36a8dd..59a6319 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,7 +31,7 @@ export DEB_BUILD_HARDENING_FORMAT=0
export DEB_BUILD_HARDENING_BINDNOW=0
%:
- dh $@ --with python2,dkms
+ dh $@ --with python2,dkms,systemd
override_dh_auto_configure:
@echo Building for $(DIST_RELEASE)
@@ -167,6 +167,10 @@ override_dh_installinit:
dh_installinit -p$(uxname) --no-start --update-rcd-params="start 45 S ."
dh_installinit --remaining-packages --no-start
+override_dh_systemd_enable:
+ install -m 644 debian/vboxweb.service debian/$(sname)/lib/systemd/system/
+ dh_systemd_enable -p$(sname) --name vboxweb debian/vboxweb.service
+
override_dh_dkms:
dh_dkms -V $(upstreamversion)
diff --git a/debian/vboxweb.service b/debian/vboxweb.service
new file mode 100644
index 0000000..a444f17
--- /dev/null
+++ b/debian/vboxweb.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=VirtualBox Web Service
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/vboxwebsrv --pidfile /run/vboxweb.pid --background
+ExecStopPost=/usr/bin/rm /run/vboxweb.pid
+PIDFile=/run/vboxweb.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/virtualbox.dirs b/debian/virtualbox.dirs
new file mode 100644
index 0000000..c86b820
--- /dev/null
+++ b/debian/virtualbox.dirs
@@ -0,0 +1 @@
+lib/systemd/system/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-virtualbox/virtualbox.git
More information about the Pkg-virtualbox-commits
mailing list