First import of debian subdir
This adds the necessary stuff to just do a dpkg-buildpackage in the source directory and get a debian package. Todo: - Get rid of the configure_warning patch
This commit is contained in:
parent
3e58475463
commit
dc3f19ab84
|
@ -0,0 +1,2 @@
|
|||
This package uses the quilt patch system. See
|
||||
/usr/share/doc/quilt/README.source for further information
|
|
@ -0,0 +1,8 @@
|
|||
* Add manpages for:
|
||||
- usr/sbin/genextension ( first draft already done debian/genextension.8 )
|
||||
- usr/bin/gentones ( debian/gentones.1 )
|
||||
- usr/bin/genwave
|
||||
- usr/sbin/lcr
|
||||
- usr/bin/lcradmin ( debian.lcradmin.1)
|
||||
|
||||
* Check udev rules for permissions of /dev/mISDNtimer
|
|
@ -0,0 +1,77 @@
|
|||
lcr (1.6~20090906-1) UNRELEASED; urgency=low
|
||||
|
||||
[ Joerg Dorchain ]
|
||||
* New upstream version
|
||||
* debian/control:
|
||||
- update debian policy 3.8.3
|
||||
* Added link to /usr/share/doc/quilt/README.source
|
||||
* refreshed patches
|
||||
* Integrated in upstream source
|
||||
|
||||
-- Joerg Dorchain <joerg@dorchain.net> Mon, 7 Sep 2009 11:00:00 +0200
|
||||
|
||||
lcr (1.5~20090615-1) UNRELEASED; urgency=low
|
||||
|
||||
[ Victor Seva ]
|
||||
* New upstream update
|
||||
* debian/patches:
|
||||
- removed lcr_as_vbox.patch, chan_lcr_compiles_asterisk_1.6-2.patch,
|
||||
pid.patch, chan_lcr_compiles_asterisk_1.6-git.patch,
|
||||
chan_lcr_dtmf.patch ( applied upstream )
|
||||
- refresh configure_warning, replace_local.patch
|
||||
|
||||
[ Joerg Dorchain ]
|
||||
* Bump standards to 3.8.1. No changes necessary
|
||||
* init script depends on lsb-base (>= 3.0-6)
|
||||
* logdir needs to be set in Makefile.am
|
||||
|
||||
-- Victor Seva <linuxmaniac@torreviejawireless.org> Fri, 19 Jun 2009 16:23:02 +0200
|
||||
|
||||
lcr (1.3~20090107-1) unstable; urgency=low
|
||||
|
||||
[ Joerg Dorchain ]
|
||||
* Initial release (Closes: #510476) ITP
|
||||
* New upstream version
|
||||
* Added initscripts
|
||||
* debian/control:
|
||||
- Added Vcs-Svn, Vcs-Browser fields
|
||||
- Changed Maintainer, Added Uploaders field
|
||||
* debian/rules:
|
||||
- slightly more fault-tolerant for get-orig-source
|
||||
* debian:
|
||||
- Set mergeWithUpstream property
|
||||
* debian/patches:
|
||||
- chan_lcr_compiles_asterisk_1.6-2.patch
|
||||
- chan_lcr_compiles_asterisk_1.6-git.patch
|
||||
* Fix build with asterisk-1.6
|
||||
* Bump standards to 3.8.0. Changes done by Victor and me
|
||||
* Fix some lintian errors
|
||||
|
||||
[ Victor Seva ]
|
||||
* Remove all debian/*.ex debian/*.EX files. Just examples.
|
||||
* debian/rules:
|
||||
- added some variables to handle versioning.
|
||||
- added get-orig-source.
|
||||
- remove patch/unpatch rules. Added quilt.make reference.
|
||||
- remoce some redundant rule dependences.
|
||||
* Changed the upstream version ( 0.0.DATE -> 1.3~DATE ).
|
||||
Seems that they are using that versioning style.
|
||||
* Added debian/watch.
|
||||
* debian/patches:
|
||||
- configure_warning ( remove warnings )
|
||||
* debian/control:
|
||||
- add myself as an Uploaders.
|
||||
* debian/docs:
|
||||
Fix lintian errors:
|
||||
- W: lcr: extra-license-file usr/share/doc/lcr/COPYING
|
||||
- W: lcr: package-contains-upstream-install-documentation
|
||||
usr/share/doc/lcr/INSTALL.gz
|
||||
- W: lcr: extra-license-file usr/share/doc/lcr/LICENSE.gz
|
||||
- W: lcr: zero-byte-file-in-doc-directory usr/share/doc/lcr/changelog.gz
|
||||
Deleted COPYING INSTALL LICENCE ChangeLog files.
|
||||
* debian/copyright:
|
||||
- add proper copyright description.
|
||||
* debian/lcr.default
|
||||
- don't run lcr by default.
|
||||
|
||||
-- Joerg Dorchain <joerg@dorchain.net> Fri, 26 Dec 2008 11:46:23 +0100
|
|
@ -0,0 +1 @@
|
|||
7
|
|
@ -0,0 +1,24 @@
|
|||
Source: lcr
|
||||
Section: comm
|
||||
Priority: extra
|
||||
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
|
||||
Uploaders: Joerg Dorchain <joerg@dorchain.net>, Victor Seva <linuxmaniac@torreviejawireless.org>
|
||||
Build-Depends: debhelper (>= 7), autotools-dev, libmisdnv2user-dev, asterisk-dev, libncurses-dev, automake1.9, quilt
|
||||
Standards-Version: 3.8.3
|
||||
Homepage: http://isdn.eversberg.eu/download/lcr-1.3/
|
||||
Vcs-Svn: svn://svn.debian.org/pkg-voip/lcr/trunk
|
||||
Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/lcr/?op=log
|
||||
|
||||
Package: lcr
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-6)
|
||||
Suggests: asterisk
|
||||
Description: LinuxCallRouter - an ISDN based PBX for Linux
|
||||
Formerly known as "PBX4Linux", Linux-Call-Router is not only a router,
|
||||
it is a real ISDN PBX which interconnects ISDN telephones and ISDN lines.
|
||||
It is possible to connect telephones to a Linux box. It is a pure software
|
||||
solution except for the ISDN cards and telephones. The great benefit is
|
||||
the NT-mode that allows to connect telephones to an ISDN card. Special
|
||||
cards are needed and a little bit of different cabeling. It supports lots
|
||||
of features, that only expensive PBXs have. It include a channel driver
|
||||
that can link LCR to Asterisk PBX.
|
|
@ -0,0 +1,37 @@
|
|||
This package was debianized by Joerg Dorchain <joerg@dorchain.net> on
|
||||
Fri, 26 Dec 2008 11:46:23 +0100.
|
||||
|
||||
It is now maintained by the Debian VoIP Team
|
||||
<pkg-voip-maintainers@lists.alioth.debian.org>
|
||||
|
||||
It was downloaded from http://isdn.eversberg.eu/download/lcr-1.3/
|
||||
|
||||
Upstream Author:
|
||||
|
||||
Andreas Eversberg <jolly@eversberg.eu>
|
||||
|
||||
Copyright:
|
||||
|
||||
Copyright (C) 2008 Andreas Eversberg
|
||||
|
||||
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; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
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 systems, you find a copy at '/usr/share/common-licenses/GPL-2'
|
||||
|
||||
The Debian packaging is (C) 2008, Joerg Dorchain <joerg@dorchain.net> and
|
||||
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
|
||||
|
|
@ -0,0 +1 @@
|
|||
/var/log/lcr
|
|
@ -0,0 +1,4 @@
|
|||
NEWS
|
||||
README
|
||||
message.txt
|
||||
todo.txt
|
|
@ -0,0 +1,32 @@
|
|||
.TH GENEXTENSION 8
|
||||
.SH NAME
|
||||
genextension \- Linux Call Route extension generator
|
||||
.SH SYNOPSIS
|
||||
genextension EXTENSION INTERFACES CALLERID
|
||||
.SH DESCRIPTION
|
||||
Extensions can be easily created by using the "genextension" command.
|
||||
After executing the command the extension will be created at "/usr/share/lcr/extensions/EXTENSION/".
|
||||
.SS EXTENSION
|
||||
Extension number.
|
||||
.br
|
||||
Any number for the extension (e.g 200)
|
||||
.SS INTERFACES
|
||||
Extension’s interface to be used for calls to the extension.
|
||||
.br
|
||||
"Int" would send a call to the internal interface as defined in "/etc/lcr/interface.conf".
|
||||
If calls should ring on more then one port, they must be separated by commas without spaces.
|
||||
Internal ports must be defined in "/etc/lcr/options.conf"
|
||||
.br
|
||||
Internal interface(s) to reach extension, NOT port numbers -> seperate multiple
|
||||
interfaces with commas without spaces. (e.g Int1,Int2)
|
||||
.SS CALLERID
|
||||
Caller ID to be used, whenever the extension makes a call (to external line).
|
||||
The type of caller ID is "undefined", that is the standard type for normal
|
||||
external ISDN lines. If the external ISDN line has the "CLIP No Screening"
|
||||
feature, it must be given with type "subscriber", "national" or "international".
|
||||
.SH SEE ALSO
|
||||
http://www.linux-call-router.de/doc.html
|
||||
.SH AUTHOR
|
||||
This minimal man page was written by Victor Seva <linuxmaniac@torreviejawireless.org>
|
||||
.br
|
||||
from documentation created by Andreas Eversberg <jolly@eversberg.eu>
|
|
@ -0,0 +1,53 @@
|
|||
.TH GENTONES 1
|
||||
.SH NAME
|
||||
gentones \- generates tones
|
||||
.SH SYNOPSIS
|
||||
gentone wave2alaw <wav file> <alaw file>
|
||||
.br
|
||||
gentone wave2ulaw <wav file> <ulaw file>
|
||||
.br
|
||||
gentone tone2alaw <frq1> <frq2> <length> <fade in> <fade out> <alaw file>
|
||||
.br
|
||||
gentone tone2ulaw <frq1> <frq2> <length> <fade in> <fade out> <ulaw file>
|
||||
.SH DESCRIPTION
|
||||
Length and fade lengths must be given in samples (8000 samples are one second).
|
||||
Tones will append to existing files, wav files don't.
|
||||
Frequencies may be given as floating point values.
|
||||
.br
|
||||
It can be used, to generate law encoded tones with one or two frequencies.
|
||||
This is mainly used to create patterns, like dial tones, busy tone and other audio
|
||||
patterns. Depending on your telephone system, you need to use "tones2alaw" or "tones2ulaw".
|
||||
There are two frequencies to specify "frq1" and "frq2". If only one frequency should be
|
||||
used, enter 0 for "frq2". The "length" specifies the total length of the tone in samples. 8000
|
||||
samples are one second. 2000 samples are 1/4 of a second. "fade in" and "fade out" is used to
|
||||
make the start and stop of the tone soft. If "fade in" is 800, the sound will fade in
|
||||
within 1/10 of a second.
|
||||
This makes tones very smooth and avoids the ‘click’ sound at the beginning.
|
||||
"fade out" respectively. Whatever specified for "fade in" and "fade out", the tone will
|
||||
be as long as given at "length". If you don’t want to use fades, set "frq1" and "frq2" to
|
||||
"0". I suggest at least 50 sample for fade to silence.
|
||||
.br
|
||||
The given file will be appended to "alaw file" or "ulaw file". If you like
|
||||
to create a new one, but the name still exist, delete the file and then start creating it. This
|
||||
is useful to create a sample with more than one tone. Example: A busy tone normally is made out of
|
||||
1/2 second of a tone, and one 1/2 second of silence. To add silence, just enter 0 for "frq1"
|
||||
and "frq2".
|
||||
.br
|
||||
It is also possible to convert a wave file to a-law or mu-law. The wave file
|
||||
must have a sampling rate of 8000. It doesn’t matte what bit-resolution or how many
|
||||
channels it has (stereo or mono). The sampling rate will not be converted, so it must be
|
||||
8000 samples/second. The resolution should be 16 bits for best quality. a-law and
|
||||
mu-law have better resolution than 8 bits. The data of a-law and mu-law is 8 bits
|
||||
sample, but since it is quantised, the quality will be 12 bits. 12 bits sounds almost as good as 16
|
||||
bits. Wave files are only available with 8 or 16 bits resolution.
|
||||
.br
|
||||
The use of a-law or mu-law files, result in a faster processing, since the
|
||||
samples must not be converted into a-law or mu-law for ISDN use. ISDN uses only a-law or mu-law
|
||||
samples.
|
||||
.SH SEE ALSO
|
||||
http://www.linux-call-router.de/doc.html
|
||||
.SH AUTHOR
|
||||
This minimal man page was written by Victor Seva
|
||||
<linuxmaniac@torreviejawireless.org>
|
||||
.br
|
||||
from documentation created by Andreas Eversberg <jolly@eversberg.eu>
|
|
@ -0,0 +1,7 @@
|
|||
# This file allows you to alter the configuration of the lcr
|
||||
# init.d script. Normally you should leave the file as-is.
|
||||
#
|
||||
# RUNLCR: If set to anything other that 'yes', the lcr init.d script
|
||||
# will not run. The default is 'yes'.
|
||||
RUNLCR=no
|
||||
|
|
@ -0,0 +1,203 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# lcr start the lcr isdn PBX
|
||||
# (c) Joerg Dorchain <joerg@dorchain.net>
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# Based on:
|
||||
#
|
||||
# skeleton example file to build /etc/init.d/ scripts.
|
||||
# This file should be used to construct scripts for
|
||||
# /etc/init.d.
|
||||
#
|
||||
# Written by Miquel van Smoorenburg
|
||||
# <miquels@cistron.nl>.
|
||||
# Modified for Debian GNU/Linux
|
||||
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
|
||||
#
|
||||
# Version: @(#)skeleton 1.9 26-Feb-2001
|
||||
# miquels@cistron.nl
|
||||
#
|
||||
|
||||
### BEGIN INIT INFO
|
||||
# Provides: lcr
|
||||
# Required-Start: $remote_fs
|
||||
# Required-Stop: $remote_fs
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: lcr PBX
|
||||
# Description: Controls the Linux Call Router ISDN PBX
|
||||
### END INIT INFO
|
||||
|
||||
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
DESC="lcr PBX"
|
||||
NAME=lcr
|
||||
DAEMON=/usr/sbin/$NAME
|
||||
DAEMON_ARGS="fork"
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
|
||||
RUNLCR=yes
|
||||
|
||||
# Exit if the package is not installed
|
||||
[ -x "$DAEMON" ] || exit 0
|
||||
|
||||
# Read configuration variable file if it is present
|
||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||
|
||||
if [ "$RUNLCR" != "yes" ];then
|
||||
echo "lcr not yet configured. Edit /etc/default/lcr first."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Load the VERBOSE setting and other rcS variables
|
||||
. /lib/init/vars.sh
|
||||
|
||||
# Define LSB log_* functions.
|
||||
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
status() {
|
||||
plist=`ps ax | awk "{ if (\\$5 == \"$DAEMON\") print \\$1
|
||||
}"`
|
||||
if [ "$plist" = "" ]; then
|
||||
echo "$DESC is stopped"
|
||||
return 1
|
||||
else
|
||||
echo "$DESC is running: $plist"
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Function that starts the daemon/service
|
||||
#
|
||||
do_start()
|
||||
{
|
||||
# Return
|
||||
# 0 if daemon has been started
|
||||
# 1 if daemon was already running
|
||||
# 2 if daemon could not be started
|
||||
if status > /dev/null; then
|
||||
echo "$DESC is already running. Use restart."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|
||||
|| return 1
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
|
||||
$DAEMON_ARGS \
|
||||
|| return 2
|
||||
# Add code here, if necessary, that waits for the process to be ready
|
||||
# to handle requests from services started subsequently which depend
|
||||
# on this one. As a last resort, sleep for some time.
|
||||
}
|
||||
|
||||
#
|
||||
# Function that stops the daemon/service
|
||||
#
|
||||
do_stop()
|
||||
{
|
||||
# Return
|
||||
# 0 if daemon has been stopped
|
||||
# 1 if daemon was already stopped
|
||||
# 2 if daemon could not be stopped
|
||||
# other if a failure occurred
|
||||
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
|
||||
RETVAL="$?"
|
||||
[ "$RETVAL" = 2 ] && return 2
|
||||
# Wait for children to finish too if this is a daemon that forks
|
||||
# and if the daemon is only ever run from this initscript.
|
||||
# If the above conditions are not satisfied then add some other code
|
||||
# that waits for the process to drop all resources that could be
|
||||
# needed by services started subsequently. A last resort is to
|
||||
# sleep for some time.
|
||||
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
|
||||
[ "$?" = 2 ] && return 2
|
||||
# Many daemons don't delete their pidfiles when they exit.
|
||||
rm -f $PIDFILE
|
||||
return "$RETVAL"
|
||||
}
|
||||
|
||||
#
|
||||
# Function that sends a SIGHUP to the daemon/service
|
||||
#
|
||||
do_reload() {
|
||||
#
|
||||
# If the daemon can reload its configuration without
|
||||
# restarting (for example, when it is sent a SIGHUP),
|
||||
# then implement that here.
|
||||
#
|
||||
#start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
|
||||
lcradmin route
|
||||
lcradmin interface
|
||||
return 0
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
|
||||
do_start
|
||||
case "$?" in
|
||||
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
|
||||
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
stop)
|
||||
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
|
||||
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
reload)
|
||||
#
|
||||
# If do_reload() is not implemented then leave this commented out
|
||||
# and leave 'force-reload' as an alias for 'restart'.
|
||||
#
|
||||
log_daemon_msg "Reloading $DESC" "$NAME"
|
||||
do_reload
|
||||
log_end_msg $?
|
||||
;;
|
||||
status)
|
||||
status
|
||||
;;
|
||||
restart|force-reload)
|
||||
#
|
||||
# If the "reload" option is implemented then remove the
|
||||
# 'force-reload' alias
|
||||
#
|
||||
log_daemon_msg "Restarting $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1)
|
||||
do_start
|
||||
case "$?" in
|
||||
0) log_end_msg 0 ;;
|
||||
1) log_end_msg 1 ;; # Old process is still running
|
||||
*) log_end_msg 1 ;; # Failed to start
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
# Failed to stop
|
||||
log_end_msg 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
|
||||
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
|
||||
:
|
|
@ -0,0 +1,9 @@
|
|||
/var/log/lcr/log {
|
||||
weekly
|
||||
missingok
|
||||
rotate 8
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
# No signalling necessary, lcr does not keep logiles open
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
debian/genextension.8
|
||||
debian/gentones.1
|
||||
debian/lcradmin.1
|
|
@ -0,0 +1,49 @@
|
|||
.TH GENTONES 1
|
||||
.SH NAME
|
||||
lcradmin \- view and modify the state of a running lcr
|
||||
.SH SYNOPSIS
|
||||
lcradmin state
|
||||
.br
|
||||
lcradmin route
|
||||
.br
|
||||
lcradmin interface
|
||||
.br
|
||||
lcradmin block <port number>
|
||||
.br
|
||||
lcradmin unload <port number>
|
||||
.br
|
||||
lcradmin unload <port number>
|
||||
.br
|
||||
lcradmin release <endpoint id>
|
||||
.SH DESCRIPTION
|
||||
.SS lcradmin state
|
||||
starts lcradmin in interactive mode. You will see
|
||||
a screen with the current calls and a list of keys for possible
|
||||
options.
|
||||
.SS lcradmin route
|
||||
makes lcr reload the routing.conf
|
||||
.SS lcradmin interface
|
||||
makes lcr reload the interface.conf
|
||||
.SS lcradmin block
|
||||
makes lcr block the specified port for further
|
||||
incoming and outgoing calls.
|
||||
.SS lcradmin unblock
|
||||
unblocks the port again
|
||||
.SS lcradmin unload
|
||||
makes lcr cease using the specified port. The port
|
||||
the be used by a different application, or to unload the mISDN
|
||||
driver. To load the port again, use lcradmin unblock as described above,
|
||||
or use lcradmin interface to reload all interfaces.
|
||||
.SS lcradmin release
|
||||
makes lcr release a pending call. The endpoint ID
|
||||
is shown in the status screen, as well as in the log, starting
|
||||
with "EP(<ID>)". This can be useful, if two members are joined
|
||||
in a conference, but they don't or even can't hang up for some
|
||||
reason. Also lost parked calls can be released.
|
||||
.SH SEE ALSO
|
||||
http://www.linux-call-router.de/doc.html
|
||||
.SH AUTHOR
|
||||
This minimal man page was written by Joerg Dorchain
|
||||
<joerg@dorchain.net>
|
||||
.br
|
||||
from documentation created by Andreas Eversberg <jolly@eversberg.eu>
|
|
@ -0,0 +1,19 @@
|
|||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -25,13 +25,13 @@ dnl This keeps being the first instructi
|
||||
dnl Change the 2nd argument if the version increases
|
||||
dnl 1st + 2nd argument is used for distribution package name
|
||||
AC_INIT(lcr, 1.6, andreas@eversberg.eu)
|
||||
-AC_PREREQ(2.59)
|
||||
+AC_PREREQ(2.60)
|
||||
AC_CONFIG_SRCDIR([main.c])
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
# fix warnings from autoconf + automake
|
||||
-AC_GNU_SOURCE
|
||||
-# AC_USE_SYSTEM_EXTENSIONS
|
||||
+#AC_GNU_SOURCE
|
||||
+AC_USE_SYSTEM_EXTENSIONS
|
||||
AM_INIT_AUTOMAKE(lcr,1.6)
|
||||
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
Author: <joerg@dorchain.net>
|
||||
Description: Replace all occurences of local in pathnames
|
||||
Index: lcr-1.6~20090906/Makefile.am
|
||||
===================================================================
|
||||
--- lcr-1.6~20090906.orig/Makefile.am 2009-09-07 13:35:03.834457538 +0200
|
||||
+++ lcr-1.6~20090906/Makefile.am 2009-09-07 13:36:12.292950699 +0200
|
||||
@@ -20,19 +20,19 @@
|
||||
## the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
## Boston, MA 02110-1301, USA.
|
||||
|
||||
-INSTALLdir = $(DESTDIR)/usr/local/lcr
|
||||
+INSTALLdir = $(DESTDIR)/usr/share/lcr
|
||||
|
||||
pkglogdir=$(localstatedir)/log/@PACKAGE@
|
||||
-pkgsysconfdir=$(sysconfdir)/@PACKAGE@
|
||||
+pkgsysconfdir=/etc/@PACKAGE@
|
||||
|
||||
-#CONFIGdir=$(DESTDIR)$(pkgsysconfdir)
|
||||
+CONFIGdir=$(DESTDIR)$(pkgsysconfdir)
|
||||
#SHAREdir=$(DESTDIR)$(pkgdatadir)
|
||||
-#LOGdir=$(DESTDIR)$(pkglogdir)
|
||||
+LOGdir=$(DESTDIR)$(pkglogdir)
|
||||
#EXTENSIONdir=$(DESTDIR)$(localstatedir)/lib/lcr
|
||||
|
||||
-CONFIGdir=$(INSTALLdir)
|
||||
+#CONFIGdir=$(INSTALLdir)
|
||||
SHAREdir=$(INSTALLdir)
|
||||
-LOGdir=$(INSTALLdir)
|
||||
+#LOGdir=$(INSTALLdir)
|
||||
EXTENSIONdir=$(INSTALLdir)/extensions
|
||||
|
||||
astmoddir = $(DESTDIR)/usr/lib/asterisk/modules
|
||||
Index: lcr-1.6~20090906/genrc.c
|
||||
===================================================================
|
||||
--- lcr-1.6~20090906.orig/genrc.c 2009-09-07 13:35:03.878459355 +0200
|
||||
+++ lcr-1.6~20090906/genrc.c 2009-09-07 13:36:12.292950699 +0200
|
||||
@@ -80,12 +80,12 @@
|
||||
|
||||
n = i;
|
||||
|
||||
- printf("\nWhere do you like to load the modules from, enter 0 for default, 1 for\n'/usr/local/lcr/modules/' or the full path.\n[0 | 1 | <path>]: "); fflush(stdout);
|
||||
+ printf("\nWhere do you like to load the modules from, enter 0 for default, 1 for\n'/usr/lib/lcr/modules/' or the full path.\n[0 | 1 | <path>]: "); fflush(stdout);
|
||||
scanf("%s", input);
|
||||
if (!strcmp(input, "0"))
|
||||
SCPY(input, "");
|
||||
if (!strcmp(input, "1"))
|
||||
- SCPY(input, "/usr/local/lcr/modules");
|
||||
+ SCPY(input, "/usr/lib/lcr/modules");
|
||||
if (input[0]) if (input[strlen(input)-1] != '/')
|
||||
SCAT(input, "/");
|
||||
|
||||
Index: lcr-1.6~20090906/options.c
|
||||
===================================================================
|
||||
--- lcr-1.6~20090906.orig/options.c 2009-09-07 13:35:03.898459331 +0200
|
||||
+++ lcr-1.6~20090906/options.c 2009-09-07 13:36:12.296951419 +0200
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "options.h"
|
||||
|
||||
struct options options = {
|
||||
- "/usr/local/lcr/log", /* log file */
|
||||
+ "/var/log/lcr/log", /* log file */
|
||||
0x0000, /* debug mode */
|
||||
'a', /* a-law */
|
||||
"0", /* national prefix */
|
||||
Index: lcr-1.6~20090906/default/options.conf
|
||||
===================================================================
|
||||
--- lcr-1.6~20090906.orig/default/options.conf 2009-09-07 13:35:03.858458743 +0200
|
||||
+++ lcr-1.6~20090906/default/options.conf 2009-09-07 13:36:12.296951419 +0200
|
||||
@@ -24,8 +24,8 @@
|
||||
|
||||
# The log file can be used to track actions by the LCR. Omit the parameter
|
||||
# to turn off log file. By default, log file is located inside the directory
|
||||
-# "/usr/local/lcr/log".
|
||||
-#log /usr/local/lcr/log
|
||||
+# "/var/log/lcr/log".
|
||||
+#log /var/log/lcr/log
|
||||
|
||||
# Use "alaw" (default) or "ulaw" samples.
|
||||
#alaw
|
|
@ -0,0 +1,2 @@
|
|||
replace_local.patch
|
||||
configure_warning
|
|
@ -0,0 +1,101 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# quilt
|
||||
include /usr/share/quilt/quilt.make
|
||||
|
||||
DEBVERSION:=$(shell head -n 1 debian/changelog \
|
||||
| sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
|
||||
LOCAL_TAR_VER:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//')
|
||||
UP_MAJOR_VER:=$(shell echo $(LOCAL_TAR_VER) | sed -e 's/~[0-9.]*//')
|
||||
UP_DATE_VER:=$(shell echo $(LOCAL_TAR_VER) | sed -e 's/[0-9.]*~//')
|
||||
|
||||
UPFILENAME := lcr_$(UP_DATE_VER).tar.gz
|
||||
FILENAME := lcr_$(LOCAL_TAR_VER).orig.tar.gz
|
||||
URL := http://isdn.eversberg.eu/download/lcr-$(UP_MAJOR_VER)/$(UPFILENAME)
|
||||
|
||||
# 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 ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
|
||||
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
|
||||
else
|
||||
CROSS= --build $(DEB_BUILD_GNU_TYPE)
|
||||
endif
|
||||
|
||||
|
||||
|
||||
config.status: patch configure
|
||||
dh_testdir
|
||||
# Add here commands to configure the package.
|
||||
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
|
||||
cp -f /usr/share/misc/config.sub config.sub
|
||||
endif
|
||||
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
|
||||
cp -f /usr/share/misc/config.guess config.guess
|
||||
endif
|
||||
CPPFLAGS="-I/usr/include/mISDNuser" ./configure $(CROSS) --without-ssl --without-gsm --prefix=/usr --localstatedir=/var --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" # LDFLAGS="-Wl,-z,defs"
|
||||
|
||||
build: build-stamp
|
||||
build-stamp: config.status
|
||||
dh_testdir
|
||||
$(MAKE)
|
||||
touch $@
|
||||
|
||||
clean: clean-patched unpatch
|
||||
clean-patched:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp
|
||||
[ ! -f Makefile ] || $(MAKE) distclean
|
||||
rm -f config.sub config.guess
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
$(MAKE) DESTDIR=$(CURDIR)/debian/lcr install
|
||||
rm $(CURDIR)/debian/lcr/usr/sbin/genrc
|
||||
|
||||
|
||||
# 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
|
||||
dh_installdocs
|
||||
dh_installlogrotate
|
||||
dh_installinit -- defaults 21
|
||||
dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
|
||||
print-version:
|
||||
@@echo "Debian version: $(DEBVERSION)"
|
||||
@@echo "Upstream version: $(UP_DATE_VER)"
|
||||
|
||||
get-orig-source:
|
||||
@@dh_testdir
|
||||
@@[ -d ../tarballs/. ] || mkdir -p ../tarballs
|
||||
@@wget -nv -T10 -t3 --verbose -O ../tarballs/$(FILENAME) $(URL)
|
||||
|
||||
.PHONY: build clean binary-indep binary-arch binary install patch unpatch
|
|
@ -0,0 +1,5 @@
|
|||
version=3
|
||||
# only using the date part of the debian version.
|
||||
# How can I use the match of the directory?
|
||||
opts="dversionmangle=s/([\d.]+)~//" \
|
||||
http://isdn.eversberg.eu/download/lcr-([\d.]+)/lcr_([\d]+)\.tar\.gz debian uupdate
|
Loading…
Reference in New Issue