Added Debian package support.

git-svn-id: http://voip.null.ro/svn/yate@969 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2006-07-10 19:53:36 +00:00
parent bee251bc3a
commit 676d9dce61
34 changed files with 518 additions and 0 deletions

View File

@ -3,6 +3,7 @@ Makefile
YateLocal.mak
configure
config.*
*-stamp
yatepaths.h
yateversn.h
yateiss.inc

22
debian/.cvsignore vendored Normal file
View File

@ -0,0 +1,22 @@
core*
*.orig
*~
.*.swp
*.substvars
*.debhelper
files
patched
tmp
yate
yate-all
yate-alsa
yate-dev
yate-doc
yate-gsm
yate-gtk2
yate-h323
yate-isdn
yate-mozilla
yate-mysql
yate-pgsql
yate-scripts

25
debian/changelog vendored Normal file
View File

@ -0,0 +1,25 @@
yate (1.0.0-1) unstable; urgency=low
* Upgraded for version 1.0.0
-- Paul Chitescu <paulc@voip.null.ro> Mon, 10 Jul 2006 17:38:15 +0300
yate (0.8.7+cvs20050604-1) unstable; urgency=low
* Fixed zaphfc support with CVS version.
* Install into /usr/bin as this is supposed to be a client too.
-- Kilian Krause <kk@verfaction.de> Sat, 4 Jun 2005 19:47:56 +0200
yate (0.8.7-2) unstable; urgency=low
* Bumped version to Mimas version of OpenH323.
-- Kilian Krause <kk@verfaction.de> Mon, 21 Feb 2005 22:47:28 +0100
yate (0.8.7-1) unstable; urgency=low
* Initial Release. (Closes: #288576)
-- Kilian Krause <kk@verfaction.de> Tue, 18 Jan 2005 02:25:00 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
4

137
debian/control vendored Normal file
View File

@ -0,0 +1,137 @@
Source: yate
Section: comm
Priority: optional
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Uploaders: Kilian Krause <kk@verfaction.de>, Jose Carlos Garcia Sogo <jsogo@debian.org>, Mark Purcell <msp@debian.org>, Santiago Garcia Mantinan <manty@debian.org>
Build-Depends: debhelper (>= 4.0.0), autotools-dev, dpatch, libopenh323-dev (>= 1.15.3-1), libasound-dev, libgsm1-dev, libpri-dev, zaptel-source, libmysqlclient-dev, postgresql-dev, libgtk2.0-dev, mozilla-dev
Standards-Version: 3.6.1
Package: yate
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Yate - Yet Another Telephony Engine
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
Package: yate-alsa
Architecture: any
Depends: yate (= ${Source-Version}), ${shlibs:Depends}
Build-Depends: libasound-dev
Description: ALSA sound driver for Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
ALSA audio driver for Yate. This is the recommended audio interface for Linux.
Package: yate-gsm
Architecture: any
Depends: yate (= ${Source-Version}), ${shlibs:Depends}
Description: GSM audio codec for Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
European GSM 06.10 audio codec for Yate.
Package: yate-h323
Architecture: any
Depends: yate (= ${Source-Version}), ${shlibs:Depends}
Description: H.323 module for Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
This is the H.323 VoIP protocol module.
Package: yate-isdn
Architecture: any
Depends: yate (= ${Source-Version}), ${shlibs:Depends}
Description: ISDN PRI card and protocol drivers for Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
Yate drivers for ISDN PRI cards supported by the Zaptel or Wanpipe interface.
Package: yate-pgsql
Architecture: any
Depends: yate (= ${Source-Version}), ${shlibs:Depends}
Description: PostgreSQL module for Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
This is the module that interfaces to postgresql.
Package: yate-mysql
Architecture: any
Depends: yate (= ${Source-Version}), ${shlibs:Depends}
Description: MySQL module for Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
This is the module that interfaces to mysql.
Package: yate-gtk2
Architecture: any
Depends: yate (= ${Source-Version}), ${shlibs:Depends}
Description: Gtk2 client component of Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
This is the Gtk2 VoIP client based on the Yate architecture.
Package: yate-mozilla
Architecture: any
Depends: yate (= ${Source-Version}), ${shlibs:Depends}
Description: Mozilla embedding in Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
This module adds a Mozilla widget that can be embedded in a Yate client window.
Package: yate-dev
Architecture: any
Section: libdevel
Depends: yate (= ${Source-Version})
Description: Development files for Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
This package contains development libraries for Yate.
Package: yate-scripts
Architecture: all
Depends: yate (= ${Source-Version})
Description: External scripting package for Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
This package includes libraries for using external scripts with Yate.
Package: yate-doc
Section: doc
Architecture: all
Description: Documentation for Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
This package provides documentation for Yate.
Package: yate-all
Architecture: all
Depends: yate (= ${Source-Version}),yate-alsa,yate-gsm,yate-h323,yate-isdn,yate-mysql,yate-pgsql,yate-gtk2,yate-mozilla,yate-scripts,yate-dev,yate-doc
Description: Metapackage for Yate
Yate is a telephony engine aimed at creating a telephony server that
performs well enough to deal with PBX requirements and also flexible
enough for complex Gateway and IVR solutions.
.
This metapackage allows to fetch and install all Yate components at once.

28
debian/copyright vendored Normal file
View File

@ -0,0 +1,28 @@
This package was debianized by Kilian Krause <kk@verfaction.de> on
Sun, 26 Dec 2004 16:41:25 +0100.
It was downloaded from http://yate.null.ro/
Copyright: GPL with exceptions:
YATE's license is GPL with an exception for linking with OpenH323 and PWlib
(licensed under MPL).
Upstream Authors: Paul Chitescu <paulc@voip.null.ro>, Diana Cionoiu <diana@voip.null.ro>
License:
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
the Free Software Foundation; version 2 dated June, 1991.
This program 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, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.

1
debian/docs vendored Normal file
View File

@ -0,0 +1 @@
README

128
debian/rules vendored Executable file
View File

@ -0,0 +1,128 @@
#!/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
# 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
include /usr/share/dpatch/dpatch.make
# FOR AUTOCONF 2.52 AND NEWER ONLY
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
confflags += --build $(DEB_HOST_GNU_TYPE)
else
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
endif
config.status: patch-stamp configure
dh_testdir
#if [ ! -f config.sub.orig ];then \
# mv config.sub config.sub.orig; \
# ln -s /usr/share/misc/config.sub config.sub; \
#fi
#if [ ! -f config.guess.orig ];then \
# mv config.guess config.guess.orig; \
# ln -s /usr/share/misc/config.guess config.guess; \
#fi
# Add here commands to configure the package.
CFLAGS="$(CFLAGS)" ./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man \
--sysconfdir=/etc
build: build-stamp
build-stamp: config.status
dh_testdir
# Add here commands to compile the package.
$(MAKE)
#docbook-to-man debian/yate.sgml > yate.1
touch build-stamp
clean: clean-patched unpatch
clean-patched:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
-$(MAKE) clean distclean
rm -f config.status
#if [ -f config.sub.orig ];then \
# rm -f config.sub; \
# mv config.sub.orig config.sub; \
#fi
#if [ -f config.guess.orig ];then \
# rm -f config.guess; \
# mv config.guess.orig config.guess; \
#fi
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/yate.
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
# remove extra files
rm -f $(CURDIR)/debian/tmp/usr/share/doc/yate*/COPYING
rm -f $(CURDIR)/debian/tmp/usr/share/doc/yate*/ChangeLog
# Build architecture-independent files here.
binary-indep: install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples
dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
dh_installinit
# dh_installcron
# dh_installinfo
dh_installman yate.8 yate-config.8
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_python
dh_makeshlibs
dh_installdeb
dh_shlibdeps -Lyate -l debian/yate/usr/lib
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean clean-patched patch unpatch binary-indep binary-arch binary install

1
debian/yate-alsa.dirs vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/yate/modules

1
debian/yate-alsa.install vendored Normal file
View File

@ -0,0 +1 @@
debian/tmp/usr/lib/yate/modules/alsachan.yate

5
debian/yate-dev.dirs vendored Normal file
View File

@ -0,0 +1,5 @@
usr/include/yate
usr/lib
usr/lib/pkgconfig
usr/bin
usr/share/man/man8

5
debian/yate-dev.install vendored Normal file
View File

@ -0,0 +1,5 @@
debian/tmp/usr/include/*
debian/tmp/usr/lib/lib*.so
debian/tmp/usr/lib/pkgconfig/yate.pc
debian/tmp/usr/bin/yate-config
debian/tmp/usr/share/man/man8/yate-config.*

1
debian/yate-doc.dirs vendored Normal file
View File

@ -0,0 +1 @@
usr/share/doc/yate-doc

1
debian/yate-doc.install vendored Normal file
View File

@ -0,0 +1 @@
debian/tmp/usr/share/doc/yate*/* usr/share/doc/yate-doc

1
debian/yate-gsm.dirs vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/yate/modules

1
debian/yate-gsm.install vendored Normal file
View File

@ -0,0 +1 @@
debian/tmp/usr/lib/yate/modules/gsmcodec.yate

6
debian/yate-gtk2.dirs vendored Normal file
View File

@ -0,0 +1,6 @@
usr/bin
usr/lib/yate/modules/skin
usr/lib/yate/modules/help
usr/lib/menu
usr/share/applications
etc/yate

7
debian/yate-gtk2.install vendored Normal file
View File

@ -0,0 +1,7 @@
debian/tmp/usr/bin/yate-gtk2
debian/tmp/usr/lib/yate/modules/skin/*
debian/tmp/usr/lib/yate/modules/help/*
debian/tmp/usr/lib/menu/yate-gtk2.menu
debian/tmp/usr/share/applications/yate-gtk2.desktop
debian/tmp/etc/yate/yate-gtk2.conf
debian/tmp/etc/yate/providers.conf

2
debian/yate-h323.dirs vendored Normal file
View File

@ -0,0 +1,2 @@
usr/lib/yate/modules
etc/yate

2
debian/yate-h323.install vendored Normal file
View File

@ -0,0 +1,2 @@
debian/tmp/usr/lib/yate/modules/h323chan.yate
debian/tmp/etc/yate/h323chan.conf

2
debian/yate-isdn.dirs vendored Normal file
View File

@ -0,0 +1,2 @@
usr/lib/yate/modules
etc/yate

4
debian/yate-isdn.install vendored Normal file
View File

@ -0,0 +1,4 @@
debian/tmp/usr/lib/yate/modules/wpchan.yate
debian/tmp/usr/lib/yate/modules/zapchan.yate
debian/tmp/etc/yate/wpchan.conf
debian/tmp/etc/yate/zapchan.conf

1
debian/yate-mozilla.dirs vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/yate/modules/gtk2

1
debian/yate-mozilla.install vendored Normal file
View File

@ -0,0 +1 @@
debian/tmp/usr/lib/yate/modules/gtk2/gtk2mozilla.yate

2
debian/yate-mysql.dirs vendored Normal file
View File

@ -0,0 +1,2 @@
usr/lib/yate/modules
etc/yate

2
debian/yate-mysql.install vendored Normal file
View File

@ -0,0 +1,2 @@
debian/tmp/usr/lib/yate/modules/mysqldb.yate
debian/tmp/etc/yate/mysqldb.conf

2
debian/yate-pgsql.dirs vendored Normal file
View File

@ -0,0 +1,2 @@
usr/lib/yate/modules
etc/yate

2
debian/yate-pgsql.install vendored Normal file
View File

@ -0,0 +1,2 @@
debian/tmp/usr/lib/yate/modules/pgsqldb.yate
debian/tmp/etc/yate/pgsqldb.conf

1
debian/yate-scripts.dirs vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/yate/scripts

1
debian/yate-scripts.install vendored Normal file
View File

@ -0,0 +1 @@
debian/tmp/usr/lib/yate/scripts/*

12
debian/yate.default vendored Normal file
View File

@ -0,0 +1,12 @@
# Defaults for yate initscript
# sourced by /etc/init.d/yate
# make this read NO_START=0 when you're done setting up your config.
NO_START=1
# Additional options that are passed to the Daemon.
DAEMON_OPTS="-ds -p $PIDFILE -l /var/log/yate"
YATE_USER="yate"
YATE_GROUP="yate"
# you might want to put more or less verbosity here...
DAEMON_OPTS="$DAEMON_OPTS -vvv"

65
debian/yate.init vendored Normal file
View File

@ -0,0 +1,65 @@
#! /bin/sh
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Modified for yate by Radu Spineanu <radu@timisoara.roedu.net>.
# and Kilian Krause <kk@verfaction.de>
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/yate
NAME=yate
DESC=yate
PIDFILE=/var/run/$NAME.pid
test -x $DAEMON || exit 0
# Include yate defaults if available
if [ -f /etc/default/yate ] ; then
. /etc/default/yate
fi
if [ "$NO_START" = "1" ];then
echo Yate Daemon not setup for automagic start. Edit /etc/default/yate to change this.
exit 0
fi
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--user $YATE_USER --group $YATE_GROUP \
--exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile $PIDFILE --oknodo --exec $DAEMON
echo "$NAME."
;;
reload)
echo "Reloading $DESC module files."
start-stop-daemon --stop --signal HUP --quiet --pidfile $PIDFILE --exec $DAEMON
;;
restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
sleep 1
#so yate won't load the client modules
unset DISPLAY
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--user $YATE_USER --group $YATE_GROUP \
--exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac
exit 0

34
debian/yate.postinst vendored Normal file
View File

@ -0,0 +1,34 @@
#!/bin/sh
set -e
if [ "$1" = "configure" ]; then
if [ "$2" = "" ];then
. /etc/default/yate
echo "Creating/updating yate user account and group..."
addgroup --system $YATE_GROUP || {
# addgroup failed. Why?
if ! getent group $YATE_GROUP >/dev/null ; then
echo "Could not create system group $YATE_GROUP." >&2
exit 1
fi
# well, the group is there, so just ignore the error
}
adduser --system --ingroup $YATE_GROUP --home /var/lib/yate \
--gecos "YATE daemon" --shell /bin/sh \
--disabled-password $YATE_USER || {
# adduser failed. Why?
if getent passwd $YATE_USER >/dev/null ; then
echo "Non-system user $YATE_USER found. I will not overwrite a non-system" >&2
echo "user. Remove the user and reinstall yate." >&2
exit 1
fi
# unknown adduser error, simply exit
exit 1
}
mkdir -p /var/lib/yate
chown -R $YATE_USER.$YATE_GROUP /var/lib/yate
fi
fi
#DEBHELPER#

13
debian/yate.postrm vendored Normal file
View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
if [ "$1" = "remove" ]; then
if [ "$2" = "purge" ];then
. /etc/default/yate
deluser --quiet --system $YATE_USER
delgroup --quiet $YATE_GROUP
fi
fi
#DEBHELPER#