wok-next annotate polkit/receipt @ rev 19987

Up cmake (3.9.1), cookutils (980).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 19 23:39:33 2017 +0300 (2017-10-19)
parents c1d8355335f2
children c2c1188bec51
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/"
al@19863 36
al@19863 37 cp $stuff/*.rules $install/etc/polkit-1/rules.d/
slaxemulator@7921 38 }
slaxemulator@7921 39
slaxemulator@7921 40 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7921 41 genpkg_rules()
slaxemulator@7921 42 {
al@19789 43 case $PACKAGE in
al@19789 44 polkit)
al@19789 45 copy @std
al@19789 46 DEPENDS="expat glib js"
al@19789 47 ;;
al@19789 48 *-dev)
al@19789 49 copy @dev
al@19789 50 DEPENDS="polkit expat-dev glib-dev js-dev"
al@19789 51 ;;
al@19789 52 esac
slaxemulator@7921 53 }
al@19789 54
al@19789 55 post_install_polkit() {
al@19789 56 chroot "$1/" /usr/sbin/addgroup -g 27 polkitd &&
al@19789 57 chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \
al@19789 58 -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd
al@19789 59
al@19789 60 mkdir -p "$1/var"
al@19789 61
al@19789 62 chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1"
al@19789 63 chmod 4755 "$1/usr/bin/pkexec"
al@19789 64
al@19789 65 chmod 700 "$1/etc/polkit-1/rules.d/"
al@19789 66 chown 27:27 "$1/etc/polkit-1/rules.d/"
al@19789 67
al@19789 68 install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d"
al@19789 69 }