wok-6.x view samba-pam/receipt @ rev 8919

Up: tazwok 4.2.2
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Mar 01 00:18:27 2011 +0100 (2011-03-01)
parents 7157da8f2285
children 129bb5b11a7e
line source
1 # SliTaz package receipt.
3 PACKAGE="samba-pam"
4 VERSION="3.5.6"
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 openldap-dev cups cups-dev pam pam-dev"
13 DEPENDS="libldap samba-common glibc-extra-samba ncurses popt zlib smbfs acl pam perl cups"
14 SUGGESTED="gamin"
15 CONFIG_FILES="/etc/samba"
16 PROVIDE="samba:pam"
17 BUGS="Open directory needs MIT kerberos support (krb5)"
18 SRC_WANTED="$SOURCE"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src/source3
24 ./configure --prefix=/usr --infodir=/usr/share/info \
25 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
26 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
27 --enable-shared-libs --with-libtalloc --with-libtdb --with-cifsumount \
28 --with-libsmbsharemodes --with-libsmbclient \
29 --with-pam --with-pammodulesdir=/lib/security \
30 --sysconfdir=/etc --localstatedir=/var \
31 --mandir=/usr/share/man $CONFIGURE_ARGS &&
32 make -j 4 &&
33 make DESTDIR=$PWD/../_pkg install || return 1
34 rm -f ../_pkg/usr/*bin/*.old
35 #ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
36 cp ../../../$SOURCE/stuff/*.files-list ..
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $_pkg/etc $fs
44 cp -a $_pkg/var $fs
45 cp -a $_pkg/lib $fs
46 cp -a $_pkg/usr/lib $fs/usr
47 cp -a $_pkg/usr/sbin $fs/usr
48 cp -a $_pkg/usr/bin $fs/usr
49 cp -a ../$SOURCE/stuff/etc $fs
50 cat $src/*.files-list | while read file; do
51 rm -rf $fs$file
52 done
53 }
55 # Pre and post install commands for Tazpkg.
56 post_install()
57 {
58 cat <<EOF
59 ----
60 The main configuration file is /etc/samba/smb.conf
61 ----
62 To start $PACKAGE server you can run :
64 /etc/init.d/$PACKAGE start
66 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
67 ----
68 EOF
69 }