wok-6.x view samba-pam/receipt @ rev 5590
Up:xorg-xf86-video-openchrome
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Mon May 17 07:42:57 2010 -0400 (2010-05-17) |
parents | 4897058add72 |
children | 666fd56c3a0e |
line source
1 # SliTaz package receipt.
3 PACKAGE="samba-pam"
4 VERSION="3.4.4"
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)"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src/source3
23 ./configure --prefix=/usr --infodir=/usr/share/info \
24 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
25 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
26 --enable-shared-libs --with-libtalloc --with-libtdb \
27 --with-libsmbsharemodes --with-libsmbclient \
28 --with-pam --with-pammodulesdir=/lib/security \
29 --sysconfdir=/etc --localstatedir=/var \
30 --mandir=/usr/share/man $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$PWD/../_pkg install || return 1
33 rm -f ../_pkg/usr/*bin/*.old
34 #ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
35 cp ../../../$SOURCE/stuff/*.files-list ..
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $_pkg/etc $fs
43 cp -a $_pkg/var $fs
44 cp -a $_pkg/lib $fs
45 cp -a $_pkg/usr/lib $fs/usr
46 cp -a $_pkg/usr/sbin $fs/usr
47 cp -a $_pkg/usr/bin $fs/usr
48 cp -a ../$SOURCE/stuff/etc $fs
49 cat $src/*.files-list | while read file; do
50 rm -rf $fs$file
51 done
52 }
54 # Pre and post install commands for Tazpkg.
55 post_install()
56 {
57 cat <<EOF
58 ----
59 The main configuration file is /etc/samba/smb.conf
60 ----
61 To start $PACKAGE server you can run :
63 /etc/init.d/$PACKAGE start
65 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
66 ----
67 EOF
68 }