wok-next view polkit-pam/receipt @ rev 20231

Up libsdl2, libsdl2-image, libsdl2-mixer
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 06 06:41:07 2017 +0200 (2017-11-06)
parents e70c0b9c5adf
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="polkit-pam"
4 VERSION="0.113"
5 CATEGORY="base-system"
6 SHORT_DESC="Authorization manager, with PAM support"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/polkit/"
11 TARBALL="polkit-$VERSION.tar.gz"
12 WGET_URL="http://www.freedesktop.org/software/polkit/releases/$TARBALL"
14 BUILD_DEPENDS="glib-dev js-dev expat-dev intltool pam-dev \
15 gobject-introspection-dev gtk-doc"
16 SPLIT="polkit-pam-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 addgroup -g 27 polkitd &&
22 adduser -g "PolicyKit Daemon Owner" -h /etc/polkit-1 -u 27 \
23 -G polkitd -s /bin/false -D polkitd &&
25 ./configure \
26 --sysconfdir=/etc \
27 --localstatedir=/var \
28 --enable-libsystemd-login=no \
29 --with-authfw=pam \
30 $CONFIGURE_ARGS &&
31 make && make install &&
33 mkdir -p $install/etc/pam.d &&
34 cp $stuff/polkit-1 $install/etc/pam.d &&
36 # for access file in web interface, will be changed back in post-install to 700
37 chmod 755 "$install/etc/polkit-1/rules.d/"
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 case $PACKAGE in
44 polkit-pam)
45 copy @std
46 DEPENDS="expat glib js pam"
47 PROVIDE="polkit"
48 ;;
49 *-dev)
50 copy @dev
51 DEPENDS="polkit expat-dev glib-dev js-dev pam-dev"
52 PROVIDE="polkit-dev"
53 ;;
54 esac
55 }
57 post_install_polkit() {
58 chroot "$1/" /usr/sbin/addgroup -g 27 polkitd &&
59 chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \
60 -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd
62 mkdir -p "$1/var"
64 chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1"
65 chmod 4755 "$1/usr/bin/pkexec"
67 chmod 700 "$1/etc/polkit-1/rules.d/"
68 chown 27:27 "$1/etc/polkit-1/rules.d/"
70 install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d"
71 }