SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "netatalk-pam"

# SliTaz package receipt.

PACKAGE="netatalk-pam"
VERSION="2.2.3"
CATEGORY="system-tools"
SHORT_DESC="The AppleTalk Protocol Suite using PAM."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
SOURCE="netatalk"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="https://netatalk.sourceforge.io/"
WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf"
PROVIDE="netatalk:pam"

DEPENDS="perl libdb libcrypto cups gnutls libgcrypt libgpg-error  \
libwrap zlib pam libcomerr3"
BUILD_DEPENDS="db-dev libcrypto-dev pam pam-dev file"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/netatalk/files/netatalk/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/netatalk/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure --with-pam --prefix=/usr --sysconfdir=/etc \
    --libexecdir=/usr/lib/netatalk \
    --mandir=/usr/share/man $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share $fs/usr/lib
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/sbin $fs/usr
    #cp -a $install/usr/lib/netatalk $fs/usr/lib
    cp -a $install/etc $fs
    cp -a $stuff/etc $fs
    rm -f $fs/etc/netatalk/uams/*a
}

# Pre and post install commands for Tazpkg.
post_install()
{
    cat <<EOF
----
To start $PACKAGE server you can run :

    /etc/init.d/$PACKAGE start

Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
----
EOF
}

# Overlap busybox
pre_install()
{
    rm -f "$1/usr/bin/timeout"
}

post_remove()
{
    ln -s /bin/busybox "$1/usr/bin/timeout"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)