Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv26276/scripts
Added Files:
libosip2 siproxd
Log Message:
- added siproxd 0.5.14 (Heiko / Roland Pabel)
- added support for pidfiles in /etc/init.d/functions for reloadproc,
killproc
and statusproc (Heiko / Roland Pabel)
- introduced a build configuration option to enable magic sysrq in the
kernel (Heiko / Roland Pabel)
--- NEW FILE: siproxd ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/siproxd,v $
# $Revision: 1.2 $
# $Date: 2006/08/18 15:44:53 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: siproxd
# Required-Start: $basebuildtools $libs libosip2
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: Leightweight SIP proxy
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
source $MYDIR/functions
MYNAME=SIPROXD
case $1 in
build )
if [ "$CONFIG_SIPROXD" = "y" ]; then
/bin/sh configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man || exit 1
make $PMAKE all || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_SIPROXD" = "y" ]; then
rm -rf $TMPDIR || exit 1
make install DESTDIR=$TMPDIR || exit 1
# copy_docs $TMPDIR || exit 1
# copy_man $TMPDIR || exit 1
cp -dp $TMPDIR/etc/* $ETCDIR/etc || exit 1
copy_files $TMPDIR/usr/sbin $CDDIR/usr || exit 1
cp -dp $MYDIR/scripts/siproxd $ETCDIR/etc/init.d/ || exit 1
rm -rf $TMPDIR || exit 1
echo "# Start Siproxd?" >> $CONFIGFILE
echo "START_$MYNAME=no" >> $CONFIGFILE
echo >> $CONFIGFILE
echo "HELP_$MYNAME=\"Sip Proxy\"" >> $SOFTWAREHELP
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
--- NEW FILE: libosip2 ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/libosip2,v $
# $Revision: 1.2 $
# $Date: 2006/08/18 15:44:53 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: libosip2
# Required-Start: $basebuildtools glibc
# Required-Stop:
# Default-Start: 1
# Default-Stop:
# Description: oSIP
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
case $1 in
build )
if [ "$CONFIG_LIBOSIP2" = "y" ]; then
./configure --prefix=/usr --localstatedir=/var || exit 1
make $PMAKE all || exit 1
strip_debug
# install it in local system, because other programs could need it
make install
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|