wok view cups/receipt @ rev 13501

zfs-fuse: remove man pages
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 13 11:49:15 2012 +0200 (2012-10-13)
parents c4004328943b
children 21cd28c4630a
line source
1 # SliTaz package receipt.
3 PACKAGE="cups"
4 VERSION="1.5.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Common UNIX Printing System."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="libssl slitaz-base-files gnutls dbus jpeg libpng tiff zlib \
9 libcomerr libkrb5 gcc-lib-base libusb-compat libtasn1 poppler-apps"
10 BUILD_DEPENDS="openssl-dev php-dev poppler-apps"
11 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
12 WEB_SITE="http://www.cups.org/"
13 WGET_URL="ftp://ftp.easysw.com/pub/cups/$VERSION/$TARBALL"
14 TAGS="printer printing"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -p1 < $stuff/install-sh.u
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --localstatedir=/var \
25 --mandir=/usr/share/man \
26 --enable-static \
27 --disable-ldap \
28 --disable-pam \
29 --disable-gssapi \
30 --disable-acl \
31 --disable-slp \
32 --enable-dbus \
33 --with-dbusdir=/etc/dbus-1 \
34 --with-cups-user=nobody \
35 --with-cups-group=nogroup \
36 --with-languages="de es fr" \
37 --with-pdftops=pdftops \
38 $CONFIGURE_ARGS &&
39 make &&
40 make BUILDROOT=$PWD/_pkg install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
49 cp -a $_pkg/etc/cups $fs/etc
50 cp -a $_pkg/etc/dbus* $fs/etc
51 cp -a $_pkg/usr/bin $fs/usr
52 cp -a $_pkg/usr/sbin $fs/usr
53 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
54 cp -a $_pkg/usr/lib/cups $fs/usr/lib
55 cp -a $_pkg/usr/share/cups $fs/usr/share
56 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
57 cp -a $_pkg/var $fs
59 # We need the doc for CSS, images and help in the web interface.
60 cp -a $_pkg/usr/share/doc $fs/usr/share
62 # tazwok does not strip files other than .so in usr/lib
64 for dir in $fs/usr/lib/cups
65 do
66 if [ -d "$dir" ]; then
67 find $dir -type f -exec strip -s '{}' 2>/dev/null \;
68 fi
69 done
71 # Daemon script
72 cp -a $stuff/etc $fs
73 }
75 # Start cups daemon and edit daemons.conf.
76 post_install()
77 {
78 local root
79 root=$1
80 if [ -z "$root" ]; 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 /etc/init.d/cupsd stop
94 }
96 # Overlap busybox
97 pre_install()
98 {
99 rm -f $1/usr/bin/lpr
100 }
102 post_remove()
103 {
104 ln -s /bin/busybox /usr/bin/lpr
105 }