wok-next diff polkit/receipt @ rev 19789
Add js, up pam, polkit, polkit-pam; fix typo in btrfs-progs.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 20 03:48:54 2017 +0300 (2017-06-20) |
parents | e70c0b9c5adf |
children | e44a1a92452b |
line diff
1.1 --- a/polkit/receipt Fri Jun 16 15:39:43 2017 +0300 1.2 +++ b/polkit/receipt Tue Jun 20 03:48:54 2017 +0300 1.3 @@ -1,45 +1,67 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="polkit" 1.8 -VERSION="0.104" 1.9 +VERSION="0.113" 1.10 CATEGORY="base-system" 1.11 -SHORT_DESC="Application development toolkit for controlling system-wide privileges." 1.12 +SHORT_DESC="Authorization manager" 1.13 MAINTAINER="slaxemulator@gmail.com" 1.14 LICENSE="LGPL2" 1.15 -TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 -WEB_SITE="http://www.freedesktop.org/wiki/Software/PolicyKit" 1.17 -WGET_URL="http://hal.freedesktop.org/releases/$TARBALL" 1.18 +WEB_SITE="https://www.freedesktop.org/wiki/Software/polkit/" 1.19 CROSS="error: cannot check for file existence when cross compiling" 1.20 1.21 -DEPENDS="glib dbus dbus-glib expat util-linux-eject" 1.22 -BUILD_DEPENDS="glib-dev gobject-introspection-dev dbus-dev \ 1.23 -dbus-glib-dev expat-dev intltool" 1.24 +TARBALL="polkit-$VERSION.tar.gz" 1.25 +WGET_URL="http://www.freedesktop.org/software/polkit/releases/$TARBALL" 1.26 + 1.27 +BUILD_DEPENDS="glib-dev js-dev expat-dev intltool \ 1.28 +gobject-introspection-dev gtk-doc" 1.29 +SPLIT="polkit-dev" 1.30 1.31 # Rules to configure and make the package. 1.32 compile_rules() 1.33 { 1.34 + addgroup -g 27 polkitd && 1.35 + adduser -g "PolicyKit Daemon Owner" -h /etc/polkit-1 -u 27 \ 1.36 + -G polkitd -s /bin/false -D polkitd && 1.37 + 1.38 ./configure \ 1.39 - --prefix=/usr \ 1.40 --sysconfdir=/etc \ 1.41 --localstatedir=/var \ 1.42 - --libexecdir=/usr/lib/polkit-1 \ 1.43 - --disable-man-pages \ 1.44 - --disable-gtk-doc \ 1.45 + --enable-libsystemd-login=no \ 1.46 --with-authfw=shadow \ 1.47 $CONFIGURE_ARGS && 1.48 - make && make install 1.49 + make && make install && 1.50 + 1.51 + # for access file in web interface, will be changed back in post-install to 700 1.52 + chmod 755 "$install/etc/polkit-1/rules.d/" 1.53 } 1.54 1.55 # Rules to gen a SliTaz package suitable for Tazpkg. 1.56 genpkg_rules() 1.57 { 1.58 - mkdir -p $fs/usr/lib $fs/usr/share 1.59 - cp -a $install/usr/bin $fs/usr 1.60 - cp -a $install/etc $fs 1.61 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.62 - cp -a $install/usr/lib/polkit-1 $fs/usr/lib 1.63 - rm $fs/usr/lib/polkit-1/extensions/*.*a 1.64 - cp -a $install/usr/share/dbus-1 $fs/usr/share 1.65 - cp -a $install/usr/share/polkit-1 $fs/usr/share 1.66 - cp -a $install/var $fs 1.67 + case $PACKAGE in 1.68 + polkit) 1.69 + copy @std 1.70 + DEPENDS="expat glib js" 1.71 + ;; 1.72 + *-dev) 1.73 + copy @dev 1.74 + DEPENDS="polkit expat-dev glib-dev js-dev" 1.75 + ;; 1.76 + esac 1.77 } 1.78 + 1.79 +post_install_polkit() { 1.80 + chroot "$1/" /usr/sbin/addgroup -g 27 polkitd && 1.81 + chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \ 1.82 + -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd 1.83 + 1.84 + mkdir -p "$1/var" 1.85 + 1.86 + chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1" 1.87 + chmod 4755 "$1/usr/bin/pkexec" 1.88 + 1.89 + chmod 700 "$1/etc/polkit-1/rules.d/" 1.90 + chown 27:27 "$1/etc/polkit-1/rules.d/" 1.91 + 1.92 + install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d" 1.93 +}