Package: couchdb
Version: 1.4.0-3
Severity: normal
Tags: patch
User: pkg-systemd-maintain...@lists.alioth.debian.org
Usertags: systemd-units

please accept this patch for systemd support

--- System information. ---
Architecture: amd64
Kernel:       Linux 3.11-trunk-amd64

Debian Release: jessie/sid
  500 unstable        ftp.by.debian.org 
    1 experimental    ftp.by.debian.org 

--- Package information. ---
Depends                             (Version) | Installed
=============================================-+-
======================
adduser                                       | 3.113+nmu3
erlang-base               (>= 1:16.b.1-dfsg)  | 1:16.b.1-dfsg-5
 OR erlang-base-hipe       (>= 1:16.b.1-dfsg) | 
libjs-jquery                       (>= 1.4.2) | 1.7.2+dfsg-3
libjs-jquery-form                   (>= 2.36) | 8-2
libjs-underscore                   (>= 0.5.5) | 1.4.4-2
lsb-base                                      | 4.1+Debian12
procps                                        | 1:3.3.8-2
erlang-crypto              (>= 1:16.b.1-dfsg) | 1:16.b.1-dfsg-5
erlang-eunit               (>= 1:16.b.1-dfsg) | 1:16.b.1-dfsg-5
erlang-inets               (>= 1:16.b.1-dfsg) | 1:16.b.1-dfsg-5
erlang-os-mon              (>= 1:16.b.1-dfsg) | 1:16.b.1-dfsg-5
erlang-public-key          (>= 1:16.b.1-dfsg) | 1:16.b.1-dfsg-5
erlang-ssl                 (>= 1:16.b.1-dfsg) | 1:16.b.1-dfsg-5
erlang-syntax-tools        (>= 1:16.b.1-dfsg) | 1:16.b.1-dfsg-5
erlang-tools               (>= 1:16.b.1-dfsg) | 1:16.b.1-dfsg-5
erlang-xmerl               (>= 1:16.b.1-dfsg) | 1:16.b.1-dfsg-5
libc6                               (>= 2.14) | 
libcurl3                          (>= 7.16.2) | 
libgcc1                          (>= 1:4.1.1) | 
libicu48                           (>= 4.8-1) | 
libmozjs185-1.0         (>= 1.8.5-1.0.0+dfsg) | 
libnspr4                       (>= 2:4.9-2~)  | 
 OR libnspr4-0d                 (>= 1.8.0.10) | 
libstdc++6                         (>= 4.4.0) | 


Package's Recommends field is empty.

Package's Suggests field is empty.
From: Viktar Vauchkevich <victorena...@gmail.com>
Subject: [PATCH] Add systemd support

diff -Nru a/debian/control b/debian/control
--- a/debian/control	2013-08-30 20:39:43.000000000 +0300
+++ b/debian/control	2013-09-19 10:18:09.000000000 +0300
@@ -5,6 +5,7 @@
 Standards-Version: 3.9.4
 Build-Depends: dpkg-dev (>= 1.16.1~),
                debhelper (>= 9),
+               dh-systemd (>= 1.5),
                autoconf,
                erlang-crypto,
                erlang-dev (>= 1:13.b.2.1),
diff -Nru a/debian/couchdb.service b/debian/couchdb.service
--- a/debian/couchdb.service	1970-01-01 03:00:00.000000000 +0300
+++ b/debian/couchdb.service	2013-09-19 10:51:15.710037042 +0300
@@ -0,0 +1,11 @@
+[Unit]
+Description=CouchDB Server
+After=network.target
+
+[Service]
+User=couchdb
+ExecStart=/usr/bin/couchdb -r 0 -e /dev/null -o /dev/null
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff -Nru a/debian/couchdb.tmpfile b/debian/couchdb.tmpfile
--- a/debian/couchdb.tmpfile	1970-01-01 03:00:00.000000000 +0300
+++ b/debian/couchdb.tmpfile	2013-09-19 09:44:41.000000000 +0300
@@ -0,0 +1 @@
+d /var/run/couchdb 0755 couchdb couchdb - -
diff -Nru a/debian/rules b/debian/rules
--- a/debian/rules	2013-08-30 20:29:41.000000000 +0300
+++ b/debian/rules	2013-09-19 10:15:22.000000000 +0300
@@ -7,7 +7,7 @@
 DESTDIR=$(CURDIR)/debian/couchdb
 
 %:
-	dh $@
+	dh $@ --systemd
 
 override_dh_auto_clean:
 	dh_auto_clean

Reply via email to