debian/0000775000000000000000000000000011663372046007200 5ustar debian/kannel-dev.manpages0000664000000000000000000000002311333307515012725 0ustar debian/gw-config.1 debian/kannel.init0000664000000000000000000000625311333402647011336 0ustar #!/bin/sh # Start/stop the Kannel boxes: One bearer box and one WAP box. # This is the default init.d script for Kannel. Its configuration is # appropriate for a small site running Kannel on one machine. # Make sure that the Kannel binaries can be found in $BOXPATH or somewhere # else along $PATH. run_kannel_box has to be in $BOXPATH. ### BEGIN INIT INFO # Provides: kannel # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Should-Start: $network $named # Should-Stop: $network $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: SMS and WAP gateway # Description: Kannel is a gateway for connecting WAP phones to the # Internet. It also works as an SMS gateway. ### END INIT INFO . /lib/lsb/init-functions BOXPATH=/usr/sbin PIDFILES=/var/run/kannel CONF=/etc/kannel/kannel.conf PATH=$BOXPATH:$PATH # On Debian, the most likely reason for the bearerbox not being available # is that the package is in the "removed" or "unconfigured" state, and the # init.d script is still around because it's a conffile. This is normal, # so don't generate any output. test -x $BOXPATH/bearerbox || exit 0 test -r /etc/default/kannel && . /etc/default/kannel if [ ! -d $PIDFILES ] then mkdir $PIDFILES chown kannel:root $PIDFILES fi case "$1" in start) log_daemon_msg "Starting WAP gateway" log_progress_msg "bearerbox" start-stop-daemon --start --quiet \ --pidfile $PIDFILES/kannel_bearerbox.pid \ --chuid kannel \ --exec $BOXPATH/run_kannel_box \ -- \ --pidfile $PIDFILES/kannel_bearerbox.pid \ --no-extra-args \ $BOXPATH/bearerbox -v 4 -- $CONF sleep 1 # Wait for bearerbox test ! -z $START_WAPBOX && ( log_progress_msg "wapbox" start-stop-daemon --start --quiet \ --pidfile $PIDFILES/kannel_wapbox.pid \ --chuid kannel \ --exec $BOXPATH/run_kannel_box \ -- \ --pidfile $PIDFILES/kannel_wapbox.pid \ --no-extra-args \ $BOXPATH/wapbox -v 4 -- $CONF ) test ! -z $START_SMSBOX && ( log_progress_msg "smsbox" start-stop-daemon --start --quiet \ --pidfile $PIDFILES/kannel_smsbox.pid \ --chuid kannel \ --exec $BOXPATH/run_kannel_box \ -- \ --pidfile $PIDFILES/kannel_smsbox.pid \ --no-extra-args \ $BOXPATH/smsbox -v 4 -- $CONF ) log_end_msg 0 ;; stop) log_daemon_msg "Stopping WAP gateway" test ! -z $START_SMSBOX && ( log_progress_msg "smsbox" start-stop-daemon --stop --retry 5 --quiet \ --pidfile $PIDFILES/kannel_smsbox.pid \ --exec $BOXPATH/run_kannel_box ) test ! -z $START_WAPBOX && ( log_progress_msg "wapbox" start-stop-daemon --stop --retry 5 --quiet \ --pidfile $PIDFILES/kannel_wapbox.pid \ --exec $BOXPATH/run_kannel_box ) log_progress_msg "bearerbox" start-stop-daemon --stop --retry 5 --quiet \ --pidfile $PIDFILES/kannel_bearerbox.pid \ --exec $BOXPATH/run_kannel_box log_end_msg 0 ;; reload) # We don't have support for this yet. exit 1 ;; restart|force-reload) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart|force-reload}" exit 1 esac exit 0 debian/kannel-dev.install0000664000000000000000000000020511333307515012602 0ustar debian/tmp/usr/bin/gw-config usr/bin debian/tmp/usr/lib/kannel/*.a usr/lib/kannel debian/tmp/usr/include/kannel/* usr/include/kannel debian/copyright0000664000000000000000000000345211333307515011130 0ustar This is Kannel, originally packaged for Debian by Lars Wirzenius and now maintained by Bruno Rodrigues Original author is the Kannel project, see http://www.kannel.org, run by Wapit Ltd, see http://www.wapit.com. Copyright (c) 1998 WAPIT OY LTD. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by WAPIT OY LTD. 4. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/kannel.postinst0000664000000000000000000000340111350557132012245 0ustar #! /bin/sh # postinst script for kannel # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # # quoting from the policy: # Any necessary prompting should almost always be confined to the # post-installation script, and should be protected with a conditional # so that unnecessary prompting doesn't happen if a package's # installation fails and the `postinst' is called with `abort-upgrade', # `abort-remove' or `abort-deconfigure'. case "$1" in configure) # Create a "kannel" user. This has modeled after the code in the postfix.deb # postinst. We first try to set the ownership of /var/log/kannel. If that # fails, we create the user and re-try. If that still fails, we abort. if chown -c kannel:root /var/log/kannel 2>/dev/null then : #elif adduser --system --group kannel elif adduser --system --home /usr/lib/kannel --no-create-home --gecos "Kannel" kannel then sleep 1 # wait for user creation chown -c kannel:root /var/log/kannel fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/kannel.examples0000664000000000000000000000001711333307515012177 0ustar doc/examples/* debian/kannel.dirs0000664000000000000000000000001711333307515011322 0ustar var/log/kannel debian/kannel.install0000664000000000000000000000034611333307515012034 0ustar debian/tmp/usr/bin/wmlsc usr/bin debian/tmp/usr/bin/wmlsdasm usr/bin debian/tmp/usr/bin/seewbmp usr/bin debian/tmp/usr/bin/mtbatch usr/bin debian/tmp/usr/sbin usr debian/tmp/usr/share/man usr/share debian/kannel.conf /etc/kannel/ debian/kannel.logrotate0000664000000000000000000000034211333307515012362 0ustar /var/log/kannel/*.log { daily missingok rotate 365 compress delaycompress notifempty create 640 kannel adm sharedscripts postrotate killall -HUP bearerbox smsbox wapbox > /dev/null 2> /dev/null || true endscript } debian/gbp.conf0000664000000000000000000000014611164237435010616 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True sign-tags = True debian/kannel-docs.docs0000664000000000000000000000017011333307515012237 0ustar debian/tmp/usr/share/doc/kannel/alligata debian/tmp/usr/share/doc/kannel/userguide debian/tmp/usr/share/doc/kannel/wtls debian/kannel.conf0000664000000000000000000000103011333307515011302 0ustar # # Sample configuration file for Kannel bearerbox on Debian. # See the documentation for explanations of fields. # # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core admin-port = 13000 admin-password = bar admin-deny-ip = "*.*.*.*" admin-allow-ip = "" wapbox-port = 13002 wdp-interface-name = "*" log-file = "/var/log/kannel/bearerbox.log" box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" group = wapbox bearerbox-host = localhost log-file = "/var/log/kannel/wapbox.log" debian/changelog0000664000000000000000000002301311663372045011050 0ustar kannel (1.4.3-2fakesync2build1) precise; urgency=low * Rebuild for libmysqlclient transition -- Clint Byrum Wed, 23 Nov 2011 23:37:09 -0800 kannel (1.4.3-2fakesync2) oneiric; urgency=low * Rebuild for OpenSSL 1.0.0. -- Colin Watson Thu, 19 May 2011 23:06:54 +0100 kannel (1.4.3-2fakesync1) maverick; urgency=low * Fake sync due to mismatching orig tarball (LP: #590067). -- Felix Geyer Tue, 15 Jun 2010 01:10:54 +0200 kannel (1.4.3-2) unstable; urgency=low * Drop superfluous /var/run/kannel ownership change in postinst (already taken care of at SysV start time, and might fail if /var/run is on temporary media). Closes: bug#574205, thanks to Lucas Nussbaum. -- Jonas Smedegaard Fri, 19 Mar 2010 03:19:40 +0100 kannel (1.4.3-1) unstable; urgency=low [ Paul Dwerryhouse ] * New upstream release. Closes: bug#563661. * Add patch 33 fixing paths in gw/kannel.8. Closes: bug#527227, thanks to Slaven Rezic. * Depend on psmisc for killall in logrotate script. Closes: #539856, thanks to Alan McNatty. [ Jonas Smedegaard ] * Source now git-maintained: Add Vcs-* stanzas to control file. * Add git-buildpackage configfile, enabling signed tags and pristine- tar. * Use source format '3.0 (quilt)': + Abandon dpatch: Drop build-depending on dpatch; drop patch-related build rules. + Convert patches from dpatch to quilt w/ DEP3 headers. + Add hint file debian/source/format. * put aside upstream config.guess and config.sub during build (instead of overwriting and removing afterwards), to be VCS-friendly. * Build-depend on unversioned libmysqlclient-dev (and only fallback on deprecated libmysqlclient15-dev to ease backporting). * Build-depend on automake (not older automake1.10). * Depend on ${misc:Depends}. * Cosmetics: Wrap long descriptions at 72 chars, and strip trailing newlines. * Fix patch 33 triple-slash fix. * Add myself as uploader. * Build with configure flag --enable-warnings. * Enable SQLite2, SQLite3 and PostgreSQL support: + Build-depend on libsqlite0-dev, sqlite, libsqlite3-dev, sqlite3 and libpq-dev + Add relevant configure flags * Enable PCRE support: + Build-depend on libpcre3-dev + Add relevant configure flag * Tighten LSB init hints: + Require local_fs and remote_fs (not only local_fs, and not only should have) + Should have named + Drop requiring syslog (daemons write directly to log files) * Bump Standards-Version to 3.8.4. * Have kannel-dev depend on needed header packages. -- Jonas Smedegaard Sun, 07 Feb 2010 02:10:44 +0100 kannel (1.4.1-4) unstable; urgency=low * Applied patch from James Westby to use lsb_init functions (Closes: #511882,#464451) * Added autotools-dev to Build-Depends (Closes: #511880) -- Paul Dwerryhouse Sat, 14 Feb 2009 12:09:25 +1100 kannel (1.4.1-3) unstable; urgency=low * Added build-dep for docbook (Closes: #509970) * Changed manpage references from file://usr/doc/kannel to file://usr/share/doc/kannel (Closes: #510481) * Added SMPP to package description (Closes: #465743) * Upgraded to standards-version 3.8.0 * Updated config.guess and config.sub * Changed gs to ghostscript in build-deps * Changed libssl-dev build-dep from 0.9.8-1 to 0.9.8 * Changes ${Source-Version} to ${binary:Version} * Added new Homepage: field in debian/control * Put kannel-docs into doc Section -- Paul Dwerryhouse Sun, 11 Jan 2009 11:14:57 +1100 kannel (1.4.1-2) unstable; urgency=low * Loic Minier's patch to debian/rules to fix incorrect path being returned by gw-config (Closes: #337616) -- Paul Dwerryhouse Sun, 15 Oct 2006 10:08:43 +1000 kannel (1.4.1-1) unstable; urgency=low * New upstream release (Closes: #346429) * Removed mbuni patch, since it doesn't apply correctly (64_mbuni.dpatch). * Removed libmysqlclient15 namespace patch (16_kannel_list.dpatch). * Added LSB dependency info to the kannel.init file -- Paul Dwerryhouse Wed, 4 Oct 2006 12:46:07 +1000 kannel (1.4.0-17) unstable; urgency=low * Patch from Stefan Huehner to fix the namespace problem when compiling against libmysqlclient15 (Closes: #343769) -- Paul Dwerryhouse Mon, 17 Apr 2006 08:22:07 +1000 kannel (1.4.0-16) unstable; urgency=low * Updated debian/patches/00list for new patch -- Paul Dwerryhouse Mon, 24 Oct 2005 10:52:36 +1000 kannel (1.4.0-15) unstable; urgency=low * Patch from Loic Minier to allow compilation on Alpha (Closes: #266148) -- Paul Dwerryhouse Sun, 23 Oct 2005 08:42:15 +1000 kannel (1.4.0-14) unstable; urgency=low * Build-Depends libssl-dev >= 0.9.8-1 -- Paul Dwerryhouse Mon, 10 Oct 2005 21:08:57 +1000 kannel (1.4.0-13) unstable; urgency=low * Standards version changed to 3.6.2 * Add Source-Version to kannel-extras depends * kannel-extras now depends on kannel * Removed suggests from kannel-extras * Change deluser to userdel to avoid having to put adduser into Pre-Depends. * kannel 1.4 compiles successfully with gcc-3.4 (Closes: #275947) * Several changes provided by Loic Minier , to allow support for Mbuni, see below. (Closes: #325730) * Add dpatch support. [debian/control, debian/rules, debian/patches/00list] * Required changes for Mbuni 1.0.0. [debian/patches/64_mbuni.dpatch] * New kannel-dev package for development files. [debian/control, debian/kannel-dev.install] * Move *.a files from kannel-extras to kannel-dev. [debian/kannel-dev.install, debian/kannel-extras.install] * Move gw-config helper from kannel to kannel-dev. [debian/kannel.install, debian/kannel-dev.install] -- Paul Dwerryhouse Mon, 12 Sep 2005 10:56:59 +1000 kannel (1.4.0-6) unstable; urgency=low * Replaced --enable-mysql and --with-mysql=/usr with --with-mysql and --with-mysql-dir=/usr -- Paul Dwerryhouse Tue, 31 May 2005 22:04:28 +1000 kannel (1.4.0-5) unstable; urgency=low * Removed unused dh_* lines from debian/rules * Added reference to kannel website in package description -- Paul Dwerryhouse Mon, 30 May 2005 12:05:54 +1000 kannel (1.4.0-4) unstable; urgency=low * Removed .cvsignore files and debian dir from upstream tarball -- Paul Dwerryhouse Sun, 22 May 2005 09:06:09 +1000 kannel (1.4.0-3) unstable; urgency=low * added man page for gw-config -- Paul Dwerryhouse Tue, 10 May 2005 22:14:44 +1000 kannel (1.4.0-2) unstable; urgency=low * Added jade to build-depends -- Paul Dwerryhouse Tue, 10 May 2005 19:27:09 +1000 kannel (1.4.0-1) unstable; urgency=low * New maintainer (Closes: #303610) * Added Debian docbook DSSSL paths to configure.in & configure (Closes: #275804) * New upstream release (Closes: #300201) -- Paul Dwerryhouse Tue, 10 May 2005 08:53:21 +1000 kannel (1.2.1-5) unstable; urgency=low * New maintainer (Closes: #185224) * Fix bug in init script -- Bruno Rodrigues Sun, 4 May 2003 18:54:43 +0000 kannel (1.2.1-4) unstable; urgency=low * Updated Standards-Version to 3.5.9 and other cleaning up * Kannel-docs is now architecture independent. Updated control and rules -- Bruno Rodrigues Tue, 8 Apr 2003 20:08:40 +0000 kannel (1.2.1-3) unstable; urgency=low * Moved debian dir from orig to diff * Added debian/compat * Tidy up -- Bruno Rodrigues Mon, 17 Mar 2003 18:42:36 +0000 kannel (1.2.1-2) unstable; urgency=low * Updated Standards-Version to 3.5.8 -- Bruno Rodrigues Sun, 26 Jan 2003 17:05:13 +0100 kkannel (1.2.1-1) unstable; urgency=low * New upstream version -- Bruno Rodrigues Sun, 26 Jan 2003 17:05:13 +0100 kannel (1.2.0-1) unstable; urgency=low * New upstream version -- Bruno Rodrigues Thu, 18 Jul 2002 10:30:39 +0100 kannel (0.11.3.cvs-1) unstable; urgency=low * New upstream version 0.11.3. This Debian package has a few additional changes made in upstream CVS since the release: * SMS timestamps are set by Kannel, if the SMS center did not set them. * Bugfixes in assertions. * Fixes to a couple of WMLScript compilation bugs. * WTP protocol fix in cases when load is heavy and Ack packets are delayed. * WTP state machine fix: if an event can't be handled, it is just ignored, instead of the state machine being killed. * Debian packaging: postinst creates user kannel, init.d/kannel runs the boxes as that user. -- Lars Wirzenius Tue, 10 Oct 2000 15:54:01 +0300 kannel (0.11.2.cvs-1) unstable; urgency=low * Updated version of Debian packaging, for the CVS version. Also added a Debian revision number to the version number: even though the debian/ directory is part of upstream sources, there may be several Debian versions due to packaging etc per upstream release. -- Lars Wirzenius Tue, 3 Oct 2000 13:20:24 +0300 kannel (0.7.9999) unstable; urgency=low * Initial version of Debian package. This is not an upstream release version. It is a CVS snapshot. -- Lars Wirzenius Wed, 29 Mar 2000 22:17:43 +0300 debian/control0000664000000000000000000000473111405533401010574 0ustar Source: kannel Section: net Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Paul Dwerryhouse Uploaders: Jonas Smedegaard Build-Depends: debhelper (>> 7.0.0), libxml2-dev, libssl-dev (>= 0.9.8), openssl, libmysqlclient-dev | libmysqlclient15-dev, libsqlite0-dev, sqlite, libsqlite3-dev, sqlite3, libpq-dev, libpam0g-dev, autoconf, automake, autotools-dev, libpcre3-dev Build-Depends-Indep: docbook-dsssl, jadetex, transfig, imagemagick, ghostscript, jade, docbook Vcs-Git: git://git.debian.org/git/collab-maint/kannel.git Vcs-Browser: http://git.debian.org/?p=collab-maint/kannel.git;a=summary Homepage: http://www.kannel.org/ Standards-Version: 3.8.4 Package: kannel Architecture: any Section: net Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, psmisc Conflicts: kannel-devel, kannel-cvs Replaces: kannel-devel, kannel-cvs Description: WAP and SMS gateway Kannel is a gateway for connecting WAP (Wireless Application Protocol) phones to the Internet. It also works as an SMS/SMPP gateway, for providing SMS based services for GSM phones. . Compiled with ssl, MySQL and native malloc. Package: kannel-extras Architecture: any Section: net Priority: optional Suggests: python Depends: ${shlibs:Depends}, ${misc:Depends}, kannel (= ${binary:Version}) Description: WAP and SMS gateway extras Kannel is a gateway for connecting WAP (Wireless Application Protocol) phones to the Internet. It also works as an SMS/SMPP gateway, for providing SMS based services for GSM phones. . Test utilities and contrib data. Package: kannel-docs Architecture: all Section: doc Depends: ${misc:Depends} Suggests: kannel Priority: optional Description: WAP and SMS gateway documentation Kannel is a gateway for connecting WAP (Wireless Application Protocol) phones to the Internet. It also works as an SMS/SMPP gateway, for providing SMS based services for GSM phones. . Documentation in html, rtf and pdf format. Package: kannel-dev Architecture: any Section: devel Depends: ${misc:Depends}, libssl-dev, libpam0g-dev, libxml2-dev, libpcre3-dev, libmysqlclient-dev, libsqlite0-dev, libsqlite3-dev, libpq-dev Description: WAP and SMS gateway headers and development files Kannel is a gateway for connecting WAP (Wireless Application Protocol) phones to the Internet. It also works as an SMS/SMPP gateway, for providing SMS based services for GSM phones. . Headers and development files. debian/source/0000775000000000000000000000000011316654760010501 5ustar debian/source/format0000664000000000000000000000001411405533356011703 0ustar 3.0 (quilt) debian/README.Debian0000664000000000000000000000074411333307515011237 0ustar Kannel's upstream source package is distributed with the name gateway-x.y.z.tar.gz; since this name does not fit into Debian's packaging standards correctly, I have renamed it to kannel_x.y.z.tar.gz (kannel_x.y.z.orig.tar.gz). Additionally, the upstream tarball contains a debian/ directory; I have removed this directory in the Debian tarball. For additional documentation, install the kannel-docs package; documentation can then be found under file://usr/share/doc/kannels-docs debian/rules0000775000000000000000000001050111333411216010240 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This is the debhelper compatibility version to use. #export DH_COMPAT=4 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif config.status: configure build: build-stamp build.indep: build-stamp.indep build-stamp: config.status dh_testdir ifneq "$(wildcard /usr/share/misc/config.sub)" "" [ ! -e config.sub ] || [ -e config.sub.upstream ] || mv config.sub config.sub.upstream cp -f /usr/share/misc/config.sub config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" [ ! -e config.guess ] || [ -e config.guess.upstream ] || mv config.guess config.guess.upstream cp -f /usr/share/misc/config.guess config.guess endif ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --enable-warnings \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --disable-docs --enable-pam --enable-pcre \ --enable-ssl --with-ssl=/usr \ --with-mysql --with-mysql-dir=/usr \ --with-sqlite2 \ --with-sqlite3 \ --with-pgsql --with-pgsql-dir=/usr $(MAKE) touch build-stamp build-stamp.indep: config.status dh_testdir ifneq "$(wildcard /usr/share/misc/config.sub)" "" [ ! -e config.sub ] || [ -e config.sub.upstream ] || mv config.sub config.sub.upstream cp -f /usr/share/misc/config.sub config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" [ ! -e config.guess ] || [ -e config.guess.upstream ] || mv config.guess config.guess.upstream cp -f /usr/share/misc/config.guess config.guess endif ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --enable-warnings \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --enable-docs --enable-pam --enable-pcre \ --enable-ssl --with-ssl=/usr \ --with-mysql --with-mysql-dir=/usr \ --with-sqlite2 \ --with-sqlite3 \ --with-pgsql --with-pgsql-dir=/usr $(MAKE) docs touch build-stamp.indep clean: dh_testdir dh_testroot rm -f build-stamp build-stamp.indep config.status # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean ifneq "$(wildcard /usr/share/misc/config.sub)" "" [ ! -e config.sub.upstream ] || mv -f config.sub.upstream config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" [ ! -e config.guess.upstream ] || mv -f config.guess.upstream config.guess endif dh_clean install: build dh_testdir -a dh_testroot -a dh_prep dh_installdirs -a $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp $(MAKE) install-contrib DESTDIR=$(CURDIR)/debian/tmp $(MAKE) install-checks DESTDIR=$(CURDIR)/debian/tmp $(MAKE) install-test DESTDIR=$(CURDIR)/debian/tmp # XXX this is temporary for pre 1.3.1/1.2.2 versions -test -e test/run-http2-tests && mv $(CURDIR)/debian/tmp/usr/lib/kannel/test/run-http2-tests $(CURDIR)/debian/tmp/usr/lib/kannel/test/run-http2-tests.sh dh_install -a dh_movefiles -a install.indep: build.indep dh_testdir -i dh_testroot -i dh_prep dh_installdirs -i $(MAKE) install-docs DESTDIR=$(CURDIR)/debian/tmp dh_install -i dh_movefiles -i # Build architecture-independent files here. binary-indep: build.indep install.indep dh_testdir -i dh_testroot -i dh_installdocs -i dh_installchangelogs ChangeLog -i dh_link -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i # Build architecture-dependent files here. binary-arch: build install dh_testdir -a dh_testroot -a dh_installdocs -a dh_installexamples -a dh_installlogrotate -a dh_installinit -a dh_installman -a dh_installchangelogs ChangeLog -a dh_link -a dh_strip -a dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/kannel.postrm0000664000000000000000000000211311333307515011704 0ustar #! /bin/sh # postrm script for kannel # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|failed-upgrade|abort-upgrade|disappear|abort-install) ;; purge) test -d /var/log/kannel && rm -fr /var/log/kannel test -d /var/run/kannel && rm -fr /var/run/kannel test -d /etc/kannel && rmdir /etc/kannel userdel kannel >/dev/null 2>&1 || true ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/kannel.links0000664000000000000000000000030311333307515011477 0ustar /usr/share/man/man8/kannel.8.gz /usr/share/man/man8/bearerbox.8.gz /usr/share/man/man8/kannel.8.gz /usr/share/man/man8/wapbox.8.gz /usr/share/man/man8/kannel.8.gz /usr/share/man/man8/smsbox.8.gz debian/kannel.default0000664000000000000000000000003711333307515012007 0ustar START_WAPBOX=1 #START_SMSBOX=1 debian/patches/0000775000000000000000000000000011333423512010614 5ustar debian/patches/32_va-start-non-null.patch0000664000000000000000000000137611333311637015455 0ustar Description: Compilation fix for the alpha architecture where va_list is a struct Author: Loic Minier Last-Update: 2010-02-06 diff -urNad kannel-1.4.0~/gwlib/log.c kannel-1.4.0/gwlib/log.c --- kannel-1.4.0~/gwlib/log.c 2004-08-08 23:46:51.000000000 +0200 +++ kannel-1.4.0/gwlib/log.c 2005-10-16 14:53:51.000000000 +0200 @@ -432,13 +432,8 @@ int translog; if (level >= sysloglevel && dosyslog) { - if (args == NULL) { - strncpy(buf, format, sizeof(buf)); - buf[sizeof(buf) - 1] = '\0'; - } else { - vsnprintf(buf, sizeof(buf), format, args); - /* XXX vsnprint not 100% portable */ - } + vsnprintf(buf, sizeof(buf), format, args); + /* XXX vsnprint not 100% portable */ switch(level) { case GW_DEBUG: debian/patches/series0000664000000000000000000000005511333423512012031 0ustar 32_va-start-non-null.patch 33_docpatch.patch debian/patches/33_docpatch.patch0000664000000000000000000000155111333371014013730 0ustar Description: Puts correct url to local docs in man pages Author: Paul Dwerryhouse Last-Update: 2010-02-06 diff -urN kannel-1.4.1.old/gw/kannel.8 kannel-1.4.1/gw/kannel.8 --- kannel-1.4.1.old/gw/kannel.8 2000-10-04 01:04:26.000000000 +1100 +++ kannel-1.4.1/gw/kannel.8 2009-01-11 11:07:46.000000000 +1100 @@ -37,7 +37,7 @@ see .B http://www.kannel.org or -.BR file://usr/doc/kannel/ . +.BR file:///usr/share/doc/kannel/ . .SH "SEE ALSO" .BR run_kannel_box (8), .BR seewbmp (1). diff -urN kannel-1.4.1.old/utils/run_kannel_box.8 kannel-1.4.1/utils/run_kannel_box.8 --- kannel-1.4.1.old/utils/run_kannel_box.8 2000-10-04 01:04:26.000000000 +1100 +++ kannel-1.4.1/utils/run_kannel_box.8 2009-01-11 11:08:11.000000000 +1100 @@ -28,4 +28,4 @@ see .B http://www.kannel.org or -.BR file://usr/doc/kannel/ . +.BR file:///usr/share/doc/kannel/ . debian/compat0000664000000000000000000000000211333307515010367 0ustar 7 debian/gw-config.10000664000000000000000000000341511333307515011136 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH GW-CONFIG 1 "May 10, 2005" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME gw-config \- script to get information about installed version of kannel .SH SYNOPSIS .B gw-config .RI [ --cflags ] .RI [ --libs ] .RI [ --version ] .br .SH DESCRIPTION .B gw-config is a tool used to determine the compiler and linker flags for the installed version of kannel. This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has documentation in the GNU Info format; see below. .PP .SH OPTIONS These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. .TP .B \-\-cflags Print the compiler flags that are necessary to compile a program that uses kannel. .TP .B \-\-libs Print the linker flags that are necessary to compile a program that uses kannel. .TP .B \-\-version Show the currently installed version of kannel. .SH SEE ALSO .BR kannel (8), .br .SH AUTHOR This manual page was written by Paul Dwerryhouse , for the Debian project (but may be used by others). debian/kannel.docs0000664000000000000000000000003411333307515011310 0ustar AUTHORS README NEWS VERSION debian/kannel-extras.install0000664000000000000000000000024711333307515013340 0ustar debian/tmp/usr/lib/kannel/checks/* usr/lib/kannel/checks debian/tmp/usr/lib/kannel/test/* usr/lib/kannel/test debian/tmp/usr/share/doc/kannel/contrib usr/share/kannel