summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorChristopher Walker <kris240376@gmail.com>2010-05-13 01:00:59 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 01:00:59 +0200
commitb96fb91780d69d898f78e20f69975cde8d3e7c88 (patch)
tree324ebca23575e5a3602db7444c2dcbe24a10b85b /system
parentf5806afd94f14e537102127aeafd6803a8df581e (diff)
downloadslackbuilds-b96fb91780d69d898f78e20f69975cde8d3e7c88.tar.gz
system/nss_ldap: Added to 13.0 repository
Diffstat (limited to 'system')
-rw-r--r--system/nss_ldap/README7
-rw-r--r--system/nss_ldap/doinst.sh14
-rw-r--r--system/nss_ldap/nss_ldap.SlackBuild98
-rw-r--r--system/nss_ldap/nss_ldap.info10
-rw-r--r--system/nss_ldap/slack-desc19
5 files changed, 148 insertions, 0 deletions
diff --git a/system/nss_ldap/README b/system/nss_ldap/README
new file mode 100644
index 0000000000..7d14062fdb
--- /dev/null
+++ b/system/nss_ldap/README
@@ -0,0 +1,7 @@
+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
+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
+LDAP directories. The modules is the reference implementation of RFC 2307,
+and has been studied by vendors such as Sun (who developed the original
+Name Service Switch interface).
diff --git a/system/nss_ldap/doinst.sh b/system/nss_ldap/doinst.sh
new file mode 100644
index 0000000000..abd60ac5b6
--- /dev/null
+++ b/system/nss_ldap/doinst.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+config() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+config etc/ldap.conf.new
+
diff --git a/system/nss_ldap/nss_ldap.SlackBuild b/system/nss_ldap/nss_ldap.SlackBuild
new file mode 100644
index 0000000000..bcf3b6dd76
--- /dev/null
+++ b/system/nss_ldap/nss_ldap.SlackBuild
@@ -0,0 +1,98 @@
+#!/bin/sh
+
+# Slackware build script for nss_ldap
+
+# Copyright (c) 2009 Chris Walker <kris240376@gmail.com>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above
+# 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
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=nss_ldap
+VERSION=264
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-3}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
+
+set -e
+
+rm -rf $TMP/$PRGNAM-$VERSION $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --sysconfdir=/etc \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --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
+)
+
+mv $PKG/etc/ldap.conf $PKG/etc/ldap.conf.new
+mv $PKG/etc/nsswitch.ldap $PKG/etc/nsswitch.conf-ldap
+
+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
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/nss_ldap/nss_ldap.info b/system/nss_ldap/nss_ldap.info
new file mode 100644
index 0000000000..79b9b54aa7
--- /dev/null
+++ b/system/nss_ldap/nss_ldap.info
@@ -0,0 +1,10 @@
+PRGNAM="nss_ldap"
+VERSION="264"
+HOMEPAGE="http://www.padl.com/OSS/nss_ldap.html"
+DOWNLOAD="http://www.padl.com/download/nss_ldap-264.tar.gz"
+MD5SUM="eebab40c6ce2f54e5c377b4895c0c93a"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Christopher Walker"
+EMAIL="kris240376@gmail.com"
+APPROVED="Erik Hanson"
diff --git a/system/nss_ldap/slack-desc b/system/nss_ldap/slack-desc
new file mode 100644
index 0000000000..54fb59da58
--- /dev/null
+++ b/system/nss_ldap/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+nss_ldap: nss_ldap (reference implementation of RFC 2307)
+nss_ldap:
+nss_ldap: The nss_ldap module provides the means for Solaris and Linux
+nss_ldap: workstations to user, host, group, etc., information from LDAP
+nss_ldap: diretories. The module is the reference implementation of RFC 2307,
+nss_ldap: and has been studied by vendors such as Sun (who developed the
+nss_ldap: original Name Service Switch interface).
+nss_ldap:
+nss_ldap: Homepage: http://www.padl.com/OSS/nss_ldap.html
+nss_ldap:
+nss_ldap: