wok-6.x annotate samba/receipt @ rev 20748

created package cpige 1.5
author Hans-G?nter Theisgen
date Mon Feb 11 15:42:12 2019 +0100 (2019-02-11)
parents 9b7c1ea86466
children c13c64d88162
rev   line source
pascal@1250 1 # SliTaz package receipt.
pascal@1250 2
pascal@1250 3 PACKAGE="samba"
slaxemulator@13268 4 VERSION="3.6.7"
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@14999 8 LICENSE="GPL3"
pascal@1250 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1250 10 WEB_SITE="http://samba.org/"
pascal@1250 11 WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL"
pascal@14772 12 TAZPANEL_DAEMON="man|edit::/etc/samba/smb.conf|web::$WEB_SITE"
pascal@5135 13 SUGGESTED="gamin cups perl"
pascal@1250 14 CONFIG_FILES="/etc/samba"
pascal@1250 15 BUGS="Open directory needs MIT kerberos support (krb5)"
pascal@1250 16
al@18922 17 BUILD_DEPENDS="openldap openldap-dev libcomerr-dev cups-dev talloc-dev \
al@18922 18 pkg-config libldap krb5"
al@18922 19 DEPENDS="libldap samba-common glibc-base ncursesw popt zlib cifs-utils acl \
al@18922 20 krb5 cups"
pascal@10454 21
pascal@1250 22 # Rules to configure and make the package.
pascal@1250 23 compile_rules()
pascal@1250 24 {
pascal@19962 25 patch -p0 < $stuff/CVE-2017-7494.u
erjo@4784 26 cd $src/source3
pascal@1250 27 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1250 28 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
pascal@1250 29 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
slaxemulator@13268 30 --enable-shared-libs --enable-external-libtalloc --with-libtdb \
pascal@2190 31 --with-libsmbsharemodes --with-libsmbclient --without-pam \
pascal@1250 32 --sysconfdir=/etc --localstatedir=/var \
pascal@15265 33 --mandir=/usr/share/man $CONFIGURE_ARGS &&
slaxemulator@8460 34 make -j1 &&
slaxemulator@8458 35 make -j1 DESTDIR=$DESTDIR install || return 1
slaxemulator@13268 36 #rm -f $DESTDIR/usr/*bin/*.old
slaxemulator@13268 37 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
pascal@1250 38 }
pascal@1250 39
pascal@1250 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1250 41 genpkg_rules()
pascal@1250 42 {
pascal@1250 43 mkdir -p $fs/usr
slaxemulator@13268 44 cp -a $install/etc $fs
slaxemulator@13268 45 cp -a $install/var $fs
slaxemulator@13268 46 cp -a $install/usr/lib $fs/usr
slaxemulator@13268 47 cp -a $install/usr/sbin $fs/usr
slaxemulator@13268 48 cp -a $install/usr/bin $fs/usr
slaxemulator@8928 49 cp -a $stuff/etc $fs
slaxemulator@8928 50 cat $stuff/*.files-list | while read file; do
pascal@1250 51 rm -rf $fs$file
pascal@1250 52 done
pascal@1250 53 }
pascal@1250 54
pascal@1250 55 # Pre and post install commands for Tazpkg.
pascal@1250 56 post_install()
pascal@1250 57 {
pascal@1250 58 cat <<EOF
pascal@1250 59 ----
pascal@1250 60 The main configuration file is /etc/samba/smb.conf
pascal@1250 61 ----
pascal@1250 62 To start $PACKAGE server you can run :
pascal@1250 63
pascal@1250 64 /etc/init.d/$PACKAGE start
pascal@1250 65
pascal@1250 66 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1250 67 ----
pascal@1250 68 EOF
pascal@1250 69 }