wok-6.x view cups/receipt @ rev 18084
Add wmctrl
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Fri May 22 19:32:45 2015 -0300 (2015-05-22) |
parents | 7937664be9cc |
children | feb2e0c63d21 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups"
4 VERSION="2.0.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Common UNIX Printing System."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2 LGPL2"
9 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
10 WEB_SITE="http://www.cups.org/"
11 WGET_URL="http://www.cups.org/software/$VERSION/$TARBALL"
12 TAGS="printer printing"
14 DEPENDS="libssl slitaz-base-files libgcrypt gnutls dbus jpeg libpng tiff zlib \
15 libcomerr cups-doc libkrb5 libcomerr3 gcc-lib-base libusb-compat libtasn1 acl \
16 poppler-apps cups-filters"
17 BUILD_DEPENDS="libgcrypt-dev gnutls-dev dbus-dev jpeg-dev libpng-dev \
18 tiff-dev zlib-dev libtasn1-dev openssl-dev libusb-compat-dev php-dev \
19 acl-dev poppler-apps"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 patch -Np1 -i $stuff/install-sh.u
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --localstatedir=/var \
30 --mandir=/usr/share/man \
31 --enable-static \
32 --disable-ldap \
33 --disable-pam \
34 --disable-gssapi \
35 --disable-acl \
36 --disable-slp \
37 --enable-dbus \
38 --with-dbusdir=/etc/dbus-1 \
39 --with-cups-user=nobody \
40 --with-cups-group=nogroup \
41 --with-languages="de es fr pt_BR ru" \
42 --with-pdftops=pdftops \
43 $CONFIGURE_ARGS &&
44 make &&
45 make BUILDROOT=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
54 cp -a $install/etc/cups $fs/etc
55 cp -a $install/etc/dbus* $fs/etc
56 cp -a $install/usr/bin $fs/usr
57 cp -a $install/usr/sbin $fs/usr
58 cp -a $install/usr/lib/*.so* $fs/usr/lib
59 cp -a $install/usr/lib/cups $fs/usr/lib
60 cp -a $install/usr/share/cups $fs/usr/share
61 cp -a $install/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
62 cp -a $install/var $fs
64 # Remove files provided by cups-filters
65 rm -f $fs/usr/share/cups/banners/*
66 rm -f $fs/usr/share/cups/data/testprint
68 # Daemon script
69 cp -a $stuff/etc $fs
71 # Tazpanel link
72 cp -a $stuff/var $fs
73 }
75 # Start cups daemon and edit daemons.conf.
76 post_install()
77 {
78 local root
79 root=$1
80 if [ -z "$root" -a ! -s /aufs-umount.sh ]; then
81 /etc/init.d/cupsd start || continue
82 fi
83 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
84 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
85 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
86 echo '' >> $root/etc/daemons.conf
87 fi
88 }
90 # Stop cups daemon before rm.
91 pre_remove()
92 {
93 local root
94 root=$1
95 if [ -z "$root" ]; then
96 /etc/init.d/cupsd stop
97 fi
98 }
100 # Overlap busybox
101 pre_install()
102 {
103 rm -f $1/usr/bin/lpr
104 }
106 post_remove()
107 {
108 ln -s /bin/busybox $1/usr/bin/lpr
109 }