Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv26505/scripts
Added Files:
libsafe
Log Message:
initial checkin
--- NEW FILE: libsafe ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/libsafe,v $
# $Revision: 1.1 $
# $Date: 2003/12/24 19:38:54 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: libsafe
# 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
source $MYDIR/functions
case $1 in
build )
if [ "$CONFIG_LIBSAFE" = "y" ]; then
make all || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_LIBSAFE" = "y" ]; then
copy_files_links src/libsafe.so $CDDIR/lib/ || exit 1
pushd $CDDIR/lib/ > /dev/null || exit 1
ln -sf libsafe.so.2.* libsafe.so.2 || exit 1
popd > /dev/null || exit 1
touch $ETCDIR/etc/libsafe.exclude || exit 1
echo "/lib/libsafe.so.2" > $ETCDIR/etc/ld.so.preload || exit 1
chown 0.0 $ETCDIR/etc/ld.so.preload || exit 1
chmod 644 $ETCDIR/etc/ld.so.preload || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|