wok-current view nss-ldapd/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | 241fb98cab1c |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="nss-ldapd"
4 VERSION="0.9.11"
5 CATEGORY="system-tools"
6 SHORT_DESC="NSS module for name lookups using LDAP (nss_ldap remplacement)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://arthurdejong.org/nss-pam-ldapd/"
11 SOURCE="nss-pam-ldapd"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://arthurdejong.org/$SOURCE/$TARBALL"
15 DEPENDS="cyrus-sasl krb5 libcomerr3 libkrb5 libldap libssl"
16 BUILD_DEPENDS="cyrus-sasl-dev krb5-dev openldap-dev openssl-dev pam-dev \
17 pam_ldap"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*}/downloads 2>/dev/null | \
23 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir -p $DESTDIR/usr/lib
30 mkdir -p $DESTDIR/etc
31 sed -i 's/-D / /' */Makefile.in Makefile.in
33 ./configure \
34 --prefix=/usr \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 mkdir -p $fs/lib
48 cp -a $install/etc $fs
49 cp -a $install/lib/security $fs/lib
50 cp -a $install/usr/sbin $fs/usr
51 cp -a $install/usr/lib $fs/usr
52 }