From 58e49dda851dc33d215b7a822493bd43f789b82f Mon Sep 17 00:00:00 2001 From: Christopher Walker Date: Tue, 23 Apr 2013 20:48:16 -0400 Subject: system/nss-pam-ldapd: Updated for version 0.8.12. Signed-off-by: dsomero --- system/nss-pam-ldapd/doinst.sh | 14 +++++++++++++- system/nss-pam-ldapd/nss-pam-ldapd.SlackBuild | 6 ++---- system/nss-pam-ldapd/nss-pam-ldapd.info | 6 +++--- system/nss-pam-ldapd/slack-desc | 8 ++++---- 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/system/nss-pam-ldapd/doinst.sh b/system/nss-pam-ldapd/doinst.sh index 8dc7649986..d483abce26 100644 --- a/system/nss-pam-ldapd/doinst.sh +++ b/system/nss-pam-ldapd/doinst.sh @@ -10,5 +10,17 @@ config() { fi # Otherwise, we leave the .new copy for the admin to consider... } + +preserve_perms() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ -e $OLD ]; then + cp -a $OLD ${NEW}.incoming + cat $NEW > ${NEW}.incoming + mv ${NEW}.incoming $NEW + fi + config $NEW +} + config etc/nslcd.conf.new -config etc/rc.d/rc.nss-pam-ldapd.new +preserve_perms etc/rc.d/rc.nss-pam-ldapd.new diff --git a/system/nss-pam-ldapd/nss-pam-ldapd.SlackBuild b/system/nss-pam-ldapd/nss-pam-ldapd.SlackBuild index 4eca6cfaa2..a91caf481c 100644 --- a/system/nss-pam-ldapd/nss-pam-ldapd.SlackBuild +++ b/system/nss-pam-ldapd/nss-pam-ldapd.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for nss-pam-ldapd -# Copyright (c) 2009-2011 Chris Walker +# Copyright (c) 2009-2013 Christopher Walker # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -29,16 +29,14 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=nss-pam-ldapd -VERSION=${VERSION:-0.7.15} +VERSION=${VERSION:-0.8.12} 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 diff --git a/system/nss-pam-ldapd/nss-pam-ldapd.info b/system/nss-pam-ldapd/nss-pam-ldapd.info index 5c3727ea53..a5159ee294 100644 --- a/system/nss-pam-ldapd/nss-pam-ldapd.info +++ b/system/nss-pam-ldapd/nss-pam-ldapd.info @@ -1,8 +1,8 @@ PRGNAM="nss-pam-ldapd" -VERSION="0.7.15" +VERSION="0.8.12" HOMEPAGE="http://arthurdejong.org/nss-pam-ldapd/" -DOWNLOAD="http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-0.7.15.tar.gz" -MD5SUM="9e12518be32da11655c49c7dabb40972" +DOWNLOAD="http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-0.8.12.tar.gz" +MD5SUM="83121b0a536e763a9c0e3eec66ab2ef8" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/system/nss-pam-ldapd/slack-desc b/system/nss-pam-ldapd/slack-desc index 049d24b2dd..063fdbf3ef 100644 --- a/system/nss-pam-ldapd/slack-desc +++ b/system/nss-pam-ldapd/slack-desc @@ -1,8 +1,8 @@ # 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 +# 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 ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -- cgit v1.2.3