wok-next diff polkit-pam/receipt @ rev 19941
gst0-ffmpeg*: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 15 19:06:21 2017 +0200 (2017-10-15) |
parents | e70c0b9c5adf |
children |
line diff
1.1 --- a/polkit-pam/receipt Fri Jun 16 15:39:43 2017 +0300 1.2 +++ b/polkit-pam/receipt Sun Oct 15 19:06:21 2017 +0200 1.3 @@ -1,47 +1,71 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="polkit-pam" 1.8 -VERSION="0.104" 1.9 +VERSION="0.113" 1.10 CATEGORY="base-system" 1.11 -SHORT_DESC="Polkit with PAM support." 1.12 +SHORT_DESC="Authorization manager, with PAM support" 1.13 MAINTAINER="slaxemulator@gmail.com" 1.14 LICENSE="LGPL2" 1.15 -SOURCE="polkit" 1.16 -TARBALL="$SOURCE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://www.freedesktop.org/wiki/Software/PolicyKit" 1.18 -WGET_URL="http://hal.freedesktop.org/releases/$TARBALL" 1.19 -PROVIDE="polkit" 1.20 +WEB_SITE="https://www.freedesktop.org/wiki/Software/polkit/" 1.21 1.22 -DEPENDS="glib gobject-introspection dbus dbus-glib expat pam" 1.23 -BUILD_DEPENDS="glib-dev gobject-introspection-dev dbus-dev \ 1.24 -dbus-glib-dev expat-dev pam-dev intltool" 1.25 +TARBALL="polkit-$VERSION.tar.gz" 1.26 +WGET_URL="http://www.freedesktop.org/software/polkit/releases/$TARBALL" 1.27 + 1.28 +BUILD_DEPENDS="glib-dev js-dev expat-dev intltool pam-dev \ 1.29 +gobject-introspection-dev gtk-doc" 1.30 +SPLIT="polkit-pam-dev" 1.31 1.32 # Rules to configure and make the package. 1.33 compile_rules() 1.34 { 1.35 - cd $src 1.36 + addgroup -g 27 polkitd && 1.37 + adduser -g "PolicyKit Daemon Owner" -h /etc/polkit-1 -u 27 \ 1.38 + -G polkitd -s /bin/false -D polkitd && 1.39 + 1.40 ./configure \ 1.41 - --prefix=/usr \ 1.42 --sysconfdir=/etc \ 1.43 --localstatedir=/var \ 1.44 - --libexecdir=/usr/lib/polkit-1 \ 1.45 - --disable-man-pages \ 1.46 - --disable-gtk-doc \ 1.47 + --enable-libsystemd-login=no \ 1.48 --with-authfw=pam \ 1.49 $CONFIGURE_ARGS && 1.50 - make && make install 1.51 + make && make install && 1.52 + 1.53 + mkdir -p $install/etc/pam.d && 1.54 + cp $stuff/polkit-1 $install/etc/pam.d && 1.55 + 1.56 + # for access file in web interface, will be changed back in post-install to 700 1.57 + chmod 755 "$install/etc/polkit-1/rules.d/" 1.58 } 1.59 1.60 # Rules to gen a SliTaz package suitable for Tazpkg. 1.61 genpkg_rules() 1.62 { 1.63 - mkdir -p $fs/usr/lib $fs/usr/share 1.64 - cp -a $install/usr/bin $fs/usr 1.65 - cp -a $install/etc $fs 1.66 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.67 - cp -a $install/usr/lib/polkit-1 $fs/usr/lib 1.68 - rm $fs/usr/lib/polkit-1/extensions/*.*a 1.69 - cp -a $install/usr/share/dbus-1 $fs/usr/share 1.70 - cp -a $install/usr/share/polkit-1 $fs/usr/share 1.71 - cp -a $install/var $fs 1.72 + case $PACKAGE in 1.73 + polkit-pam) 1.74 + copy @std 1.75 + DEPENDS="expat glib js pam" 1.76 + PROVIDE="polkit" 1.77 + ;; 1.78 + *-dev) 1.79 + copy @dev 1.80 + DEPENDS="polkit expat-dev glib-dev js-dev pam-dev" 1.81 + PROVIDE="polkit-dev" 1.82 + ;; 1.83 + esac 1.84 } 1.85 + 1.86 +post_install_polkit() { 1.87 + chroot "$1/" /usr/sbin/addgroup -g 27 polkitd && 1.88 + chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \ 1.89 + -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd 1.90 + 1.91 + mkdir -p "$1/var" 1.92 + 1.93 + chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1" 1.94 + chmod 4755 "$1/usr/bin/pkexec" 1.95 + 1.96 + chmod 700 "$1/etc/polkit-1/rules.d/" 1.97 + chown 27:27 "$1/etc/polkit-1/rules.d/" 1.98 + 1.99 + install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d" 1.100 +}