wok view cups/receipt @ rev 2711

missing ffmpeg stuff/configure
author Rohit Joshi <jozee@slitaz.org>
date Wed Apr 22 19:07:37 2009 +0000 (2009-04-22)
parents f190c8bb12df
children cd2dbe78928e
line source
1 # SliTaz package receipt.
3 PACKAGE="cups"
4 VERSION="1.3.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="Common UNIX Printing System."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus jpeg libpng tiff \
9 zlib libcomerr libkrb5"
10 BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-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"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --sysconfdir=/etc \
22 --localstatedir=/var \
23 --mandir=/usr/share/man \
24 --enable-static \
25 --disable-ldap \
26 --disable-pam \
27 --with-cups-user=nobody \
28 --with-cups-group=nogroup \
29 --with-languages="de es fr" \
30 $CONFIGURE_ARGS &&
31 make &&
32 make BUILDROOT=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
40 cp -a $_pkg/etc/cups $fs/etc
41 cp -a $_pkg/etc/dbus* $fs/etc
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg/usr/sbin $fs/usr
44 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
45 cp -a $_pkg/usr/lib/cups $fs/usr/lib
46 cp -a $_pkg/usr/share/cups $fs/usr/share
47 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png \
48 $fs/usr/share/pixmaps
49 cp -a $_pkg/var $fs
51 # We need the doc for CSS, images and help in the web interface.
52 cp -a $_pkg/usr/share/doc $fs/usr/share
54 # Daemon script
55 cp -a stuff/etc $fs
56 }
58 # Start cups daemon and edit daemons.conf.
59 post_install()
60 {
61 local root
62 root=$1
63 if [ -z "$root" ]; then
64 /etc/init.d/cupsd start || continue
65 fi
66 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
67 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
68 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
69 echo '' >> $root/etc/daemons.conf
70 fi
71 }
73 # Stop cups daemon before rm.
74 pre_remove()
75 {
76 /etc/init.d/cupsd stop
77 }