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