wok-next view cups/receipt @ rev 1219
squirrelmail-vkeyboard: fix config path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 10 07:49:10 2008 +0000 (2008-08-10) |
parents | a075ff895254 |
children | e87cddeb92a1 |
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="erjo@slitaz.org"
8 DEPENDS="openssl slitaz-base-files"
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=/usr \
20 --sysconfdir=/etc \
21 --localstatedir=/var \
22 --mandir=/usr/share/man \
23 --enable-static \
24 $CONFIGURE_ARGS
25 make
26 make BUILDROOT=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
34 cp -a $_pkg/etc/cups $fs/etc
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/sbin $fs/usr
37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
38 cp -a $_pkg/usr/lib/cups $fs/usr/lib
39 cp -a $_pkg/usr/share/cups $fs/usr/share
40 cp -a $_pkg/var $fs
42 # Daemon script
43 cp -a stuff/etc $fs
44 }
46 # Start cups daemon and edit daemons.conf.
47 post_install()
48 {
49 /etc/init.d/cupsd start || continue
51 local root
52 root=$1
53 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
54 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
55 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
56 echo '' >> $root/etc/daemons.conf
57 fi
58 }
60 # Stop cups daemon before rm.
61 pre_remove()
62 {
63 /etc/init.d/cupsd stop
64 }