system/nss_ldap: Updated for version 265.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
4ed39d9cae
commit
0208d4932e
|
@ -1,7 +1,9 @@
|
||||||
The resolution of the entities defined in RFC 2307 is generally performed
|
The resolution of the entities defined in RFC 2307 is generally performed
|
||||||
by a set of UNIX C library calls (such as getpwnam() to return the attributes
|
by a set of UNIX C library calls (such as getpwnam() to return the attributes
|
||||||
of a user). The nss_ldap module provides the means for Solaris and Linux
|
of a user). The nss_ldap module provides the means for Solaris and Linux
|
||||||
workstations to this information (such as users, hosts, and groups) from
|
workstations to get this information (such as users, hosts, and groups) from
|
||||||
LDAP directories. The modules is the reference implementation of RFC 2307,
|
LDAP directories. The module is the reference implementation of RFC 2307,
|
||||||
and has been studied by vendors such as Sun (who developed the original
|
and has been studied by vendors such as Sun (who developed the original
|
||||||
Name Service Switch interface).
|
Name Service Switch interface).
|
||||||
|
|
||||||
|
This requires CVSTools.
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
#!/bin/sh
|
|
||||||
config() {
|
config() {
|
||||||
NEW="$1"
|
NEW="$1"
|
||||||
OLD="`dirname $NEW`/`basename $NEW .new`"
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
# If there's no config file by that name, mv it over:
|
|
||||||
if [ ! -r $OLD ]; then
|
if [ ! -r $OLD ]; then
|
||||||
mv $NEW $OLD
|
mv $NEW $OLD
|
||||||
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||||
rm $NEW
|
rm $NEW
|
||||||
fi
|
fi
|
||||||
# Otherwise, we leave the .new copy for the admin to consider...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
config etc/ldap.conf.new
|
config etc/ldap.conf.new
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for nss_ldap
|
# Slackware build script for nss_ldap
|
||||||
|
|
||||||
# Copyright (c) 2009 Chris Walker <kris240376@gmail.com>
|
# Copyright (c) 2009-2011 Chris Walker <kris240376@gmail.com>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -15,9 +15,6 @@
|
||||||
# copyright notice, this list of conditions and the following disclaimer
|
# copyright notice, this list of conditions and the following disclaimer
|
||||||
# in the documentation and/or other materials provided with the
|
# in the documentation and/or other materials provided with the
|
||||||
# distribution.
|
# distribution.
|
||||||
# * Neither the name of the {company} nor the names of its
|
|
||||||
# contributors may be used to endorse or promote products derived from
|
|
||||||
# this software without specific prior written permission.
|
|
||||||
#
|
#
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
@ -32,16 +29,14 @@
|
||||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=nss_ldap
|
PRGNAM=nss_ldap
|
||||||
VERSION=264
|
VERSION=${VERSION:-265}
|
||||||
BUILD=${BUILD:-3}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
# Automatically determine the architecture we're building on:
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -70,7 +65,7 @@ set -e
|
||||||
rm -rf $TMP/$PRGNAM-$VERSION $PKG
|
rm -rf $TMP/$PRGNAM-$VERSION $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
chmod -R u+w,go+r-w,a-s .
|
||||||
|
@ -84,23 +79,19 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
--enable-rfc2307bis \
|
--enable-rfc2307bis \
|
||||||
--build=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make || exit 1
|
make
|
||||||
make install DESTDIR=$PKG || exit 1
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
( cd $PKG/usr/man
|
|
||||||
find . -type f -exec gzip -9 {} \;
|
|
||||||
for i in $(find . -type l); do ln -s $(readlink $i).gz $i.gz; rm $i; done
|
|
||||||
)
|
|
||||||
|
|
||||||
mv $PKG/etc/ldap.conf $PKG/etc/ldap.conf.new
|
mv $PKG/etc/ldap.conf $PKG/etc/ldap.conf.new
|
||||||
mv $PKG/etc/nsswitch.ldap $PKG/etc/nsswitch.conf-ldap
|
mv $PKG/etc/nsswitch.ldap $PKG/etc/nsswitch.conf-ldap
|
||||||
|
|
||||||
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
|
rm -rf $PKG/usr/usr # no idea why this happens
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
install -o root -g root -m 644 \
|
cp -a \
|
||||||
ANNOUNCE AUTHORS COPYING ChangeLog INSTALL NEWS README \
|
ANNOUNCE AUTHORS COPYING ChangeLog INSTALL NEWS README doc/README* doc/*.txt \
|
||||||
doc/README.AIX doc/README.HPUX doc/README.IRS doc/README.SFU \
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
doc/README.paged doc/SolarisInstallNotes.txt $CWD/$PRGNAM.SlackBuild \
|
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="nss_ldap"
|
PRGNAM="nss_ldap"
|
||||||
VERSION="264"
|
VERSION="265"
|
||||||
HOMEPAGE="http://www.padl.com/OSS/nss_ldap.html"
|
HOMEPAGE="http://www.padl.com/OSS/nss_ldap.html"
|
||||||
DOWNLOAD="http://www.padl.com/download/nss_ldap-264.tar.gz"
|
DOWNLOAD="http://www.padl.com/download/nss_ldap-265.tar.gz"
|
||||||
MD5SUM="eebab40c6ce2f54e5c377b4895c0c93a"
|
MD5SUM="c1cb02d1a85538cf16bca6f6a562abe4"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Christopher Walker"
|
MAINTAINER="Christopher Walker"
|
||||||
EMAIL="kris240376@gmail.com"
|
EMAIL="kris240376@gmail.com"
|
||||||
APPROVED="Erik Hanson"
|
APPROVED="rworkman"
|
||||||
|
|
Loading…
Reference in New Issue