wok-next view cups/receipt @ rev 5848
xfmedia: Fix BUILD_DEPENDS
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jul 16 16:00:31 2010 +0200 (2010-07-16) |
parents | 39011a13b555 |
children | c5f3445b2769 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups"
4 VERSION="1.4.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Common UNIX Printing System."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="openssl slitaz-base-files gnutls dbus jpeg libpng tiff zlib \
9 libcomerr libkrb5 gcc-lib-base libusb libtasn1"
10 BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev gnutls php-dev"
11 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
12 WEB_SITE="http://www.cups.org/"
13 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL"
14 TAGS="printer printing"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 --localstatedir=/var \
24 --mandir=/usr/share/man \
25 --enable-static \
26 --disable-ldap \
27 --disable-pam \
28 --disable-gssapi \
29 --disable-acl \
30 --disable-slp \
31 --with-cups-user=nobody \
32 --with-cups-group=nogroup \
33 --with-languages="de es fr" \
34 $CONFIGURE_ARGS &&
35 make &&
36 make BUILDROOT=$PWD/_pkg install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
45 cp -a $_pkg/etc/cups $fs/etc
46 cp -a $_pkg/etc/dbus* $fs/etc
47 cp -a $_pkg/usr/bin $fs/usr
48 cp -a $_pkg/usr/sbin $fs/usr
49 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
50 cp -a $_pkg/usr/lib/cups $fs/usr/lib
51 cp -a $_pkg/usr/share/cups $fs/usr/share
52 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
53 cp -a $_pkg/var $fs
55 # We need the doc for CSS, images and help in the web interface.
56 cp -a $_pkg/usr/share/doc $fs/usr/share
58 # tazwok does not strip files other than .so in usr/lib
60 for dir in $fs/usr/lib/cups
61 do
62 if [ -d "$dir" ]; then
63 find $dir -type f -exec strip -s '{}' 2>/dev/null \;
64 fi
65 done
67 # Daemon script
68 cp -a stuff/etc $fs
70 # compress some driver files, adopted from arch and fedora
71 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
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 }