SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "cyrus-sasl-pam"

# SliTaz package receipt.

PACKAGE="cyrus-sasl-pam"
VERSION="2.1.28"
CATEGORY="network"
SHORT_DESC="SASL authentication server using PAM."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://www.cyrusimap.org/sasl"

SOURCE="cyrus-sasl"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="https://github.com/cyrusimap/cyrus-sasl/archive/$TARBALL"

PROVIDE="cyrus-sasl:pam"
DEPENDS="libcomerr3 libdb libkrb5 libldap openssl pam"
BUILD_DEPENDS="automake autoconf m4 libtool groff \
openldap-dev openssl-dev pam pam-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/cyrusimap/cyrus-sasl/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./autogen.sh

    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --with-ldap=/usr        \
        --with-pam=/usr            \
        --with-devrandom=/dev/urandom    \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS
    sed -i 's/WITH_DES/WITH_DES 1/' config.h
    make -j1 &&
    make -j1 DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/sasl2
    mkdir -p $fs/var/state/saslauthd

    cp -a $install/usr/sbin            $fs/usr
    cp -a $install/usr/lib/*.so*        $fs/usr/lib
    cp -a $install/usr/lib/sasl2/*.so*    $fs/usr/lib/sasl2
    cp -a ../$SOURCE/stuff/etc        $fs

    sed -i 's/shadow/pam/' $fs/etc/init.d/cyrus-sasl
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)