Update of /cvsroot/devil-linux/build/scripts
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv10720/scripts
Added Files:
pymilter
Log Message:
added pymilter
--- NEW FILE: pymilter ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/pymilter,v $
# $Revision: 1.1 $
# $Date: 2010/12/01 13:19:10 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
MYNAME=PYTHON_LDAP
case $1 in
build )
if [ "$CONFIG_PYTHON" = "y" ] && [ "$CONFIG_POSTFIX" = "y" ] && [ "$CONFIG_SENDMAIL_LIBMILTER" = "y" ]; then
python setup.py build || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_PYTHON" = "y" ] && [ "$CONFIG_POSTFIX" = "y" ] && [ "$CONFIG_SENDMAIL_LIBMILTER" = "y" ]; then
PYTHONDIR=$(ls -d /usr/lib/python*.*/site-packages)
mkdir -p $CDDIR/$PYTHONDIR || exit 1
cp -dvpR build/lib*/* $CDDIR/$PYTHONDIR/ || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|