wok annotate samba/receipt @ rev 25162

updated pycurl (7.43.0.3 -> 7.45.1)
author Hans-G?nter Theisgen
date Fri Jul 01 10:12:48 2022 +0100 (2022-07-01)
parents c13c64d88162
children e4cc6a0d37f0
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 \
pascal@23009 20 krb5 libcups"
pascal@10454 21
pascal@24436 22 # What is the latest version available today?
pascal@24436 23 current_version()
pascal@24436 24 {
pascal@24436 25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24436 26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24436 27 }
pascal@24436 28
pascal@1250 29 # Rules to configure and make the package.
pascal@1250 30 compile_rules()
pascal@1250 31 {
pascal@19962 32 patch -p0 < $stuff/CVE-2017-7494.u
erjo@4784 33 cd $src/source3
pascal@1250 34 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1250 35 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
pascal@1250 36 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
slaxemulator@13268 37 --enable-shared-libs --enable-external-libtalloc --with-libtdb \
pascal@2190 38 --with-libsmbsharemodes --with-libsmbclient --without-pam \
pascal@1250 39 --sysconfdir=/etc --localstatedir=/var \
pascal@15265 40 --mandir=/usr/share/man $CONFIGURE_ARGS &&
slaxemulator@8460 41 make -j1 &&
slaxemulator@8458 42 make -j1 DESTDIR=$DESTDIR install || return 1
slaxemulator@13268 43 #rm -f $DESTDIR/usr/*bin/*.old
slaxemulator@13268 44 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
pascal@1250 45 }
pascal@1250 46
pascal@1250 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1250 48 genpkg_rules()
pascal@1250 49 {
pascal@1250 50 mkdir -p $fs/usr
slaxemulator@13268 51 cp -a $install/etc $fs
slaxemulator@13268 52 cp -a $install/var $fs
slaxemulator@13268 53 cp -a $install/usr/lib $fs/usr
slaxemulator@13268 54 cp -a $install/usr/sbin $fs/usr
slaxemulator@13268 55 cp -a $install/usr/bin $fs/usr
slaxemulator@8928 56 cp -a $stuff/etc $fs
slaxemulator@8928 57 cat $stuff/*.files-list | while read file; do
pascal@1250 58 rm -rf $fs$file
pascal@1250 59 done
pascal@1250 60 }
pascal@1250 61
pascal@1250 62 # Pre and post install commands for Tazpkg.
pascal@1250 63 post_install()
pascal@1250 64 {
pascal@1250 65 cat <<EOF
pascal@1250 66 ----
pascal@1250 67 The main configuration file is /etc/samba/smb.conf
pascal@1250 68 ----
pascal@1250 69 To start $PACKAGE server you can run :
pascal@1250 70
pascal@1250 71 /etc/init.d/$PACKAGE start
pascal@1250 72
pascal@1250 73 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1250 74 ----
pascal@1250 75 EOF
pascal@1250 76 }