|
From: Serge L. <sma...@us...> - 2007-09-04 11:46:30
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv16355/scripts Modified Files: functions Added Files: libnetfilter_conntrack libnfnetlink conntrack-tools Log Message: - added conntrack-tools (active-active HA scenarios support) --- NEW FILE: libnetfilter_conntrack --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/libnetfilter_conntrack,v $ # $Revision: 1.1 $ # $Date: 2007/09/04 11:46:21 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: libnetfilter_conntrack # Required-Start: $basebuildtools glibc libnfnetlink # Required-Stop: # Default-Start: 1 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) # delete_str ./libnetfilter_conntrack.pc.in "^URL: " || exit 1 replace_str ./libnetfilter_conntrack.pc.in "^URL:.*$" "" || exit 1 ./configure --prefix=/usr || exit 1 make $PMAKE all || exit 1 strip_debug # install it in local system, because other programs could need it make install ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac Index: functions =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/functions,v retrieving revision 1.64 retrieving revision 1.65 diff -u -d -r1.64 -r1.65 --- functions 20 Mar 2007 02:41:45 -0000 1.64 +++ functions 4 Sep 2007 11:46:21 -0000 1.65 @@ -46,6 +46,13 @@ sed $1.old -e s%"$2"%"$3"%g > $1 } +# delete in file $1 the string $2 +# and save the old file +delete_str() +{ + cp $1 $1.old + sed $1.old -e /"$2"/d > $1 +} # returns the needed libraries for $1 get_libs() { --- NEW FILE: libnfnetlink --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/libnfnetlink,v $ # $Revision: 1.1 $ # $Date: 2007/09/04 11:46:21 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: libnfnetlink # Required-Start: $basebuildtools glibc # Required-Stop: # Default-Start: 1 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) delete_str ./libnfnetlink.pc.in "^URL: " || exit 1 ./configure --prefix=/usr || exit 1 make $PMAKE all || exit 1 strip_debug # install it in local system, because other programs could need it make install ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: conntrack-tools --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/conntrack-tools,v $ # $Revision: 1.1 $ # $Date: 2007/09/04 11:46:21 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: conntrack-tools # Required-Start: $basebuildtools $libs libnetfilter_conntrack # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_CONNTRACKTOOL" = "y" ]; then ./configure --prefix=/usr || exit 1 make all $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_CIPE" = "y" ]; then make install DESTDIR=$CDDIR || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |