wok view samba-pam/receipt @ rev 14789

Fix ownership and permissions for some files in some packages: adeskbar, ajaxterm, amsn, anacron, arora, asciiquarium, assaultcube-data, asterisk-sound-fr, asterisk-sound, attr-dev, attr, audacious, avidemux, awstats, bind-dev, binutils, blogotext, bootchart, btanks, bzip2-dev, c-client, cairo-dock.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 08 11:45:27 2013 +0300 (2013-07-08)
parents 4cba4433d0b7
children 2b9f96603415
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 SOURCE="samba"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://samba.org/"
11 WGET_URL="${WEB_SITE}$SOURCE/ftp/stable/$TARBALL"
12 TAZPANEL_DAEMON="man::samba|edit::/etc/samba/smb.conf|web::$WEB_SITE"
13 SUGGESTED="gamin"
14 CONFIG_FILES="/etc/samba"
15 PROVIDE="samba:pam"
16 BUGS="Open directory needs MIT kerberos support (krb5)"
18 BUILD_DEPENDS="libldap openldap openldap-dev cups cups-dev pam pam-dev"
19 DEPENDS="libldap samba-common glibc-extra-samba ncursesw popt zlib cifs-utils acl pam perl cups krb5"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src/source3
25 ./configure --prefix=/usr --infodir=/usr/share/info \
26 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
27 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
28 --enable-shared-libs --with-libtalloc --with-libtdb \
29 --with-libsmbsharemodes --with-libsmbclient \
30 --with-pam --with-pammodulesdir=/lib/security \
31 --sysconfdir=/etc --localstatedir=/var \
32 --mandir=/usr/share/man $CONFIGURE_ARGS &&
33 make $MAKEFLAGS &&
34 make DESTDIR=$DESTDIR install || return 1
35 #rm -f $DESTDIR/usr/*bin/*.old
36 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/etc $fs
44 cp -a $install/var $fs
45 cp -a $install/lib $fs
46 cp -a $install/usr/lib $fs/usr
47 cp -a $install/usr/sbin $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 cp -a $WOK/$SOURCE/stuff/etc $fs
50 cat $WOK/$SOURCE/stuff/*.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 }