wok-stable view samba/receipt @ rev 12463

samba: CVE-2017-7494
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 29 18:19:51 2017 +0200 (2017-05-29)
parents 6d9bce2a1a70
children
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
18 acl krb5 cups"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 patch -p0 < $stuff/CVE-2017-7494.u
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 --with-cifsumount \
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 ../_pkg/usr/*bin/*.old
35 #ln -s libwbclient.so $PWD/../_pkg/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 $_pkg/etc $fs
43 cp -a $_pkg/var $fs
44 cp -a $_pkg/usr/lib $fs/usr
45 cp -a $_pkg/usr/sbin $fs/usr
46 cp -a $_pkg/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 }