wok-current view cyrus-sasl-pam/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago)
parents 3ad63c8fc2f9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="cyrus-sasl-pam"
4 VERSION="2.1.28"
5 CATEGORY="network"
6 SHORT_DESC="SASL authentication server using PAM."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.cyrusimap.org/sasl"
11 SOURCE="cyrus-sasl"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/cyrusimap/cyrus-sasl/archive/$TARBALL"
15 PROVIDE="cyrus-sasl:pam"
16 DEPENDS="libcomerr3 libdb libkrb5 libldap openssl pam"
17 BUILD_DEPENDS="automake autoconf m4 libtool groff \
18 openldap-dev openssl-dev pam pam-dev"
20 HOST_ARCH="i486 x86_64"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://github.com/cyrusimap/cyrus-sasl/releases 2>/dev/null | \
26 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./autogen.sh
34 ./configure \
35 --prefix=/usr \
36 --infodir=/usr/share/info \
37 --with-ldap=/usr \
38 --with-pam=/usr \
39 --with-devrandom=/dev/urandom \
40 --mandir=/usr/share/man \
41 $CONFIGURE_ARGS
42 sed -i 's/WITH_DES/WITH_DES 1/' config.h
43 make -j1 &&
44 make -j1 DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib/sasl2
51 mkdir -p $fs/var/state/saslauthd
53 cp -a $install/usr/sbin $fs/usr
54 cp -a $install/usr/lib/*.so* $fs/usr/lib
55 cp -a $install/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2
56 cp -a ../$SOURCE/stuff/etc $fs
58 sed -i 's/shadow/pam/' $fs/etc/init.d/cyrus-sasl
59 }