SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "polkit-pam"

# SliTaz package receipt.

PACKAGE="polkit-pam"
VERSION="0.104"
CATEGORY="base-system"
SHORT_DESC="Polkit with PAM support."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="LGPL2"
SOURCE="polkit"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="https://www.freedesktop.org/wiki/Software/PolicyKit"
WGET_URL="https://hal.freedesktop.org/releases/$TARBALL"
PROVIDE="polkit"

DEPENDS="glib libgio gobject-introspection dbus dbus-glib expat pam"
BUILD_DEPENDS="glib-dev libgio-dev gobject-introspection-dev dbus-dev \
dbus-glib-dev expat-dev pam-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/polkit-[0-9]/!d;/tar/!d;s|.*polkit-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --libexecdir=/usr/lib/polkit-1 \
        --disable-man-pages \
        --disable-gtk-doc \
        --with-authfw=pam \
        $CONFIGURE_ARGS &&
    make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    cp -a $install/etc $fs
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/polkit-1 $fs/usr/lib
    rm $fs/usr/lib/polkit-1/extensions/*.*a
    cp -a $install/usr/share/dbus-1 $fs/usr/share
    cp -a $install/usr/share/polkit-1 $fs/usr/share
    cp -a $install/var $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)