wok-next view nss_ldap/receipt @ rev 20856

Update libfm-extra, menu-cache, libfm, pcmanfm
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jun 26 17:13:37 2018 +0300 (2018-06-26)
parents d43bf7aae921
children 4e6503d7a19f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="nss_ldap"
4 VERSION="265"
5 CATEGORY="system-tools"
6 SHORT_DESC="Get users, hosts, and groups from LDAP"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.padl.com/OSS/nss_ldap.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://www.padl.com/download/$TARBALL"
14 BUILD_DEPENDS="openldap-dev perl"
16 compile_rules() {
17 ./vers_string -v
18 ./configure \
19 --enable-rfc2307bis \
20 --enable-schema-mapping \
21 --enable-paged-results \
22 $CONFIGURE_ARGS &&
23 make $MAKEFLAGS &&
24 make DESTDIR=$DESTDIR install
25 }
27 genpkg_rules() {
28 mkdir -p $fs/usr $fs/etc
29 cp -a $install/usr/lib $fs/usr
30 cp -a $install/etc $fs
31 }
33 post_install() {
34 if [ -s "$1/etc/openldap/slapd.conf" ]; then
35 suffix=$(awk '/^suffix/ { print $2 }' < "$1/etc/openldap/slapd.conf" | sed 's/"//g')
36 rootdn=$(awk '/^rootdn/ { print $2 }' < "$1/etc/openldap/slapd.conf" | sed 's/"//g')
37 rootpw=$(awk '/^rootpw/ { print $2 }' < "$1/etc/openldap/slapd.conf")
38 sed -i -e "s|binddn .*|binddn $rootdn|" \
39 -e "s|bindpw .*|bindpw $rootpw|" \
40 -e "s|dc=padl,dc=com|$suffix|g" "$1/etc/ldap.conf"
41 cat <<EOT
42 ------
43 Suffix login DN and password are found in /etc/openldap/slapd.conf with suffix,
44 rootdn and rootpw keywords:
45 $(grep ^suffix /etc/openldap/slapd.conf)
46 $(grep ^rootdn /etc/openldap/slapd.conf)
47 $(grep ^rootpw /etc/openldap/slapd.conf)
48 ------
49 EOT
50 fi
51 DEPENDS="cyrus-sasl libkrb5 libldap openssl libcomerr libcomerr3"
52 }