Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv20587/scripts
Added Files:
Tag: rel-1-2-patches
mod_perl nmap
Log Message:
Add nmap and mod_perl
--- NEW FILE: nmap ---
#!/bin/bash
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: nmap
# Required-Start: $basebuildtools $libs
# 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
MYNAME=NMAP
case $1 in
build )
if [ "$CONFIG_NMAP" = "y" ]; then
./configure --prefix=/usr --without-nmapfe || exit 1
make $PMAKE all || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_NMAP" = "y" ]; then
rm -rf $TMPDIR || exit 1
mkdir -p $TMPDIR/usr/bin || exit 1
make install DESTDIR=$TMPDIR || exit 1
mkdir -p $CDDIR/usr/share/nmap || exit 1
cp -dpvR $TMPDIR/usr $CDDIR/ || exit 1
rm -rf $TMPDIR || exit 1
echo "HELP_NMAP=\"Nmap (Network Mapper) is a free open source utility for network exploration or security auditing.\"" >> $SOFTWAREHELP
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
--- NEW FILE: mod_perl ---
#!/bin/bash
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: mod_perl
# Required-Start: $basebuildtools $libs httpd perl
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: mod_perl for apache
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
case $1 in
build )
perl Makefile.PL MP_APXS=/usr/sbin/apxs || exit 1
make || exit 1
strip_debug
;;
install )
make install DESTDIR=$WORKDIR/tmp || exit 1
cp src/modules/perl/mod_perl.so $CDDIR/usr/lib/apache2/modules/ || exit 1
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|