wok-next view polkit/receipt @ rev 19811
Up btrfs-progs, fuse, gtkmm, gtkmm-dev, jfsutils, libaal, libacpi, libaio, libarchive, libart_lgpl, libass, libbonoboui, libcddb, libcdio, libconfig, libcroco, libcss, libparserutils, libwapcaplet, slitaz-i18n-extra; (re)move locale-*-extra -> slitaz-i18n-extra; add netsurf-buildsystem.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jul 20 00:33:52 2017 +0300 (2017-07-20) |
parents | e70c0b9c5adf |
children | e44a1a92452b |
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/"
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 case $PACKAGE in
42 polkit)
43 copy @std
44 DEPENDS="expat glib js"
45 ;;
46 *-dev)
47 copy @dev
48 DEPENDS="polkit expat-dev glib-dev js-dev"
49 ;;
50 esac
51 }
53 post_install_polkit() {
54 chroot "$1/" /usr/sbin/addgroup -g 27 polkitd &&
55 chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \
56 -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd
58 mkdir -p "$1/var"
60 chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1"
61 chmod 4755 "$1/usr/bin/pkexec"
63 chmod 700 "$1/etc/polkit-1/rules.d/"
64 chown 27:27 "$1/etc/polkit-1/rules.d/"
66 install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d"
67 }