wok view cups/receipt @ rev 17351

Up slitaz-tools (5.8.13)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri Nov 14 22:59:33 2014 +0100 (2014-11-14)
parents ed3853c1fdf0
children 7937664be9cc
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 LICENSE="GPL2 LGPL2"
9 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
10 WEB_SITE="http://www.cups.org/"
11 WGET_URL="http://www.cups.org/software/$VERSION/$TARBALL"
12 TAGS="printer printing"
14 DEPENDS="libssl slitaz-base-files libgcrypt gnutls dbus jpeg libpng tiff zlib \
15 libcomerr cups-doc libkrb5 libcomerr3 gcc-lib-base libusb-compat libtasn1 acl poppler-apps"
16 BUILD_DEPENDS="libgcrypt-dev gnutls-dev dbus-dev jpeg-dev libpng-dev \
17 tiff-dev zlib-dev libtasn1-dev openssl-dev libusb-compat-dev php-dev \
18 acl-dev poppler-apps"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 patch -Np1 -i $stuff/install-sh.u
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --mandir=/usr/share/man \
30 --enable-static \
31 --disable-ldap \
32 --disable-pam \
33 --disable-gssapi \
34 --disable-acl \
35 --disable-slp \
36 --enable-dbus \
37 --with-dbusdir=/etc/dbus-1 \
38 --with-cups-user=nobody \
39 --with-cups-group=nogroup \
40 --with-languages="de es fr pt_BR ru" \
41 --with-pdftops=pdftops \
42 $CONFIGURE_ARGS &&
43 make &&
44 make BUILDROOT=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
53 cp -a $install/etc/cups $fs/etc
54 cp -a $install/etc/dbus* $fs/etc
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/sbin $fs/usr
57 cp -a $install/usr/lib/*.so* $fs/usr/lib
58 cp -a $install/usr/lib/cups $fs/usr/lib
59 cp -a $install/usr/share/cups $fs/usr/share
60 cp -a $install/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
61 cp -a $install/var $fs
63 # Daemon script
64 cp -a $stuff/etc $fs
66 # Tazpanel link
67 cp -a $stuff/var $fs
68 }
70 # Start cups daemon and edit daemons.conf.
71 post_install()
72 {
73 local root
74 root=$1
75 if [ -z "$root" -a ! -s /aufs-umount.sh ]; then
76 /etc/init.d/cupsd start || continue
77 fi
78 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
79 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
80 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
81 echo '' >> $root/etc/daemons.conf
82 fi
83 }
85 # Stop cups daemon before rm.
86 pre_remove()
87 {
88 local root
89 root=$1
90 if [ -z "$root" ]; then
91 /etc/init.d/cupsd stop
92 fi
93 }
95 # Overlap busybox
96 pre_install()
97 {
98 rm -f $1/usr/bin/lpr
99 }
101 post_remove()
102 {
103 ln -s /bin/busybox $1/usr/bin/lpr
104 }