wok-current view samba/receipt @ rev 14290

Up: evas (1.7.5)
author Dominique Corbex <domcox@slitaz.org>
date Sun Apr 07 10:02:17 2013 +0200 (2013-04-07)
parents 6d9bce2a1a70
children e9130cce9043
line source
1 # SliTaz package receipt.
3 PACKAGE="samba"
4 VERSION="3.6.7"
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 cifs-utils
18 acl krb5 cups"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src/source3
24 ./configure --prefix=/usr --infodir=/usr/share/info \
25 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
26 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
27 --enable-shared-libs --enable-external-libtalloc --with-libtdb \
28 --with-libsmbsharemodes --with-libsmbclient --without-pam \
29 --sysconfdir=/etc --localstatedir=/var \
30 --mandir=/usr/share/man $CONFIGURE_ARGS &&
31 make -j1 &&
32 make -j1 DESTDIR=$DESTDIR install || return 1
33 #rm -f $DESTDIR/usr/*bin/*.old
34 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/etc $fs
42 cp -a $install/var $fs
43 cp -a $install/usr/lib $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $install/usr/bin $fs/usr
46 cp -a $stuff/etc $fs
47 cat $stuff/*.files-list | while read file; do
48 rm -rf $fs$file
49 done
50 }
52 # Pre and post install commands for Tazpkg.
53 post_install()
54 {
55 cat <<EOF
56 ----
57 The main configuration file is /etc/samba/smb.conf
58 ----
59 To start $PACKAGE server you can run :
61 /etc/init.d/$PACKAGE start
63 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
64 ----
65 EOF
66 }