[Pkg-owncloud-commits] [php-sabredav] 07/13: Install naturalselection and sabredav CLIs

David Prévot taffit at moszumanska.debian.org
Thu Apr 16 15:17:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch 2.1
in repository php-sabredav.

commit 51b502419581f5d7729668aac153ee85ee7deffc
Author: David Prévot <taffit at debian.org>
Date:   Thu Feb 26 11:59:23 2015 -0400

    Install naturalselection and sabredav CLIs
---
 debian/control       |  3 +++
 debian/install       |  4 +++-
 debian/manpages      |  2 ++
 debian/rules         | 19 +++++++++++++++++++
 debian/sabredav.1.in |  5 +++++
 5 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 5098357..b329df4 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Thomas Mueller <thomas.mueller at tmit.eu>,
            Paul van Tilburg <paulvt at debian.org>,
            David Prévot <taffit at debian.org>
 Build-Depends: debhelper (>= 8.0.0),
+               help2man,
                php-codesniffer,
                php-sabre-event,
                php-sabre-http (<< 4),
@@ -15,6 +16,7 @@ Build-Depends: debhelper (>= 8.0.0),
                php5-sqlite,
                phpab,
                phpunit,
+               python,
                pkg-php-tools (>= 1.7~)
 Standards-Version: 3.9.6
 Homepage: http://sabre.io/dav/
@@ -24,6 +26,7 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-owncloud/php-sabredav.git
 Package: php-sabre-dav
 Architecture: all
 Depends: ${misc:Depends}, ${phpcomposer:Debian-require}
+Recommends: python
 Suggests: ${phpcomposer:Debian-suggest}
 Replaces: ${phpcomposer:Debian-replace}
 Breaks: ${phpcomposer:Debian-conflict}, ${phpcomposer:Debian-replace}
diff --git a/debian/install b/debian/install
index 32bfc16..3e70efa 100644
--- a/debian/install
+++ b/debian/install
@@ -1 +1,3 @@
-lib/*	usr/share/php/Sabre
+bin/naturalselection	usr/bin
+bin/sabredav*		usr/bin
+lib/*			usr/share/php/Sabre
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..9878088
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1,2 @@
+debian/tmp/naturalselection.1
+debian/tmp/sabredav.1
diff --git a/debian/rules b/debian/rules
index 576d05a..82eb9a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,7 @@
 #!/usr/bin/make -f
+
+UPSTREAM := $(shell dpkg-parsechangelog -S Version | sed 's/-[^-]*//')
+
 %:
 	dh $@ --with phpcomposer -XICON-LICENSE
 
@@ -26,5 +29,21 @@ else
 	@echo "** tests disabled"
 endif
 
+override_dh_installman:
+	mkdir --parent $(CURDIR)/debian/tmp
+	help2man \
+		--no-info \
+		--name='keep cache directories below a specified threshold' \
+		--output=$(CURDIR)/debian/tmp/naturalselection.1 \
+		$(CURDIR)/bin/naturalselection
+	help2man \
+		--help-option=\  \
+		--version-string=$(UPSTREAM) \
+		--no-info \
+		--include=$(CURDIR)/debian/sabredav.1.in \
+		"echo Usage: sabredav" \
+		> $(CURDIR)/debian/tmp/sabredav.1
+	dh_installman
+
 get-orig-source:
 	uscan --verbose --force --rename
diff --git a/debian/sabredav.1.in b/debian/sabredav.1.in
new file mode 100644
index 0000000..18c5048
--- /dev/null
+++ b/debian/sabredav.1.in
@@ -0,0 +1,5 @@
+[name]
+sabredav \- SabreDAV test server
+
+[description]
+Start a PHP Development Server listening on <http://0.0.0.0:8080>.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list