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