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