wok-next view polkit/receipt @ rev 20224

Up inkscape and it's deps:
gtest, imagemagick, imagemagick6;
add libcdr, librevenge, libvisio, libwpd, libwpg, potrace.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Nov 05 18:29:48 2017 +0200 (2017-11-05)
parents c1d8355335f2
children c2c1188bec51
line source
1 # SliTaz package receipt v2.
3 PACKAGE="polkit"
4 VERSION="0.113"
5 CATEGORY="base-system"
6 SHORT_DESC="Authorization manager"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/polkit/"
10 CROSS="error: cannot check for file existence when cross compiling"
12 TARBALL="polkit-$VERSION.tar.gz"
13 WGET_URL="http://www.freedesktop.org/software/polkit/releases/$TARBALL"
15 BUILD_DEPENDS="glib-dev js-dev expat-dev intltool \
16 gobject-introspection-dev gtk-doc"
17 SPLIT="polkit-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 addgroup -g 27 polkitd &&
23 adduser -g "PolicyKit Daemon Owner" -h /etc/polkit-1 -u 27 \
24 -G polkitd -s /bin/false -D polkitd &&
26 ./configure \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --enable-libsystemd-login=no \
30 --with-authfw=shadow \
31 $CONFIGURE_ARGS &&
32 make && make install &&
34 # for access file in web interface, will be changed back in post-install to 700
35 chmod 755 "$install/etc/polkit-1/rules.d/"
37 cp $stuff/*.rules $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)
45 copy @std
46 DEPENDS="expat glib js"
47 ;;
48 *-dev)
49 copy @dev
50 DEPENDS="polkit expat-dev glib-dev js-dev"
51 ;;
52 esac
53 }
55 post_install_polkit() {
56 chroot "$1/" /usr/sbin/addgroup -g 27 polkitd &&
57 chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \
58 -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd
60 mkdir -p "$1/var"
62 chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1"
63 chmod 4755 "$1/usr/bin/pkexec"
65 chmod 700 "$1/etc/polkit-1/rules.d/"
66 chown 27:27 "$1/etc/polkit-1/rules.d/"
68 install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d"
69 }