wok annotate cyrus-sasl-pam/receipt @ rev 25371

updated tmux-mem-cpu-load (3.4.0 -> 3.6.0)
author Hans-G?nter Theisgen
date Fri Jul 29 14:34:07 2022 +0100 (2022-07-29)
parents 2a0479881723
children fe1b5660fdd1
rev   line source
pascal@2185 1 # SliTaz package receipt.
pascal@2185 2
pascal@2185 3 PACKAGE="cyrus-sasl-pam"
Hans-G?nter@21286 4 VERSION="2.1.27"
pascal@2185 5 CATEGORY="network"
pascal@2185 6 SHORT_DESC="SASL authentication server using PAM."
pascal@2185 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 8 LICENSE="BSD"
pascal@23440 9 WEB_SITE="https://www.cyrusimap.org/sasl"
Hans-G?nter@21286 10
pascal@2185 11 SOURCE="cyrus-sasl"
pascal@2185 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24974 13 WGET_URL="https://github.com/cyrusimap/cyrus-sasl/archive/$TARBALL"
Hans-G?nter@21286 14
pascal@15579 15 PROVIDE="cyrus-sasl:pam"
Hans-G?nter@21286 16 DEPENDS="libcomerr3 libdb libkrb5 libldap openssl pam"
Hans-G?nter@21286 17 BUILD_DEPENDS="openldap-dev openssl-dev pam pam-dev"
pascal@2185 18
pascal@24436 19 # What is the latest version available today?
pascal@24436 20 current_version()
pascal@24436 21 {
pascal@24436 22 wget -O - https://github.com/cyrusimap/cyrus-sasl/releases 2>/dev/null | \
pascal@24436 23 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
pascal@24436 24 }
pascal@24436 25
pascal@2185 26 # Rules to configure and make the package.
pascal@2185 27 compile_rules()
pascal@2185 28 {
Hans-G?nter@21286 29 ./configure \
Hans-G?nter@21286 30 --prefix=/usr \
Hans-G?nter@21286 31 --infodir=/usr/share/info \
Hans-G?nter@21286 32 --with-ldap=/usr \
Hans-G?nter@21286 33 --with-pam=/usr \
Hans-G?nter@21286 34 --with-devrandom=/dev/urandom \
Hans-G?nter@21286 35 --mandir=/usr/share/man \
Hans-G?nter@21286 36 $CONFIGURE_ARGS
pascal@4274 37 sed -i 's/WITH_DES/WITH_DES 1/' config.h
Hans-G?nter@21286 38 make -j1 &&
pascal@15579 39 make -j1 DESTDIR=$DESTDIR install
pascal@2185 40 }
pascal@2185 41
pascal@2185 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2185 43 genpkg_rules()
pascal@2185 44 {
Hans-G?nter@21286 45 mkdir -p $fs/usr/lib/sasl2
Hans-G?nter@21286 46 mkdir -p $fs/var/state/saslauthd
Hans-G?nter@21286 47
Hans-G?nter@21286 48 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@21286 49 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21286 50 cp -a $install/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2
Hans-G?nter@21286 51 cp -a ../$SOURCE/stuff/etc $fs
Hans-G?nter@21286 52
pascal@2431 53 sed -i 's/shadow/pam/' $fs/etc/init.d/cyrus-sasl
pascal@2185 54 }