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
changes/79/12379/1
Guillem Jover 10 years ago
parent d48fd7936e
commit 13b22f0c52

5
debian/.gitignore vendored

@ -0,0 +1,5 @@
*.log
*.substvars
/debhelper-build-stamp
/files
/ngcp-reminder/

2
debian/compat vendored

@ -1 +1 @@
5
9

6
debian/control vendored

@ -2,9 +2,9 @@ Source: ngcp-reminder
Section: comm
Priority: extra
Maintainer: Sipwise Development Team <support@sipwise.com>
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

2
debian/copyright vendored

@ -4,7 +4,7 @@ Upstream-Contact: Sipwise Development Team <support@sipwise.com>
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

1
debian/dirs vendored

@ -0,0 +1 @@
usr/sbin

1
debian/install vendored

@ -0,0 +1 @@
reminder.conf etc/ngcp-reminder/

62
debian/rules vendored

@ -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

@ -0,0 +1 @@
3.0 (native)
Loading…
Cancel
Save