wok view samba/receipt @ rev 17454
syslinux/iso2exe: create a vfat partition in usb bootkey (DOS case only)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 18 11:42:27 2014 +0100 (2014-12-18) |
parents | 02b1ad052225 |
children | 9b7c1ea86466 |
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 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://samba.org/"
11 WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL"
12 TAZPANEL_DAEMON="man|edit::/etc/samba/smb.conf|web::$WEB_SITE"
13 SUGGESTED="gamin cups perl"
14 CONFIG_FILES="/etc/samba"
15 BUGS="Open directory needs MIT kerberos support (krb5)"
17 BUILD_DEPENDS="openldap openldap-dev libcomerr-dev cups-dev talloc-dev pkg-config libldap krb5"
18 DEPENDS="libldap samba-common glibc-extra-samba ncursesw popt zlib cifs-utils
19 acl krb5 cups"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src/source3
25 ./configure --prefix=/usr --infodir=/usr/share/info \
26 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
27 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
28 --enable-shared-libs --enable-external-libtalloc --with-libtdb \
29 --with-libsmbsharemodes --with-libsmbclient --without-pam \
30 --sysconfdir=/etc --localstatedir=/var \
31 --mandir=/usr/share/man $CONFIGURE_ARGS &&
32 make -j1 &&
33 make -j1 DESTDIR=$DESTDIR install || return 1
34 #rm -f $DESTDIR/usr/*bin/*.old
35 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $install/etc $fs
43 cp -a $install/var $fs
44 cp -a $install/usr/lib $fs/usr
45 cp -a $install/usr/sbin $fs/usr
46 cp -a $install/usr/bin $fs/usr
47 cp -a $stuff/etc $fs
48 cat $stuff/*.files-list | while read file; do
49 rm -rf $fs$file
50 done
51 }
53 # Pre and post install commands for Tazpkg.
54 post_install()
55 {
56 cat <<EOF
57 ----
58 The main configuration file is /etc/samba/smb.conf
59 ----
60 To start $PACKAGE server you can run :
62 /etc/init.d/$PACKAGE start
64 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
65 ----
66 EOF
67 }