wok-next view samba/receipt @ rev 10815

freeradius: Fixed typo in bdeps. libltld should be libltdl.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jun 05 12:07:03 2011 +0000 (2011-06-05)
parents b921c461b865
children 6d9bce2a1a70
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"
12 SUGGESTED="gamin cups perl"
13 CONFIG_FILES="/etc/samba"
14 BUGS="Open directory needs MIT kerberos support (krb5)"
16 BUILD_DEPENDS="openldap openldap-dev libcomerr-dev cups-dev talloc-dev pkg-config libldap"
17 DEPENDS="libldap samba-common glibc-extra-samba ncursesw popt zlib smbfs acl krb5"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src/source3
23 ./configure --prefix=/usr --infodir=/usr/share/info \
24 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
25 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
26 --enable-shared-libs --enable-external-libtalloc --with-libtdb --with-cifsumount \
27 --with-libsmbsharemodes --with-libsmbclient --without-pam \
28 --sysconfdir=/etc --localstatedir=/var \
29 --mandir=/usr/share/man $CONFIGURE_ARGS &&
30 make -j1 &&
31 make -j1 DESTDIR=$DESTDIR install || return 1
32 rm -f ../_pkg/usr/*bin/*.old
33 #ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
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 $stuff/*.files-list | while read file; do
47 rm -rf $fs$file
48 done
49 }
51 # Pre and post install commands for Tazpkg.
52 post_install()
53 {
54 cat <<EOF
55 ----
56 The main configuration file is /etc/samba/smb.conf
57 ----
58 To start $PACKAGE server you can run :
60 /etc/init.d/$PACKAGE start
62 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
63 ----
64 EOF
65 }