wok view samba/receipt @ rev 20090

Up tazlito (465)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 30 21:21:31 2017 +0200 (2017-09-30)
parents 9b7c1ea86466
children c13c64d88162
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 \
18 pkg-config libldap krb5"
19 DEPENDS="libldap samba-common glibc-base ncursesw popt zlib cifs-utils acl \
20 krb5 cups"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 patch -p0 < $stuff/CVE-2017-7494.u
26 cd $src/source3
27 ./configure --prefix=/usr --infodir=/usr/share/info \
28 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
29 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
30 --enable-shared-libs --enable-external-libtalloc --with-libtdb \
31 --with-libsmbsharemodes --with-libsmbclient --without-pam \
32 --sysconfdir=/etc --localstatedir=/var \
33 --mandir=/usr/share/man $CONFIGURE_ARGS &&
34 make -j1 &&
35 make -j1 DESTDIR=$DESTDIR install || return 1
36 #rm -f $DESTDIR/usr/*bin/*.old
37 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/etc $fs
45 cp -a $install/var $fs
46 cp -a $install/usr/lib $fs/usr
47 cp -a $install/usr/sbin $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 cp -a $stuff/etc $fs
50 cat $stuff/*.files-list | while read file; do
51 rm -rf $fs$file
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 }