wok-current view samba/receipt @ rev 2495

libkrb5, nail, perl-gssapi: update krb5 depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 16 09:09:51 2009 +0000 (2009-03-16)
parents 89fb9e5371cd
children b51677fcfa18
line source
1 # SliTaz package receipt.
3 PACKAGE="samba"
4 VERSION="3.2.1"
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="libldap openldap-dev cups cups-dev"
12 DEPENDS="libldap smbclient perl cups glibc-extra-samba ncurses popt zlib"
13 CONFIG_FILES="/etc/samba"
14 BUGS="Open directory needs MIT kerberos support (krb5)"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src/source
20 ./configure --prefix=/usr --infodir=/usr/share/info \
21 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
22 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
23 --enable-shared-libs --with-libtalloc --with-libtdb \
24 --with-libsmbsharemodes --with-libsmbclient --without-pam \
25 --sysconfdir=/etc --localstatedir=/var \
26 --mandir=/usr/share/man $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/../_pkg install || return 1
29 rm -f ../_pkg/usr/*bin/*.old
30 ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
31 cp ../../stuff/*.files-list ..
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $_pkg/etc $fs
39 cp -a $_pkg/var $fs
40 cp -a $_pkg/usr/lib $fs/usr
41 cp -a $_pkg/usr/sbin $fs/usr
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a stuff/etc $fs
44 cat $src/*.files-list | while read file; do
45 rm -rf $fs$file
46 done
47 # Package all samba pkgs
48 for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt)
49 do
50 tazwok cook ${i%/receipt}
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 }