wok view samba-pam/receipt @ rev 19071
Add: Online communications services.
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Fri Apr 22 20:51:44 2016 -0300 (2016-04-22) |
parents | dead8955c3ca |
children | 49b17cd62229 |
line source
1 # SliTaz package receipt.
3 PACKAGE="samba-pam"
4 VERSION="3.6.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="File and print services with SMB/CIFS using PAM."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 SOURCE="samba"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://samba.org/"
12 WGET_URL="${WEB_SITE}$SOURCE/ftp/stable/$TARBALL"
13 TAZPANEL_DAEMON="man::samba|edit::/etc/samba/smb.conf|web::$WEB_SITE"
14 SUGGESTED="gamin"
15 CONFIG_FILES="/etc/samba"
16 PROVIDE="samba:pam"
17 BUGS="Open directory needs MIT kerberos support (krb5)"
19 BUILD_DEPENDS="libldap openldap openldap-dev cups cups-dev pam pam-dev krb5"
20 DEPENDS="libldap samba-common glibc-base ncursesw popt zlib cifs-utils acl pam \
21 perl cups krb5"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src/source3
27 ./configure --prefix=/usr --infodir=/usr/share/info \
28 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
29 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
30 --enable-shared-libs --with-libtalloc --with-libtdb \
31 --with-libsmbsharemodes --with-libsmbclient \
32 --with-pam --with-pammodulesdir=/lib/security \
33 --sysconfdir=/etc --localstatedir=/var \
34 --mandir=/usr/share/man $CONFIGURE_ARGS &&
35 make $MAKEFLAGS &&
36 make DESTDIR=$DESTDIR install || return 1
37 #rm -f $DESTDIR/usr/*bin/*.old
38 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr
45 cp -a $install/etc $fs
46 cp -a $install/var $fs
47 cp -a $install/lib $fs
48 cp -a $install/usr/lib $fs/usr
49 cp -a $install/usr/sbin $fs/usr
50 cp -a $install/usr/bin $fs/usr
51 cp -a $WOK/$SOURCE/stuff/etc $fs
52 cat $WOK/$SOURCE/stuff/*.files-list | while read file; do
53 rm -rf $fs$file
54 done
55 }
57 # Pre and post install commands for Tazpkg.
58 post_install()
59 {
60 cat <<EOF
61 ----
62 The main configuration file is /etc/samba/smb.conf
63 ----
64 To start $PACKAGE server you can run :
66 /etc/init.d/$PACKAGE start
68 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
69 ----
70 EOF
71 }