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).
- Switch to dh debian/rules.
- Update copyright years.
- Update package description.
- Move file installation to an .install file.

Change-Id: Id3023dfc888327b53dec252d934ee0514dc3d671
changes/78/12378/1
Guillem Jover 10 years ago
parent e00771b4fa
commit 2a7454829c

2
.gitignore vendored

@ -0,0 +1,2 @@
*.o
/mediator

6
debian/.gitignore vendored

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

2
debian/compat vendored

@ -1 +1 @@
5
9

10
debian/control vendored

@ -3,11 +3,11 @@ Section: utils
Priority: extra
Maintainer: Sipwise Development Team <support@sipwise.com>
Build-Depends:
debhelper (>= 5),
debhelper (>= 9),
default-libmysqlclient-dev | libmysqlclient15-dev,
libglib2.0-dev,
Standards-Version: 3.9.7
Homepage: http://sipwise.com/
Standards-Version: 3.9.8
Homepage: https://www.sipwise.com/
Package: ngcp-mediator
Architecture: any
@ -15,5 +15,5 @@ Depends:
lsb-base,
${misc:Depends},
${shlibs:Depends},
Description: CDR creation tool for NGCP platforms.
This tool generates CDR entries from accounting information in a NGCP platform.
Description: CDR creation tool for NGCP
This tool generates CDR entries from accounting information in a NGCP system.

2
debian/copyright vendored

@ -4,7 +4,7 @@ Upstream-Contact: Sipwise Development Team <support@sipwise.com>
Files: *
Copyright:
Copyright © 2007-2015 Sipwise GmbH, Austria
Copyright © 2007-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/install vendored

@ -0,0 +1 @@
mediator usr/bin/

72
debian/rules vendored

@ -1,76 +1,12 @@
#!/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
CFLAGS = -Wall -g
%:
dh $@
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
build: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
$(MAKE)
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
-$(MAKE) clean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs usr/bin
# Add here commands to install the package into debian/ngcp-mediator.
install -m 755 mediator $(CURDIR)/debian/ngcp-mediator/usr/bin/mediator
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples
dh_installman
override_dh_installinit:
dh_installinit --name=mediator
dh_link
dh_strip
mkdir -p $(CURDIR)/debian/ngcp-mediator/usr/share/lintian/overrides/
cp -av debian/overrides $(CURDIR)/debian/ngcp-mediator/usr/share/lintian/overrides/ngcp-mediator
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_installinit

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