wok view cups/receipt @ rev 2213

openssh*: --libexecdir=/usr/sbin (no /usr/libexec)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Feb 11 17:41:17 2009 +0100 (2009-02-11)
parents 2d810185f0ce
children 06e49b6e4420
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"
9 BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-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=/usr \
20 --sysconfdir=/etc \
21 --localstatedir=/var \
22 --mandir=/usr/share/man \
23 --enable-static \
24 --disable-ldap \
25 --with-cups-user=nobody \
26 --with-cups-group=nogroup \
27 --with-languages="de es fr" \
28 $CONFIGURE_ARGS &&
29 make &&
30 make BUILDROOT=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
38 cp -a $_pkg/etc/cups $fs/etc
39 cp -a $_pkg/etc/dbus* $fs/etc
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/sbin $fs/usr
42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
43 cp -a $_pkg/usr/lib/cups $fs/usr/lib
44 cp -a $_pkg/usr/share/cups $fs/usr/share
45 cp -a $_pkg/var $fs
47 # We need the doc for CSS, images and help in the web interface.
48 cp -a $_pkg/usr/share/doc $fs/usr/share
50 # Daemon script
51 cp -a stuff/etc $fs
52 }
54 # Start cups daemon and edit daemons.conf.
55 post_install()
56 {
57 /etc/init.d/cupsd start || continue
59 local root
60 root=$1
61 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
62 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
63 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
64 echo '' >> $root/etc/daemons.conf
65 fi
66 }
68 # Stop cups daemon before rm.
69 pre_remove()
70 {
71 /etc/init.d/cupsd stop
72 }