wok-next rev 21410

updated polkit (0.113 -> 0.116)
author Hans-G?nter Theisgen
date Fri Apr 24 17:53:05 2020 +0100 (2020-04-24)
parents c2763f7c58b6
children dc4a1cf32af9
files polkit/receipt
line diff
     1.1 --- a/polkit/receipt	Fri Apr 24 17:45:51 2020 +0100
     1.2 +++ b/polkit/receipt	Fri Apr 24 17:53:05 2020 +0100
     1.3 @@ -1,10 +1,10 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="polkit"
     1.7 -VERSION="0.113"
     1.8 +VERSION="0.116"
     1.9  CATEGORY="base-system"
    1.10  SHORT_DESC="Authorization manager"
    1.11 -MAINTAINER="devel@slitaz.org"
    1.12 +MAINTAINER="maintainer@slitaz.org"
    1.13  LICENSE="LGPL2"
    1.14  WEB_SITE="https://www.freedesktop.org/wiki/Software/polkit/"
    1.15  LFS="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/polkit.html"
    1.16 @@ -14,8 +14,8 @@
    1.17  TARBALL_SHA1="ef855c2d04184dceb38e0940dc7bec9cc3da415c"
    1.18  
    1.19  JS='js185'
    1.20 -BUILD_DEPENDS="glib-dev $JS-dev expat-dev intltool pam-dev \
    1.21 -gobject-introspection-dev gtk-doc"
    1.22 +BUILD_DEPENDS="expat-dev glib-dev gobject-introspection-dev gtk-doc 
    1.23 +	intltool $JS-dev pam-dev"
    1.24  SPLIT="$PACKAGE-dev $PACKAGE-pam:pam $PACKAGE-pam-dev:pam"
    1.25  
    1.26  COPY_pam="@std"
    1.27 @@ -32,8 +32,10 @@
    1.28  PROVIDE_pam="$PACKAGE:pam"
    1.29  PROVIDE_pam_dev="$PACKAGE-dev:pam"
    1.30  
    1.31 -compile_rules() {
    1.32 -	if ! grep -q polkitd "/etc/passwd"; then
    1.33 +compile_rules()
    1.34 +{
    1.35 +	if ! grep -q polkitd "/etc/passwd"
    1.36 +	  then
    1.37  		addgroup -g 27 polkitd
    1.38  		adduser -g "PolicyKit Daemon Owner" -h /etc/polkit-1 -u 27 \
    1.39  			-G polkitd -s /bin/false -D polkitd
    1.40 @@ -44,18 +46,19 @@
    1.41  		pam) SET_ARGS='--with-authfw=pam';;
    1.42  	esac
    1.43  
    1.44 -	./configure \
    1.45 -		--disable-static \
    1.46 -		--enable-libsystemd-login=no \
    1.47 -		--enable-libelogind=no \
    1.48 -		$SET_ARGS \
    1.49 +	./configure				\
    1.50 +		--disable-static		\
    1.51 +		--enable-libsystemd-login=no	\
    1.52 +		--enable-libelogind=no		\
    1.53 +		$SET_ARGS			\
    1.54  		$CONFIGURE_ARGS &&
    1.55  	fix libtool &&
    1.56  	make &&
    1.57  	make install || return 1
    1.58  
    1.59  	case "$SET" in
    1.60 -		pam) install -Dm644 $stuff/polkit-1 $install/etc/pam.d/polkit-1;;
    1.61 +		pam)
    1.62 +			install -Dm644 $stuff/polkit-1 $install/etc/pam.d/polkit-1;;
    1.63  	esac
    1.64  
    1.65  	# for access file in web interface, will be changed back in post-install to 700
    1.66 @@ -64,8 +67,10 @@
    1.67  	cp $stuff/*.rules $install/etc/polkit-1/rules.d/
    1.68  }
    1.69  
    1.70 -post_install_polkit() {
    1.71 -	if ! grep -q polkitd "$1/etc/group"; then
    1.72 +post_install_polkit()
    1.73 +{
    1.74 +	if ! grep -q polkitd "$1/etc/group"
    1.75 +	  then
    1.76  		chroot "$1/" /usr/sbin/addgroup -g 27 polkitd
    1.77  		chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \
    1.78  			-h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd
    1.79 @@ -82,13 +87,16 @@
    1.80  	install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d"
    1.81  }
    1.82  
    1.83 -post_remove_polkit() {
    1.84 +post_remove_polkit()
    1.85 +{
    1.86  	chroot "$1/" deluser  polkitd
    1.87  	chroot "$1/" delgroup polkitd
    1.88  }
    1.89  
    1.90 -post_install_polkit_pam() {
    1.91 -	if ! grep -q polkitd "$1/etc/group"; then
    1.92 +post_install_polkit_pam()
    1.93 +{
    1.94 +	if ! grep -q polkitd "$1/etc/group"
    1.95 +	  then
    1.96  		chroot "$1/" /usr/sbin/addgroup -g 27 polkitd
    1.97  		chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \
    1.98  			-h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd
    1.99 @@ -105,7 +113,8 @@
   1.100  	install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d"
   1.101  }
   1.102  
   1.103 -post_remove_polkit_pam() {
   1.104 +post_remove_polkit_pam()
   1.105 +{
   1.106  	chroot "$1/" deluser  polkitd
   1.107  	chroot "$1/" delgroup polkitd
   1.108  }