wok-current view cups-pam/receipt @ rev 18522
xchm: typo
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Oct 26 11:47:37 2015 +0200 (2015-10-26) |
parents | e9b024efaa14 |
children | 77dc6129b023 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups-pam"
4 VERSION="2.0.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 cups-filters"
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 # Remove files provided by cups-filters
58 rm -f $fs/usr/share/cups/banners/*
59 rm -f $fs/usr/share/cups/data/testprint
61 # PAM conf
62 cp -a $stuff/etc $fs
64 # Daemon script
65 cp -a ${WOK}/cups/stuff/etc $fs
66 }
68 # Start cups daemon and edit daemons.conf.
69 post_install()
70 {
71 local root
72 root=$1
73 if [ -z "$root" ]; then
74 /etc/init.d/cupsd start || continue
75 fi
76 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
77 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
78 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
79 echo '' >> $root/etc/daemons.conf
80 fi
81 }
83 # Stop cups daemon before rm.
84 pre_remove()
85 {
86 local root
87 root=$1
88 if [ -z "$root" -a -x /etc/init.d/cupsd ]; then
89 /etc/init.d/cupsd stop
90 fi
91 }
93 # Overlap busybox
94 pre_install()
95 {
96 rm -f $1/usr/bin/lpr
97 }
99 post_remove()
100 {
101 ln -s /bin/busybox $1/usr/bin/lpr
102 }