wok view samba/receipt @ rev 8202

imported patch toolchain/ncurses-common.patch
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Jan 27 00:20:50 2011 +0100 (2011-01-27)
parents 69b842dd6217
children 45dc731b6310
line source
1 # SliTaz package receipt.
3 PACKAGE="samba"
4 VERSION="3.5.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="File and print services with SMB/CIFS."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://samba.org/"
10 WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL"
11 BUILD_DEPENDS="openldap-dev libcomerr-dev cups-dev talloc-dev pkg-config"
12 DEPENDS="libldap samba-common glibc-extra-samba ncurses popt zlib smbfs acl"
14 SUGGESTED="gamin cups perl"
15 CONFIG_FILES="/etc/samba"
16 BUGS="Open directory needs MIT kerberos support (krb5)"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/source3
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 --enable-external-libtalloc --with-libtdb --with-cifsumount \
26 --with-libsmbsharemodes --with-libsmbclient --without-pam \
27 --sysconfdir=/etc --localstatedir=/var \
28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
29 make -j 4 &&
30 make DESTDIR=$PWD/../_pkg install || return 1
31 rm -f ../_pkg/usr/*bin/*.old
32 #ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp stuff/*.files-list $src
39 mkdir -p $fs/usr
40 cp -a $_pkg/etc $fs
41 cp -a $_pkg/var $fs
42 cp -a $_pkg/usr/lib $fs/usr
43 cp -a $_pkg/usr/sbin $fs/usr
44 cp -a $_pkg/usr/bin $fs/usr
45 cp -a stuff/etc $fs
46 cat $src/*.files-list | while read file; do
47 rm -rf $fs$file
48 done
49 # Package all samba pkgs
50 for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt)
51 do
52 tazwok cook ${i%/receipt}
53 done
54 }
56 # Pre and post install commands for Tazpkg.
57 post_install()
58 {
59 cat <<EOF
60 ----
61 The main configuration file is /etc/samba/smb.conf
62 ----
63 To start $PACKAGE server you can run :
65 /etc/init.d/$PACKAGE start
67 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
68 ----
69 EOF
70 }