From: Heiko Z. <smi...@us...> - 2004-03-20 16:28:00
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6728/scripts Added Files: frox ser Log Message: initial checkin of frox and sip --- NEW FILE: frox --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/frox,v $ # $Revision: 1.1 $ # $Date: 2004/03/20 16:18:00 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: frox # Required-Start: $basebuildtools $libs bzip2 linux # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: The FTP proxy ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=FROX case $1 in build ) if [ "$CONFIG_FROX" = "y" ]; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --enable-ipfilter --enable-http-cache --enable-local-cache \ --enable-virus-scan --enable-transparent-data \ --enable-libiptc --enable-ccp --disable-run-as-root \ --enable-configfile=/etc/frox || exit 1 make all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_FROX" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 make install DESTDIR=$WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp/usr/share/doc/frox cp doc/FAQ doc/SECURITY doc/ccp* $WORKDIR/tmp/usr/share/doc/frox mkdir -p $WORKDIR/tmp/usr/share/man/man8 || exit 1 gzip -c -9 < doc/frox.man > $WORKDIR/tmp/usr/share/man/man8/frox.conf.8.gz || exit 1 mkdir -p $WORKDIR/tmp/usr/share/man/man5 || exit 1 gzip -c -9 < doc/frox.conf.man > $WORKDIR/tmp/usr/share/man/man5/frox.5.gz || exit 1 #copy_docs $WORKDIR/tmp copy_files $WORKDIR/tmp/usr $CDDIR || exit 1 rm -rf $WORKDIR/tmp || exit 1 cp $MYDIR/scripts/frox $ETCDIR/etc/init.d || exit 1 echo "# Start Frox FTP Proxy?" >> $CONFIGFILE echo "START_FROX=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_FROX=\"Frox is the FTP Proxy\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: ser --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/ser,v $ # $Revision: 1.1 $ # $Date: 2004/03/20 16:18:00 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: ser # Required-Start: $basebuildtools $libs openssl # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: SIP Express Router (VoIP) ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=SER MAKEOPT="prefix=/usr cfg-target=/etc/ser/ cfg-prefix=$WORKDIR/tmp BASEDIR=$WORKDIR/tmp" MAKEOPT="$MAKEOPT USER_TLS=1" EXCLUDEMODULES="cpl cpl-c ext extcmd postgres snmp im radius_acc radius_auth jabber auth_radius group_radius uri_radius" if [ "$CONFIG_MYSQL_CLIENT" != "y" ]; then EXCLUDEMODULES="$EXCLUDEMODULES mysql" fi case $CONFIG_CPU in 486*) MAKEOPT="$MAKEOPT CPU=i486" ;; *) MAKEOPT="$MAKEOPT CPU=i586" ;; esac case $1 in build ) if [ "$CONFIG_SER" = "y" ]; then make $MAKEOPT exclude_modules="$EXCLUDEMODULES" all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_SER" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 make $MAKEOPT exclude_modules="$EXCLUDEMODULES" install || exit 1 gzip -9 $WORKDIR/tmp/usr/share/man/man[58]/* || exit 1 copy_files $WORKDIR/tmp/etc $ETCDIR || exit 1 copy_files $WORKDIR/tmp/usr $CDDIR || exit 1 rm -rf $WORKDIR/tmp || exit 1 cp $MYDIR/scripts/ser $ETCDIR/etc/init.d || exit 1 echo "# Start SIP Express Router (ser)?" >> $CONFIGFILE echo "START_SER=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_SER=\"SIP Express Router (ser) is the VoIP server\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |