From 13b22f0c52034eb0a0bd5f63a9e87ff0f7c8ef40 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 27 Mar 2017 18:31:53 +0200 Subject: [PATCH] TT#5420 Update packaging - Use canonical homepage URL. - Bump debhelper compatibility to 9. - Bump Standards-Version to 3.9.8. - Bump source format to 3.0 (native). - Update copyright years. - Switch to dh debian/rules. - Move cron file under debian/ so that dh_installcron can handle it automatically. - Move file installation to install and dirs files. Change-Id: I74e874ac74ea861f6ca0c72b63d21ccd292857cc --- debian/.gitignore | 5 ++ debian/compat | 2 +- debian/control | 6 +-- debian/copyright | 2 +- debian/dirs | 1 + debian/install | 1 + reminder.cron => debian/reminder.cron.d | 0 debian/rules | 62 ++++--------------------- debian/source/format | 1 + 9 files changed, 22 insertions(+), 58 deletions(-) create mode 100644 debian/.gitignore create mode 100644 debian/dirs create mode 100644 debian/install rename reminder.cron => debian/reminder.cron.d (100%) create mode 100644 debian/source/format diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..61862c4 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,5 @@ +*.log +*.substvars +/debhelper-build-stamp +/files +/ngcp-reminder/ diff --git a/debian/compat b/debian/compat index 7ed6ff8..ec63514 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -5 +9 diff --git a/debian/control b/debian/control index 2d8591b..8bd1416 100644 --- a/debian/control +++ b/debian/control @@ -2,9 +2,9 @@ Source: ngcp-reminder Section: comm Priority: extra Maintainer: Sipwise Development Team -Build-Depends: debhelper (>= 5) -Standards-Version: 3.9.7 -Homepage: http://sipwise.com/ +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.8 +Homepage: https://www.sipwise.com/ Package: ngcp-reminder Architecture: all diff --git a/debian/copyright b/debian/copyright index 266fe24..5b9b67f 100644 --- a/debian/copyright +++ b/debian/copyright @@ -4,7 +4,7 @@ Upstream-Contact: Sipwise Development Team Files: * Copyright: - Copyright © 2007-2010, 2012-2015 Sipwise GmbH, Austria + Copyright © 2007-2010, 2012-2017 Sipwise GmbH, Austria License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..236670a --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/sbin diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..472c1f7 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +reminder.conf etc/ngcp-reminder/ diff --git a/reminder.cron b/debian/reminder.cron.d similarity index 100% rename from reminder.cron rename to debian/reminder.cron.d diff --git a/debian/rules b/debian/rules index 6ccdd28..238f0eb 100755 --- a/debian/rules +++ b/debian/rules @@ -1,62 +1,18 @@ #!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -build: build-stamp +D = debian/ngcp-reminder -build-stamp: - dh_testdir - #cd docs && make && cd .. - touch $@ +%: + dh $@ -clean: - dh_testdir - dh_testroot - rm -f build-stamp - #cd docs && make clean && cd .. - dh_clean +override_dh_install: + install -m 755 reminder.pl $(D)/usr/sbin/reminder + dh_install -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs usr/sbin /etc/cron.d /etc/ngcp-reminder +override_dh_installcron: + dh_installcron --name=reminder - install -m 755 reminder.pl debian/ngcp-reminder/usr/sbin/reminder - install -m 644 reminder.cron debian/ngcp-reminder/etc/cron.d/reminder - install -m 644 reminder.conf debian/ngcp-reminder/etc/ngcp-reminder/reminder.conf - -# Build architecture-dependent files here. -binary-arch: build install -# We have nothing to do by default. - -# Build architecture-independent files here. -binary-indep: build install - dh_testdir - dh_testroot - dh_installchangelogs - dh_installdocs - dh_installexamples - #dh_installman docs/rate-o-mat.8 - dh_installinit - dh_link - dh_strip - #mkdir -p $(CURDIR)/debian/ngcp-rate-o-mat/usr/share/lintian/overrides/ - #cp -av debian/overrides $(CURDIR)/debian/ngcp-rate-o-mat/usr/share/lintian/overrides/ngcp-rate-o-mat - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +.PHONY: override_dh_install override_dh_installcron diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)