wok-next diff polkit105/receipt @ rev 21005
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Oct 08 11:41:17 2018 +0300 (2018-10-08) |
parents | |
children | f48456621a9d |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/polkit105/receipt Mon Oct 08 11:41:17 2018 +0300 1.3 @@ -0,0 +1,67 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="polkit105" 1.7 +LEGACY_OF="polkit"; LEGACY_REASON="without JS" 1.8 +VERSION="0.105" 1.9 +CATEGORY="base-system" 1.10 +SHORT_DESC="Application development toolkit for controlling system-wide \ 1.11 +privileges" 1.12 +MAINTAINER="al.bobylev@gmail.com" 1.13 +LICENSE="LGPL2" 1.14 +WEB_SITE="https://www.freedesktop.org/wiki/Software/polkit/" 1.15 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/postlfs/polkit.html" 1.16 +REPOLOGY="polkit" 1.17 + 1.18 +TARBALL="polkit-$VERSION.tar.gz" 1.19 +WGET_URL="http://www.freedesktop.org/software/polkit/releases/$TARBALL" 1.20 + 1.21 +BUILD_DEPENDS="libtool automake intltool glib-dev gtk-doc \ 1.22 +gobject-introspection-dev expat-dev" 1.23 +SPLIT="polkit105-dev" 1.24 + 1.25 +compile_rules() { 1.26 + libtoolize --force && 1.27 + aclocal && 1.28 + autoconf && 1.29 + automake --add-missing 1.30 + 1.31 + ./configure \ 1.32 + --libexecdir=/usr/lib/polkit-1 \ 1.33 + --disable-static \ 1.34 + --enable-introspection \ 1.35 + --with-authfw=shadow \ 1.36 + $CONFIGURE_ARGS && 1.37 + make && 1.38 + make install 1.39 +} 1.40 + 1.41 +genpkg_rules() { 1.42 + case $PACKAGE in 1.43 + polkit105) 1.44 + copy @std 1.45 + DEPENDS="expat glib" 1.46 + ;; 1.47 + *-dev) 1.48 + copy @dev 1.49 + DEPENDS="polkit105 glib-dev" 1.50 + ;; 1.51 + esac 1.52 +} 1.53 + 1.54 +post_install_polkit() { 1.55 + if ! grep -q polkitd "$1/etc/group"; then 1.56 + chroot "$1/" /usr/sbin/addgroup -g 27 polkitd 1.57 + chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \ 1.58 + -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd 1.59 + fi 1.60 + 1.61 + chmod 0700 "$1/etc/polkit-1/localauthority/" 1.62 + chmod 0700 "$1/var/lib/polkit-1/" 1.63 + chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1" 1.64 + chmod 4755 "$1/usr/bin/pkexec" 1.65 +} 1.66 + 1.67 +post_remove_polkit() { 1.68 + chroot "$1/" deluser polkitd 1.69 + chroot "$1/" delgroup polkitd 1.70 +}