From: <smi...@pr...> - 2004-01-27 21:04:43
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27696/scripts Added Files: gdchart ntop Log Message: initial checkin of gdchart and ntop --- NEW FILE: gdchart --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/gdchart,v $ # $Revision: 1.1 $ # $Date: 2004/01/27 21:03:37 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: gdchart # Required-Start: $basebuildtools gd # 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 ) replace_str makefile /usr/local /usr GDDIR=$(find_src_dir gd) make GD_INCL=/usr/include/ GD_LD=/usr/lib/ FT_DEF= FT_LK= $PMAKE libgdc.a || exit 1 strip_debug # we have to install this immediately, because this is a library and could be needed by other sources make GD_INCL=/usr/include/ GD_LD=/usr/lib/ FT_DEF= FT_LK= install || exit 1 ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: ntop --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/ntop,v $ # $Revision: 1.1 $ # $Date: 2004/01/27 21:03:37 $ # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: ntop # Required-Start: $basebuildtools $libs rrdtool # 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_NTOP" = "y" ]; then cd ntop || exit 1 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --with-gdchart-include=/usr/include --with-gdchart-lib=/usr/lib \ --with-gd-include=/usr/include --with-gd-lib=/usr/lib \ --with-zlib-include=/usr/include --with-zlib-lib=/usr/lib \ --with-libpng-include=/usr/include --with-libpng-lib=/usr/lib || exit 1 make $PMAKE all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_NTOP" = "y" ]; then cd ntop || exit 1 rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp/usr || exit 1 make install DESTDIR=$WORKDIR/tmp || exit 1 rm -rf $WORKDIR/tmp/usr/lib/*a || exit 1 copy_docs $WORKDIR/tmp cp -dpfR $WORKDIR/tmp/etc/* $ETCDIR/etc/ || exit 1 copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1 rm -rf $WORKDIR/tmp || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |