wok-next view polkit105/receipt @ rev 21567

updated cppunit (1.14.0 -> 1.15.1)
author Hans-G?nter Theisgen
date Mon Jun 22 16:07:43 2020 +0100 (2020-06-22)
parents f48456621a9d
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="polkit105"
4 LEGACY_OF="polkit"; LEGACY_REASON="without JS"
5 VERSION="0.105"
6 CATEGORY="base-system"
7 SHORT_DESC="Application development toolkit for controlling system-wide \
8 privileges"
9 MAINTAINER="al.bobylev@gmail.com"
10 LICENSE="LGPL2"
11 WEB_SITE="https://www.freedesktop.org/wiki/Software/polkit/"
12 LFS="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/polkit.html"
13 REPOLOGY="polkit"
15 TARBALL="polkit-$VERSION.tar.gz"
16 WGET_URL="http://www.freedesktop.org/software/polkit/releases/$TARBALL"
18 BUILD_DEPENDS="libtool automake intltool glib-dev gtk-doc \
19 gobject-introspection-dev expat-dev"
20 SPLIT="$PACKAGE-dev"
22 compile_rules() {
23 libtoolize --force &&
24 aclocal &&
25 autoconf &&
26 automake --add-missing
28 ./configure \
29 --libexecdir=/usr/lib/polkit-1 \
30 --disable-static \
31 --enable-introspection \
32 --with-authfw=shadow \
33 $CONFIGURE_ARGS &&
34 make &&
35 make install
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 polkit105)
41 copy @std
42 DEPENDS="expat glib"
43 ;;
44 *-dev)
45 copy @dev
46 DEPENDS="polkit105 glib-dev"
47 ;;
48 esac
49 }
51 post_install_polkit() {
52 if ! grep -q polkitd "$1/etc/group"; then
53 chroot "$1/" /usr/sbin/addgroup -g 27 polkitd
54 chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \
55 -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd
56 fi
58 chmod 0700 "$1/etc/polkit-1/localauthority/"
59 chmod 0700 "$1/var/lib/polkit-1/"
60 chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1"
61 chmod 4755 "$1/usr/bin/pkexec"
62 }
64 post_remove_polkit() {
65 chroot "$1/" deluser polkitd
66 chroot "$1/" delgroup polkitd
67 }