wok view cups/receipt @ rev 632

Add: cups (Common UNIX Printing System)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 21 15:45:27 2008 +0200 (2008-04-21)
parents
children 2f416a878f2e
line source
1 # SliTaz package receipt.
3 PACKAGE="cups"
4 VERSION="1.3.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="Common UNIX Printing System."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="openssl"
9 BUILD_DEPENDS="openssl-dev"
10 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
11 WEB_SITE="http://www.cups.org/"
12 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=$PWD/_pkg/usr \
20 --sysconfdir=$PWD/_pkg/etc \
21 --localstatedir=$PWD/_pkg/var \
22 --mandir=$PWD/_pkg/usr/share/man \
23 $CONFIGURE_ARGS
24 make
25 make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
33 cp -a $_pkg/etc/cups $fs/etc
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/sbin $fs/usr
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 cp -a $_pkg/usr/lib/cups $fs/usr/lib
38 cp -a $_pkg/usr/share/cups $fs/usr/share
39 cp -a $_pkg/var $fs
41 # Daemon script
42 cp -a stuff/etc $fs
43 }
45 # Start cups daemon and edit daemons.conf.
46 post_install()
47 {
48 /etc/init.d/cupsd start || continue
50 local root
51 root=$1
52 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
53 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
54 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
55 echo '' >> $root/etc/daemons.conf
56 fi
57 }
59 # Stop cups daemon before rm.
60 pre_remove()
61 {
62 /etc/init.d/cupsd stop
63 }