Update of /cvsroot/devil-linux/build/scripts/configuration
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9781/scripts/configuration
Added Files:
Tag: rel-1-2-patches
nss_ldap nss_ldap.config
Log Message:
- added nss_ldap support (Jean-Luc Parouty / Heiko)
--- NEW FILE: nss_ldap ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/configuration/Attic/nss_ldap,v $
# $Revision: 1.1.2.1 $
# $Date: 2004/12/31 02:09:32 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: nss_ldap
# Required-Start: $basebuildtools glibc openldap
# 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_NSSLDAPLIB" = "y" ]; then
./configure --prefix='' || exit 1
make $PMAKE all || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_NSSLDAPLIB" = "y" ]; then
rm -rf $WORKDIR/tmp || exit 1
mkdir -p $WORKDIR/tmp || exit 1
mkdir -p $WORKDIR/tmp/lib || exit 1
mkdir -p $WORKDIR/tmp/etc || exit 1
mkdir -p $WORKDIR/tmp/usr || exit 1
make install DESTDIR=$WORKDIR/tmp || exit 1
mkdir -p $CDDIR
copy_files_links $WORKDIR/tmp/lib $CDDIR/ || exit 1
copy_files $WORKDIR/tmp/etc $ETCDIR/ || 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
--- NEW FILE: nss_ldap.config ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/configuration/nss_ldap.config,v $
# $Revision: 1.1.2.1 $
# $Date: 2004/12/31 02:09:32 $
#
# http://www.devil-linux.org
if [ "$CONFIG_OPENLDAPLIB" = "y" ]; then
menu_add "System|Libraries" bool "Support nsswitch LDAP" CONFIG_NSSLDAPLIB
fi
|