initial checkin of debian specific files, created/maintained by Achim Bohnet

git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@59 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
gernot 2003-03-21 23:34:26 +00:00
parent aa76c2b64b
commit 712c245207
10 changed files with 347 additions and 0 deletions

39
debian/README.Debian vendored Normal file
View File

@ -0,0 +1,39 @@
capisuite for Debian
--------------------
That's my first non trivial package. If violations to the debian-policy
are found please let me know.
Using capisuite on Debian
-------------------------
o I'll assume that you'll have a working CAPI capable card
o configure files in /etc/init.d/capisuite to your needs
o set run_capisuite_daemon in /etc/default/capisuite to 'y'
now capisuite daemon will be start/stop on boot/shutdown,
respectively.
ISDN PCMCIA card users
----------------------
For PCMCIA cards it makes more sense to not start capisuite always
on boot but let the cardmgr start and stop capisuite when the card
is inserted/removed:
o install pcmcia-cs pkg that contains the cardmgr daemon
o remove boot/shutdown scripts
update-rc.d -f capisuite remove
o insert the card into the PCMCIA slot
o check new the cardmgr entries at the end of
/var/log/daemon.log
to find out what script in /etc/pcmcia cardmgr call on insertion
o add /etc/init.d/capisuite start|stop to end|start of the the
start)|stop) branches in the /etc/pcmcia/ script
-- Achim Bohnet <ach@mpe.mpg.de>, Mon, 19 Mar 2003 19:28:23 +0100

12
debian/TODO.Debian vendored Normal file
View File

@ -0,0 +1,12 @@
TODO (high to low IMHO)
o fix perms of installed dirs
o split manpages out of manual.sgml
o logrotate log files
o add cronjob for cleanup fax/voice msg
o split manual into capisuite-doc
o Try to build on Debian unstable
o limit arch to i386 just as libcapi20 does
__END__

34
debian/changelog vendored Normal file
View File

@ -0,0 +1,34 @@
capisuite (0.4.1-0) unstable; urgency=low
* remove gcc-2.95 patch. Fixed upstream
-- Gernot Hillier <gernot@hillier.de> Sat, 22 Mar 2003 00:31:05 +0100
capisuite (0.4.1-0) unstable; urgency=low
* new upstream release
* remove fix-interpreter patch. Fixed upstream
* remove conffiles entries. Looks like one of the dh_*
marks everything below /etc as a conf file automaticly
-- Achim Bohnet <ach@mpe.mpg.de> Thu, 20 Mar 2003 21:12:02 +0100
capisuite (0.4-0cvs20030320.1) unstable; urgency=low
* update from cvs: better config checks and config error msg
* added TODO.Debian
* removed DESTDIR patch. Fix upstream
-- Achim Bohnet <ach@mpe.mpg.de> Thu, 20 Mar 2003 12:53:35 +0100
capisuite (0.4-0cvs20030319.1) unstable; urgency=low
* Initial Release.
* cvs update upto 19 Mar 2003
* added init.d script (S21, K19)
* patch: upstream gcc-2.95.diff
* patch DESTDIR fix (send upstream)
* patch: capicuitefax interpreter python -> python2.2
-- Achim Bohnet <ach@mpe.mpg.de> Mon, 19 Mar 2003 21:37:06 +0100

19
debian/control vendored Normal file
View File

@ -0,0 +1,19 @@
Source: capisuite
Section: comm
Priority: optional
Maintainer: Achim Bohnet <ach@mpe.mpg.de>
Build-Depends: debhelper (>> 3.0.0), python2.2-dev
Standards-Version: 3.5.2
Package: capisuite
Architecture: any
Depends: ${shlibs:Depends}, sfftobmp, gs, exim | mail-transport-agent
Suggests: sffview
Description: easy fax and voice box solution for ISDN/CAPI capable devices
In the default setup CapiSuite provides a fax and voice box solution for
multi users.
.
Further CapiSuite tries to give the user the ability to code his own ISDN
applications without having to fiddle around with all the dirty
programming details like callback functions, data buffers, protocol
settings and so on.

10
debian/copyright vendored Normal file
View File

@ -0,0 +1,10 @@
This package was debianized by Achim Bohnet <ach@mpe.mpg.de> on
Mon, 10 Mar 2003 21:37:06 +0100.
It was downloaded from http://www.capisuite.de/
Upstream Author(s): Gernot Hillier <gernot@hillier.de>
Copyright:
GPL see /usr/share/doc/common-licenses/GPL

10
debian/dirs vendored Normal file
View File

@ -0,0 +1,10 @@
usr/bin
usr/sbin
etc/capisuite
etc/default
var/log
var/spool/capisuite/done
var/spool/capisuite/sendq
var/spool/capisuite/failed
var/spool/capisuite/users
var/spool/capisuite

4
debian/docs vendored Normal file
View File

@ -0,0 +1,4 @@
NEWS
README
TODO
debian/TODO.Debian

6
debian/etc-default vendored Normal file
View File

@ -0,0 +1,6 @@
# run_capisuite_daemon:
# set 'y' to activate the boot/shutdown script
# /etc/init.d/capisuite (Don't forget to
# configure the files in /etc/capisuite/
#
run_capisuite_daemon=n

84
debian/init.d vendored Normal file
View File

@ -0,0 +1,84 @@
#! /bin/sh
#
# Script to start/stop capisuite daemon during boot/shutdown or from
# cardmgr via script from a /etc/pcmcia/<script>
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Modified for capisuite package
# by Achim Bohnet <ach@mpe.mpg.de>
#
# Version: @(#)skeleton 1.8 03-Mar-1998 miquels@cistron.nl
#
# This file was automatically customized by dh-make on Mon, 10 Mar 2003 21:37:06 +0100
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/capisuite
NAME=capisuite
DESC="capisuite daemon"
test -f $DAEMON || exit 0
test -f /etc/default/capisuite || exit 0
run_capisuite_daemon=n
. /etc/default/capisuite
if [ "y" != "$run_capisuite_daemon" ]; then
echo "
/etc/init.d/capisuite: To use the fax and/or voice box services of capisuite
configure files in '/etc/capisuite/'. Then set
'run_capisuite_daemon' to 'y' in /etc/default/capisuite.
"
fi
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/$NAME.pid \
--exec $DAEMON
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
rm -f /var/run/$NAME.pid
echo "$NAME."
;;
#reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
#;;
restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: "
start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/$NAME.pid \
--exec $DAEMON
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0

129
debian/rules vendored Normal file
View File

@ -0,0 +1,129 @@
#!/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=3
# 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)
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
config.status: configure
dh_testdir
# Apply Debian specific patches
#if test ! -f patch-stamp; then \
# for patch in $(CURDIR)/debian/patches/*.diff ;\
# do \
# echo APPLYING PATCH\: ${patch##*/};\
# patch -p1 < $$patch ;\
# done ;\
# touch patch-stamp ;\
#fi
# Add here commands to configure the package.
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--sysconfdir=/etc \
--localstatedir=/var
build: build-stamp
build-stamp: config.status
dh_testdir
# Add here commands to compile the package.
$(MAKE)
#/usr/bin/docbook-to-man debian/capisuite.sgml > capisuite.1
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Remove Debian specific patches
#if test -f patch-stamp; then \
# for patch in $(CURDIR)/debian/patches/*.diff ;\
# do \
# echo REMOVING PATCH\: ${patch##*/};\
# patch -p1 -R < $$patch ;\
# done ;\
# rm -f patch-stamp ;\
#fi
# Add here commands to clean up after the build process.
-$(MAKE) distclean
-test -r /usr/share/misc/config.sub && \
cp -f /usr/share/misc/config.sub config.sub
-test -r /usr/share/misc/config.guess && \
cp -f /usr/share/misc/config.guess config.guess
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/capisuite.
$(MAKE) install DESTDIR=$(CURDIR)/debian/capisuite
cp -p debian/etc-default $(CURDIR)/debian/capisuite/etc/default/capisuite
# 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_installdebconf
dh_installdocs
# dh_installexamples
# dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
dh_installinit --update-rcd-params="defaults 21 19"
# dh_installcron
# dh_installman
# dh_installinfo
dh_undocumented capisuitefax.1 capisuite.8
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install