wok-stable annotate 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
rev   line source
pascal@1250 1 # SliTaz package receipt.
pascal@1250 2
pascal@1250 3 PACKAGE="samba"
slaxemulator@9158 4 VERSION="3.5.8"
pascal@1250 5 CATEGORY="system-tools"
pascal@1250 6 SHORT_DESC="File and print services with SMB/CIFS."
pascal@1250 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1250 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1250 9 WEB_SITE="http://samba.org/"
pascal@1250 10 WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL"
erjo@5147 11
pascal@5135 12 SUGGESTED="gamin cups perl"
pascal@1250 13 CONFIG_FILES="/etc/samba"
pascal@1250 14 BUGS="Open directory needs MIT kerberos support (krb5)"
pascal@1250 15
pascal@10595 16 BUILD_DEPENDS="openldap openldap-dev libcomerr-dev cups-dev talloc-dev pkg-config libldap"
devl547@10828 17 DEPENDS="libldap samba-common glibc-extra-samba ncursesw popt zlib smbfs
devl547@10828 18 acl krb5 cups"
pascal@10454 19
pascal@1250 20 # Rules to configure and make the package.
pascal@1250 21 compile_rules()
pascal@1250 22 {
pascal@12463 23 patch -p0 < $stuff/CVE-2017-7494.u
erjo@4784 24 cd $src/source3
pascal@1250 25 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1250 26 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
pascal@1250 27 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
slaxemulator@7157 28 --enable-shared-libs --enable-external-libtalloc --with-libtdb --with-cifsumount \
pascal@2190 29 --with-libsmbsharemodes --with-libsmbclient --without-pam \
pascal@1250 30 --sysconfdir=/etc --localstatedir=/var \
slaxemulator@10342 31 --mandir=/usr/share/man $CONFIGURE_ARGS &&
slaxemulator@8460 32 make -j1 &&
slaxemulator@8458 33 make -j1 DESTDIR=$DESTDIR install || return 1
pascal@1520 34 rm -f ../_pkg/usr/*bin/*.old
erjo@4124 35 #ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
pascal@1250 36 }
pascal@1250 37
pascal@1250 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1250 39 genpkg_rules()
pascal@1250 40 {
pascal@1250 41 mkdir -p $fs/usr
pascal@1250 42 cp -a $_pkg/etc $fs
pascal@1250 43 cp -a $_pkg/var $fs
pascal@1250 44 cp -a $_pkg/usr/lib $fs/usr
pascal@1250 45 cp -a $_pkg/usr/sbin $fs/usr
pascal@1250 46 cp -a $_pkg/usr/bin $fs/usr
slaxemulator@8928 47 cp -a $stuff/etc $fs
slaxemulator@8928 48 cat $stuff/*.files-list | while read file; do
pascal@1250 49 rm -rf $fs$file
pascal@1250 50 done
pascal@1250 51 }
pascal@1250 52
pascal@1250 53 # Pre and post install commands for Tazpkg.
pascal@1250 54 post_install()
pascal@1250 55 {
pascal@1250 56 cat <<EOF
pascal@1250 57 ----
pascal@1250 58 The main configuration file is /etc/samba/smb.conf
pascal@1250 59 ----
pascal@1250 60 To start $PACKAGE server you can run :
pascal@1250 61
pascal@1250 62 /etc/init.d/$PACKAGE start
pascal@1250 63
pascal@1250 64 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1250 65 ----
pascal@1250 66 EOF
pascal@1250 67 }