wok-6.x view cups/receipt @ rev 14651
get-libaacs: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 04 12:23:01 2013 +0200 (2013-06-04) |
parents | d66c8cb687e8 |
children | 153f3ed96c2d |
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
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 local root
94 root=$1
95 if [ -z "$root" ]; then
96 /etc/init.d/cupsd stop
97 fi
98 }
100 # Overlap busybox
101 pre_install()
102 {
103 rm -f $1/usr/bin/lpr
104 }
106 post_remove()
107 {
108 ln -s /bin/busybox $1/usr/bin/lpr
109 }