From 826622b9efa291841678d0dea4bb8e9697850632 Mon Sep 17 00:00:00 2001 From: Boris Manojlovic Date: Fri, 30 Oct 2015 19:38:55 +0100 Subject: [PATCH] add debian build scripts --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 21 ++++++++++ debian/copyright | 38 +++++++++++++++++++ debian/docs | 1 + debian/freeswitch-mod-bcg729.install | 1 + .../freeswitch-mod-bcg729.lintian-overrides | 1 + debian/rules | 24 ++++++++++++ debian/source/format | 1 + 9 files changed, 93 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/freeswitch-mod-bcg729.install create mode 100644 debian/freeswitch-mod-bcg729.lintian-overrides create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..78eae14 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +freeswitch-mod-bcg729 (0.0.1-1) unstable; urgency=low + + * Initial release + + -- Boris Manojlovic Fri, 30 Oct 2015 13:57:41 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..d17a041 --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: freeswitch-mod-bcg729 +Section: comm +Priority: optional +Maintainer: Boris Manojlovic +Build-Depends: debhelper (>= 9), +# bcg729 strange requirement really :) + libbcg729-dev, +# freeswitch development files + libfreeswitch-dev +Standards-Version: 3.9.5 +Homepage: https://github.com/xadhoom/mod_bcg729 +Vcs-Git: https://github.com/xadhoom/mod_bcg729.git +Vcs-Browser: https://github.com/xadhoom/mod_bcg729 + +Package: freeswitch-mod-bcg729 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, + freeswitch (>= 1.4.23), + libbcg729-0 +Description: Freeswitch G729 module + mod_bcg729 is G729 codec package diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..5bc1176 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,38 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: freeswitch-mod-bcg729 +Source: + +Files: * +Copyright: + +License: + + + . + + +# If you want to use GPL v2 or later for the /debian/* files use +# the following clauses, or change it to suit. Delete these two lines +Files: debian/* +Copyright: 2015 Boris Manojlovic +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid to pick license terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/freeswitch-mod-bcg729.install b/debian/freeswitch-mod-bcg729.install new file mode 100644 index 0000000..1431dc9 --- /dev/null +++ b/debian/freeswitch-mod-bcg729.install @@ -0,0 +1 @@ +/usr/lib/freeswitch/mod/mod_bcg729.so diff --git a/debian/freeswitch-mod-bcg729.lintian-overrides b/debian/freeswitch-mod-bcg729.lintian-overrides new file mode 100644 index 0000000..792d600 --- /dev/null +++ b/debian/freeswitch-mod-bcg729.lintian-overrides @@ -0,0 +1 @@ +# diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1bed112 --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f +DH_VERBOSE = 1 +export ADD_CFLAGS=-fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic +export ADD_LIBS=-lm -lbcg729 +# main packaging script based on dh7 syntax +%: + dh $@ + + +.stamp-build: + fsxs compile --add-cflags="$(ADD_CFLAGS)" mod_bcg729.c + fsxs link --add-libs="$(ADD_LIBS)" mod_bcg729.so mod_bcg729.o + +override_dh_auto_build: .stamp-build + +override_dh_auto_install: + fsxs install --destdir="debian/tmp/" mod_bcg729.so + +override_dh_auto_clean: + rm -f mod_bcg729.o + rm -f mod_bcg729.so + rm -rf debian/tmp + rm -rf debian/freeswitch-mod-bcg729 + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)