wok-next view cups/receipt @ rev 7980

cups: switch openssl depends to libssl
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Jan 17 19:22:47 2011 +0100 (2011-01-17)
parents 163b99add810
children 00f520af3c9b
line source
1 # SliTaz package receipt.
3 PACKAGE="cups"
4 VERSION="1.4.6"
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 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="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 ./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 --enable-dbus \
32 --with-dbusdir=/etc/dbus-1 \
33 --with-cups-user=nobody \
34 --with-cups-group=nogroup \
35 --with-languages="de es fr" \
36 $CONFIGURE_ARGS &&
37 make &&
38 make BUILDROOT=$PWD/_pkg install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
47 cp -a $_pkg/etc/cups $fs/etc
48 cp -a $_pkg/etc/dbus* $fs/etc
49 cp -a $_pkg/usr/bin $fs/usr
50 cp -a $_pkg/usr/sbin $fs/usr
51 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
52 cp -a $_pkg/usr/lib/cups $fs/usr/lib
53 cp -a $_pkg/usr/share/cups $fs/usr/share
54 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
55 cp -a $_pkg/var $fs
57 # We need the doc for CSS, images and help in the web interface.
58 cp -a $_pkg/usr/share/doc $fs/usr/share
60 # tazwok does not strip files other than .so in usr/lib
62 for dir in $fs/usr/lib/cups
63 do
64 if [ -d "$dir" ]; then
65 find $dir -type f -exec strip -s '{}' 2>/dev/null \;
66 fi
67 done
69 # Daemon script
70 cp -a stuff/etc $fs
72 # compress some driver files, adopted from arch and fedora
73 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
75 }
77 # Start cups daemon and edit daemons.conf.
78 post_install()
79 {
80 local root
81 root=$1
82 if [ -z "$root" ]; then
83 /etc/init.d/cupsd start || continue
84 fi
85 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
86 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
87 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
88 echo '' >> $root/etc/daemons.conf
89 fi
90 }
92 # Stop cups daemon before rm.
93 pre_remove()
94 {
95 /etc/init.d/cupsd stop
96 }