wok-current view samba/receipt @ rev 3708

Update: gcc+gcj (BUILD_DEPENDS)
author Matthew Sheets <rcx@zoominternet.net>
date Mon Jul 20 09:18:58 2009 +0000 (2009-07-20)
parents 494005a36f9a
children 4716299bcb09
line source
1 # SliTaz package receipt.
3 PACKAGE="samba"
4 VERSION="3.2.10"
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 SUGGESTED="gamin"
14 CONFIG_FILES="/etc/samba"
15 BUGS="Open directory needs MIT kerberos support (krb5)"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/source
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
23 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
24 --enable-shared-libs --with-libtalloc --with-libtdb \
25 --with-libsmbsharemodes --with-libsmbclient --without-pam \
26 --sysconfdir=/etc --localstatedir=/var \
27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/../_pkg install || return 1
30 rm -f ../_pkg/usr/*bin/*.old
31 ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp stuff/*.files-list $src
38 mkdir -p $fs/usr
39 cp -a $_pkg/etc $fs
40 cp -a $_pkg/var $fs
41 cp -a $_pkg/usr/lib $fs/usr
42 cp -a $_pkg/usr/sbin $fs/usr
43 cp -a $_pkg/usr/bin $fs/usr
44 cp -a stuff/etc $fs
45 cat $src/*.files-list | while read file; do
46 rm -rf $fs$file
47 done
48 # Package all samba pkgs
49 for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt)
50 do
51 tazwok cook ${i%/receipt}
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 }