Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv23082/scripts
Modified Files:
perl
Added Files:
tnef
Log Message:
- updated various perl modules and added required perl modules for MailScanner
- added tnef 1.4.3
- better handling of new perl modules
--- NEW FILE: tnef ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/tnef,v $
# $Revision: 1.1 $
# $Date: 2008/08/21 14:58:51 $
#
# http://www.devil-linux.org
# AIDE added by Alberto Benati <alb...@un...>
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: tnef
# Required-Start: $basebuildtools $libs
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: AIDE (http://aide.sourceforge.net)
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
MYNAME=AIDE
case $1 in
build )
if [ "$CONFIG_TNEF" = "y" ]; then
./configure --prefix=/usr || exit 1
make $PMAKE || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_TNEF" = "y" ]; then
rm -rf $TMPDIR
mkdir -p $TMPDIR || exit 1
make install DESTDIR=$TMPDIR || exit 1
copy_docs $TMPDIR
copy_files $TMPDIR/usr $CDDIR || exit 1
rm -rf $TMPDIR || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
Index: perl
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/perl,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- perl 1 Jan 2007 23:59:37 -0000 1.50
+++ perl 21 Aug 2008 14:58:51 -0000 1.51
@@ -34,9 +34,8 @@
./Configure -Dprefix=/usr -Dusedl -Dusethreads -d -e || exit 1
# parallel build fails - do not user $PMAKE
make || exit 1
- #make test || exit 1
- #strip_debug
+ strip_debug
# delete the old perl version
rm -rf /usr/lib/perl5
@@ -50,14 +49,35 @@
for FILE in $(ls $DL_DIR/src/perl-ext/*.tar.gz)
do
+ echo unpacking $FILE
tar -xzf $FILE || exit 1
done
for PATCH in $(ls $DL_DIR/src/perl-ext/*.diff.bz2)
do
+ echo patching $PATCH
bzcat $PATCH | patch -p0 || exit 1
done
+ # update the patch-o-matic.exclude file to make sure we have everything listed in there
+ for PDIR in $(ls -d -1 *); do
+ if [ -d "$PDIR" ]; then
+ SUITE=
+ if [ -e "$PDIR/META.yml" ]; then
+ SUITE=$(grep "^name:" $PDIR/META.yml 2> /dev/null )
+ SUITE=$(echo ${SUITE##*:} | tr -d "\n\r\t ")
+ fi
+ if [ -z "$SUITE" ]; then
+ SUITE=${PDIR%*-[0-9]*}
+ fi
+ SUITE=$(echo ${SUITE} | tr -d "\n\r\t ")
+ if [ -z "$(grep "^$SUITE" $MYDIR/config/perl-ext)" ]; then
+ echo adding missing $SUITE to $MYDIR/config/perl-ext
+ echo "$SUITE" >> $MYDIR/config/perl-ext
+ fi
+ fi
+ done
+
# Check dependencies
while read line
do
|