wok-current view cups-pam/receipt @ rev 15937
cups-pam: fix stuff path
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Feb 22 16:55:06 2014 +0100 (2014-02-22) |
parents | 6fe50f4887f2 |
children | e9b024efaa14 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups-pam"
4 VERSION="1.6.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Common UNIX Printing System with pam support."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 LGPL2"
9 SOURCE="cups"
10 TARBALL="$SOURCE-$VERSION-source.tar.bz2"
11 WEB_SITE="http://www.cups.org/"
12 WGET_URL="http://www.cups.org/software/$VERSION/$TARBALL"
13 PROVIDE="cups:pam"
15 DEPENDS="libssl libgcrypt cups-doc slitaz-base-files gnutls dbus jpeg libpng tiff \
16 zlib pam libcomerr libkrb5 acl libcomerr3"
17 BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev jpeg-dev libpng-dev tiff-dev \
18 pam libcomerr-dev pam-dev acl-dev libgcrypt-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 patch -Np1 -i ${WOK}/cups/stuff/install-sh.u
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --mandir=/usr/share/man \
30 --enable-static \
31 --enable-pam \
32 --disable-ldap \
33 --with-cups-user=nobody \
34 --with-cups-group=nogroup \
35 --with-languages="de es fr pt_BR ru" \
36 $CONFIGURE_ARGS &&
37 make &&
38 make BUILDROOT=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
46 cp -a $install/etc/cups $fs/etc
47 cp -a $install/etc/dbus* $fs/etc
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/sbin $fs/usr
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/usr/lib/cups $fs/usr/lib
52 cp -a $install/usr/share/cups $fs/usr/share
53 cp -a $install/usr/share/icons/hicolor/32x32/apps/cups.png \
54 $fs/usr/share/pixmaps
55 cp -a $install/var $fs
57 # PAM conf
58 cp -a $stuff/etc $fs
60 # Daemon script
61 cp -a ${WOK}/cups/stuff/etc $fs
62 }
64 # Start cups daemon and edit daemons.conf.
65 post_install()
66 {
67 local root
68 root=$1
69 if [ -z "$root" ]; then
70 /etc/init.d/cupsd start || continue
71 fi
72 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
73 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
74 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
75 echo '' >> $root/etc/daemons.conf
76 fi
77 }
79 # Stop cups daemon before rm.
80 pre_remove()
81 {
82 local root
83 root=$1
84 if [ -z "$root" -a -x /etc/init.d/cupsd ]; then
85 /etc/init.d/cupsd stop
86 fi
87 }
89 # Overlap busybox
90 pre_install()
91 {
92 rm -f $1/usr/bin/lpr
93 }
95 post_remove()
96 {
97 ln -s /bin/busybox $1/usr/bin/lpr
98 }