wok-stable view samba/receipt @ rev 9490

Up: pygobject to 2.28.3.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Apr 05 14:53:23 2011 +0000 (2011-04-05)
parents d9b127d0b11a
children c3034af6243a
line source
1 # SliTaz package receipt.
3 PACKAGE="samba"
4 VERSION="3.5.8"
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 ncursesw popt zlib smbfs acl krb5"
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 &&
29 make -j1 &&
30 make -j1 DESTDIR=$DESTDIR 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 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 $stuff/*.files-list | while read file; do
46 rm -rf $fs$file
47 done
48 }
50 # Pre and post install commands for Tazpkg.
51 post_install()
52 {
53 cat <<EOF
54 ----
55 The main configuration file is /etc/samba/smb.conf
56 ----
57 To start $PACKAGE server you can run :
59 /etc/init.d/$PACKAGE start
61 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
62 ----
63 EOF
64 }