# HG changeset patch # User Aleksej Bobylev # Date 1520911446 -7200 # Node ID 4c1ed6983d05b6526d917f943b675b6cc753985b # Parent 2f03cb67a994759be2ce8f5eb6339019e8fa9790 Up c_icap, colord, compiz-core, gtksourceview3, libsdl-perl, p910nd, polkit diff -r 2f03cb67a994 -r 4c1ed6983d05 c_icap/receipt --- a/c_icap/receipt Tue Mar 13 02:04:32 2018 +0200 +++ b/c_icap/receipt Tue Mar 13 05:24:06 2018 +0200 @@ -14,29 +14,27 @@ BUILD_DEPENDS="zlib-dev" SPLIT="c_icap-dev" -# Rules to configure and make the package. -compile_rules() -{ +compile_rules() { + sed -i '/sysconfdir=/ s|^|#|' /etc/slitaz/cook.site # default sysconfdir=/etc + ./configure \ --sysconfdir=/etc/c-icap \ --enable-large-files \ $CONFIGURE_ARGS && - make && make install && + make && make install || return 1 - mkdir -p $install/etc/init.d/ $install/var/log/c-icap/ && - install -m755 $stuff/c-icapd $install/etc/init.d && + mkdir -p $install/etc/init.d/ $install/var/log/c-icap/ + install -m755 $stuff/c-icapd $install/etc/init.d # Fix config file sed -i -e "s|YourServerName|localhost|; s|/usr/var/log|/var/log/c-icap/|; s|/usr/var/run/|/var/run/c-icap|; - s|/usr/etc|/etc/c-icap|" $install/etc/c-icap/c-icap.conf && + s|/usr/etc|/etc/c-icap|" $install/etc/c-icap/c-icap.conf chmod -x $install/etc/c-icap/* } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ +genpkg_rules() { case $PACKAGE in c_icap) copy @std var/log/c-icap/ @@ -52,13 +50,13 @@ [ -n "$quiet" ] || cat < $WOK/$PACKAGE/description.txt - ln -s daemon $fs/etc/init.d/p910nd +genpkg_rules() { + copy @std + TAGS="printer" } - diff -r 2f03cb67a994 -r 4c1ed6983d05 polkit/receipt --- a/polkit/receipt Tue Mar 13 02:04:32 2018 +0200 +++ b/polkit/receipt Tue Mar 13 05:24:06 2018 +0200 @@ -75,9 +75,11 @@ } post_install_polkit() { - chroot "$1/" /usr/sbin/addgroup -g 27 polkitd && - chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \ - -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd + if ! grep -q polkitd "$1/etc/group"; then + chroot "$1/" /usr/sbin/addgroup -g 27 polkitd + chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \ + -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd + fi mkdir -p "$1/var" @@ -90,10 +92,17 @@ install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d" } +post_remove_polkit() { + chroot "$1/" deluser polkitd + chroot "$1/" delgroup polkitd +} + post_install_polkit_pam() { - chroot "$1/" /usr/sbin/addgroup -g 27 polkitd && - chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \ - -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd + if ! grep -q polkitd "$1/etc/group"; then + chroot "$1/" /usr/sbin/addgroup -g 27 polkitd + chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \ + -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd + fi mkdir -p "$1/var" @@ -105,3 +114,8 @@ install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d" } + +post_remove_polkit_pam() { + chroot "$1/" deluser polkitd + chroot "$1/" delgroup polkitd +}