wok-next view polkit-no-script/receipt @ rev 21379
updated mspdebug (0.17 -> 0.25)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 16:31:49 2020 +0100 (2020-04-16) |
parents | |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="polkit-no-script"
4 VERSION="0.113"
5 COMMIT="bc8423c"
6 CATEGORY="base-system"
7 SHORT_DESC="Authorization manager - no-script fork"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="LGPL2"
10 WEB_SITE="https://github.com/ikeydoherty/polkit-no-script"
11 # See also https://dev.getsol.us/T4824
13 TARBALL="$PACKAGE-$COMMIT.tar.gz"
14 WGET_URL="https://github.com/ikeydoherty/polkit-no-script/archive/$COMMIT.tar.gz"
15 TARBALL_SHA1="07f3bc5c9126c60dec5d16600e05c7b908d5426f"
17 BUILD_DEPENDS="automake libtool gtk-doc glib-dev gobject-introspection-dev \
18 intltool gettext-dev expat-dev"
19 SPLIT="$PACKAGE-dev $PACKAGE"
21 COPY_dev="@dev gettext/"
23 DEPENDS_std="expat glib"
24 DEPENDS_dev="$PACKAGE expat-dev glib-dev"
26 compile_rules() {
27 if ! grep -q polkitd "/etc/passwd"; then
28 addgroup -g 27 polkitd
29 adduser -g "PolicyKit Daemon Owner" -h /etc/polkit-1 -u 27 \
30 -G polkitd -s /bin/false -D polkitd
31 fi
33 ./autogen.sh \
34 --disable-static \
35 --enable-libsystemd-login=no \
36 --enable-libelogind=no \
37 --with-authfw=shadow \
38 --disable-test \
39 $CONFIGURE_ARGS &&
40 fix libtool &&
41 make &&
42 make install || return 1
44 # for access file in web interface, will be changed back in post-install to 700
45 chmod 755 "$install/etc/polkit-1/rules.d/" \
46 "$install/usr/share/polkit-1/rules.d/"
47 chown 0:0 "$install/usr/share/polkit-1/rules.d/"
49 cp $stuff/*.keyrules $install/usr/share/polkit-1/rules.d/
50 }
52 post_install_polkit_no_script() {
53 if ! grep -q polkitd "$1/etc/group"; then
54 chroot "$1/" /usr/sbin/addgroup -g 27 polkitd
55 chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \
56 -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd
57 fi
59 mkdir -p "$1/var"
61 chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1"
62 chmod 4755 "$1/usr/bin/pkexec"
64 chmod 700 "$1/etc/polkit-1/rules.d/" "$1/usr/share/polkit-1/rules.d/"
65 chown 27:0 "$1/etc/polkit-1/rules.d/" "$1/usr/share/polkit-1/rules.d/"
66 }
68 post_remove_polkit_no_script() {
69 chroot "$1/" deluser polkitd
70 chroot "$1/" delgroup polkitd
71 }