summaryrefslogtreecommitdiff
path: root/system/nss_ldap/nss_ldap.SlackBuild
diff options
context:
space:
mode:
authorChristopher Walker <kris240376@gmail.com>2011-12-15 00:32:16 -0600
committerNiels Horn <niels.horn@slackbuilds.org>2011-12-18 00:07:51 -0200
commit0208d4932e2ad17940e48da746d2c8f14025d6c6 (patch)
tree01581d472e746f898aa87275ed7742fd36ea3087 /system/nss_ldap/nss_ldap.SlackBuild
parent4ed39d9caefe05578d6ae3fb22d3cfd9bf679c71 (diff)
downloadslackbuilds-0208d4932e2ad17940e48da746d2c8f14025d6c6.tar.gz
system/nss_ldap: Updated for version 265.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/nss_ldap/nss_ldap.SlackBuild')
-rw-r--r--system/nss_ldap/nss_ldap.SlackBuild33
1 files changed, 12 insertions, 21 deletions
diff --git a/system/nss_ldap/nss_ldap.SlackBuild b/system/nss_ldap/nss_ldap.SlackBuild
index 775a8ddc0b..90d4b276c9 100644
--- a/system/nss_ldap/nss_ldap.SlackBuild
+++ b/system/nss_ldap/nss_ldap.SlackBuild
@@ -2,7 +2,7 @@
# 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.
#
# 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
# in the documentation and/or other materials provided with the
# 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
# "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.
PRGNAM=nss_ldap
-VERSION=264
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-265}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -70,7 +65,7 @@ set -e
rm -rf $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -84,23 +79,19 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-rfc2307bis \
--build=$ARCH-slackware-linux
-make || exit 1
-make install DESTDIR=$PKG || exit 1
-
-( 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
-)
+make
+make install DESTDIR=$PKG
mv $PKG/etc/ldap.conf $PKG/etc/ldap.conf.new
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
-install -o root -g root -m 644 \
- ANNOUNCE AUTHORS COPYING ChangeLog INSTALL NEWS README \
- doc/README.AIX doc/README.HPUX doc/README.IRS doc/README.SFU \
- doc/README.paged doc/SolarisInstallNotes.txt $CWD/$PRGNAM.SlackBuild \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ ANNOUNCE AUTHORS COPYING ChangeLog INSTALL NEWS README doc/README* doc/*.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc