wok view cups/receipt @ rev 15166
rhino: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 15 22:27:16 2013 +0000 (2013-08-15) |
parents | a6452de6a141 |
children | 78cb1e930abd |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups"
4 VERSION="1.6.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Common UNIX Printing System."
7 MAINTAINER="erjo@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
9 WEB_SITE="http://www.cups.org/"
10 WGET_URL="http://www.cups.org/software/$VERSION/$TARBALL"
11 TAGS="printer printing"
13 DEPENDS="libssl slitaz-base-files libgcrypt gnutls dbus jpeg libpng tiff zlib \
14 libcomerr cups-doc libkrb5 libcomerr3 gcc-lib-base libusb-compat libtasn1 acl poppler-apps"
15 BUILD_DEPENDS="libgcrypt-dev gnutls-dev dbus-dev jpeg-dev libpng-dev \
16 tiff-dev zlib-dev libtasn1-dev openssl-dev libusb-compat-dev php-dev \
17 acl-dev poppler-apps"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 patch -Np1 -i $stuff/install-sh.u
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc \
27 --localstatedir=/var \
28 --mandir=/usr/share/man \
29 --enable-static \
30 --disable-ldap \
31 --disable-pam \
32 --disable-gssapi \
33 --disable-acl \
34 --disable-slp \
35 --enable-dbus \
36 --with-dbusdir=/etc/dbus-1 \
37 --with-cups-user=nobody \
38 --with-cups-group=nogroup \
39 --with-languages="de es fr" \
40 --with-pdftops=pdftops \
41 $CONFIGURE_ARGS &&
42 make &&
43 make BUILDROOT=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
52 cp -a $install/etc/cups $fs/etc
53 cp -a $install/etc/dbus* $fs/etc
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/sbin $fs/usr
56 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 cp -a $install/usr/lib/cups $fs/usr/lib
58 cp -a $install/usr/share/cups $fs/usr/share
59 cp -a $install/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
60 cp -a $install/var $fs
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
74 # Tazpanel link
75 cp -a $stuff/var $fs
76 }
78 # Start cups daemon and edit daemons.conf.
79 post_install()
80 {
81 local root
82 root=$1
83 if [ -z "$root" ]; then
84 /etc/init.d/cupsd start || continue
85 fi
86 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
87 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
88 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
89 echo '' >> $root/etc/daemons.conf
90 fi
91 }
93 # Stop cups daemon before rm.
94 pre_remove()
95 {
96 local root
97 root=$1
98 if [ -z "$root" ]; then
99 /etc/init.d/cupsd stop
100 fi
101 }
103 # Overlap busybox
104 pre_install()
105 {
106 rm -f $1/usr/bin/lpr
107 }
109 post_remove()
110 {
111 ln -s /bin/busybox $1/usr/bin/lpr
112 }