# HG changeset patch # User Aleksej Bobylev # Date 1450322715 -7200 # Node ID 77dc6129b023e47ef331fb5b211cf37fac51fbdb # Parent 16d87ac5f8c36ea28889d533844a34a7633169c9 cups, cups-pam: remove duplicate files with libcups; misc. edits. diff -r 16d87ac5f8c3 -r 77dc6129b023 cups-pam/receipt --- a/cups-pam/receipt Wed Dec 16 23:00:12 2015 +0100 +++ b/cups-pam/receipt Thu Dec 17 05:25:15 2015 +0200 @@ -3,7 +3,7 @@ PACKAGE="cups-pam" VERSION="2.0.2" CATEGORY="system-tools" -SHORT_DESC="Common UNIX Printing System with pam support." +SHORT_DESC="Common UNIX Printing System with PAM support." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2 LGPL2" SOURCE="cups" @@ -12,15 +12,13 @@ WGET_URL="http://www.cups.org/software/$VERSION/$TARBALL" PROVIDE="cups:pam" -DEPENDS="libssl libgcrypt cups-doc slitaz-base-files gnutls dbus jpeg libpng tiff \ -zlib pam libcomerr libkrb5 acl libcomerr3 cups-filters" +DEPENDS="pam cups-filters libcups" BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev jpeg-dev libpng-dev tiff-dev \ pam libcomerr-dev pam-dev acl-dev libgcrypt-dev" # Rules to configure and make the package. compile_rules() { - cd $src patch -Np1 -i ${WOK}/cups/stuff/install-sh.u ./configure \ --prefix=/usr \ @@ -36,13 +34,14 @@ $CONFIGURE_ARGS && make && make BUILDROOT=$DESTDIR install + cp -f $WOK/cups/stuff/cups.desktop $install/usr/share/applications/cups.desktop } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps - + mkdir -p $fs/etc $fs/usr/lib $fs/usr/share + cp -a $install/etc/cups $fs/etc cp -a $install/etc/dbus* $fs/etc cp -a $install/usr/bin $fs/usr @@ -50,53 +49,50 @@ cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/cups $fs/usr/lib cp -a $install/usr/share/cups $fs/usr/share - cp -a $install/usr/share/icons/hicolor/32x32/apps/cups.png \ - $fs/usr/share/pixmaps + cp -a $install/usr/share/icons $fs/usr/share cp -a $install/var $fs - + # Remove files provided by cups-filters rm -f $fs/usr/share/cups/banners/* rm -f $fs/usr/share/cups/data/testprint - + + # Remove files provided by libcups + rm -f $fs/usr/lib/libcups.so* + # PAM conf cp -a $stuff/etc $fs # Daemon script - cp -a ${WOK}/cups/stuff/etc $fs + cp -a $WOK/cups/stuff/etc $fs + + # TazPanel link + cp -a $WOK/cups/stuff/var $fs + } -# Start cups daemon and edit daemons.conf. post_install() { - local root - root=$1 - if [ -z "$root" ]; then + # Start CUPS daemon and edit daemons.conf + if [ -z "$1" -a ! -s /aufs-umount.sh ]; then /etc/init.d/cupsd start || continue fi - if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then - echo '# Cups printing daemon options.' >> $root/etc/daemons.conf - echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf - echo '' >> $root/etc/daemons.conf + if ! grep -q ^CUPSD_OPTIONS "$1/etc/daemons.conf"; then + cat >> "$1/etc/daemons.conf" <> $root/etc/daemons.conf - echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf - echo '' >> $root/etc/daemons.conf + if ! grep -q ^CUPSD_OPTIONS "$1/etc/daemons.conf"; then + cat >> "$1/etc/daemons.conf" < /dev/null ; then - echo -n "Starting $DESC: $NAME... " + if ! active_pidfile $PIDFILE cupsd 2>/dev/null; then + action 'Starting $DESC: $NAME... ' $DAEMON $OPTIONS status else - echo -n "Not starting $DESC: $DESC is already running" - false - status + action 'Not starting $DESC: $DESC is already running' + false; status fi ;; *) - echo "" - echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop]" - echo "" + emsg "Usage: /etc/init.d/$(basename $0) [start|stop]" + newline exit 1 ;; esac diff -r 16d87ac5f8c3 -r 77dc6129b023 libcups/receipt --- a/libcups/receipt Wed Dec 16 23:00:12 2015 +0100 +++ b/libcups/receipt Thu Dec 17 05:25:15 2015 +0200 @@ -7,10 +7,10 @@ MAINTAINER="erjo@slitaz.org" LICENSE="GPL2 LGPL2" WEB_SITE="http://www.cups.org/" -WANTED="cups" TAGS="printer printing" -DEPENDS="libssl" +WANTED="cups" +DEPENDS="libgnutls zlib" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() diff -r 16d87ac5f8c3 -r 77dc6129b023 slitaz-menus/receipt --- a/slitaz-menus/receipt Wed Dec 16 23:00:12 2015 +0100 +++ b/slitaz-menus/receipt Thu Dec 17 05:25:15 2015 +0200 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="slitaz-menus" -VERSION="2.4.2" +VERSION="2.4.3" CATEGORY="x-window" SHORT_DESC="SliTaz i18n Freedesktop menus" MAINTAINER="pankso@slitaz.org" diff -r 16d87ac5f8c3 -r 77dc6129b023 slitaz-menus/stuff/desktop-directories/Science.directory --- a/slitaz-menus/stuff/desktop-directories/Science.directory Wed Dec 16 23:00:12 2015 +0100 +++ b/slitaz-menus/stuff/desktop-directories/Science.directory Thu Dec 17 05:25:15 2015 +0200 @@ -1,5 +1,4 @@ [Desktop Entry] -Encoding=UTF-8 Type=Directory Name=Science Name[br]=Skiant