wok view samba-pam/receipt @ rev 2428

samba-pam: add pam module !
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 11 15:16:37 2009 +0000 (2009-03-11)
parents 22ab8eb50d81
children 03359dbf979c
line source
1 # SliTaz package receipt.
3 PACKAGE="samba-pam"
4 VERSION="3.2.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="File and print services with SMB/CIFS using PAM."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="samba"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://samba.org/"
11 WGET_URL="${WEB_SITE}$SOURCE/ftp/stable/$TARBALL"
12 BUILD_DEPENDS="libldap openldap-dev cups cups-dev pam pam-dev"
13 DEPENDS="libldap smbclient perl cups glibc-extra-samba pam"
14 CONFIG_FILES="/etc/samba"
15 PROVIDE="samba:pam"
16 BUGS="Open directory needs MIT kerberos support (krb5)"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/source
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
24 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
25 --enable-shared-libs --with-libtalloc --with-libtdb \
26 --with-libsmbsharemodes --with-libsmbclient \
27 --with-pam --with-pammodulesdir=/lib/security \
28 --sysconfdir=/etc --localstatedir=/var \
29 --mandir=/usr/share/man $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$PWD/../_pkg install || return 1
32 rm -f ../_pkg/usr/*bin/*.old
33 ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
34 cp ../../../$SOURCE/stuff/*.files-list ..
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $_pkg/etc $fs
42 cp -a $_pkg/var $fs
43 cp -a $_pkg/lib $fs
44 cp -a $_pkg/usr/lib $fs/usr
45 cp -a $_pkg/usr/sbin $fs/usr
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a ../$SOURCE/stuff/etc $fs
48 cat $src/*.files-list | while read file; do
49 rm -rf $fs$file
50 done
51 # Package all samba pkgs
52 for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt)
53 do
54 tazwok cook ${i%/receipt}
55 done
56 }
58 # Pre and post install commands for Tazpkg.
59 post_install()
60 {
61 cat <<EOF
62 ----
63 The main configuration file is /etc/samba/smb.conf
64 ----
65 To start $PACKAGE server you can run :
67 /etc/init.d/$PACKAGE start
69 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
70 ----
71 EOF
72 }