wok annotate samba-pam/receipt @ rev 25002

updated nrg2iso (0.4 -> 0.4.1)
author Hans-G?nter Theisgen
date Mon May 16 14:45:30 2022 +0100 (2022-05-16)
parents c13c64d88162
children e4cc6a0d37f0
rev   line source
pascal@2190 1 # SliTaz package receipt.
pascal@2190 2
pascal@2190 3 PACKAGE="samba-pam"
slaxemulator@13268 4 VERSION="3.6.7"
pascal@2190 5 CATEGORY="system-tools"
pascal@2190 6 SHORT_DESC="File and print services with SMB/CIFS using PAM."
pascal@2190 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
pascal@2190 9 SOURCE="samba"
pascal@2190 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2190 11 WEB_SITE="http://samba.org/"
pascal@2192 12 WGET_URL="${WEB_SITE}$SOURCE/ftp/stable/$TARBALL"
pascal@14772 13 TAZPANEL_DAEMON="man::samba|edit::/etc/samba/smb.conf|web::$WEB_SITE"
pascal@2610 14 SUGGESTED="gamin"
pascal@2190 15 CONFIG_FILES="/etc/samba"
pascal@2190 16 PROVIDE="samba:pam"
pascal@2190 17 BUGS="Open directory needs MIT kerberos support (krb5)"
pascal@2190 18
pascal@15038 19 BUILD_DEPENDS="libldap openldap openldap-dev cups cups-dev pam pam-dev krb5"
al@18922 20 DEPENDS="libldap samba-common glibc-base ncursesw popt zlib cifs-utils acl pam \
pascal@23009 21 perl libcups krb5"
pascal@14772 22
pascal@24462 23 # What is the latest version available today?
pascal@24462 24 current_version()
pascal@24462 25 {
pascal@24462 26 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24462 27 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24462 28 }
pascal@24462 29
pascal@2190 30 # Rules to configure and make the package.
pascal@2190 31 compile_rules()
pascal@2190 32 {
pascal@19963 33 patch -p0 < $WOK/$SOURCE/stuff/CVE-2017-7494.u
erjo@4784 34 cd $src/source3
pascal@2190 35 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@2190 36 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
pascal@2190 37 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
slaxemulator@13268 38 --enable-shared-libs --with-libtalloc --with-libtdb \
pascal@2190 39 --with-libsmbsharemodes --with-libsmbclient \
pascal@2190 40 --with-pam --with-pammodulesdir=/lib/security \
pascal@2190 41 --sysconfdir=/etc --localstatedir=/var \
pascal@15265 42 --mandir=/usr/share/man $CONFIGURE_ARGS &&
gokhlayeh@11574 43 make $MAKEFLAGS &&
slaxemulator@10342 44 make DESTDIR=$DESTDIR install || return 1
slaxemulator@13268 45 #rm -f $DESTDIR/usr/*bin/*.old
slaxemulator@13268 46 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
pascal@2190 47 }
pascal@2190 48
pascal@2190 49 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2190 50 genpkg_rules()
pascal@2190 51 {
pascal@2190 52 mkdir -p $fs/usr
slaxemulator@13268 53 cp -a $install/etc $fs
slaxemulator@13268 54 cp -a $install/var $fs
slaxemulator@13268 55 cp -a $install/lib $fs
slaxemulator@13268 56 cp -a $install/usr/lib $fs/usr
slaxemulator@13268 57 cp -a $install/usr/sbin $fs/usr
slaxemulator@13268 58 cp -a $install/usr/bin $fs/usr
slaxemulator@10342 59 cp -a $WOK/$SOURCE/stuff/etc $fs
slaxemulator@10342 60 cat $WOK/$SOURCE/stuff/*.files-list | while read file; do
pascal@2190 61 rm -rf $fs$file
pascal@2190 62 done
pascal@2190 63 }
pascal@2190 64
pascal@2190 65 # Pre and post install commands for Tazpkg.
pascal@2190 66 post_install()
pascal@2190 67 {
pascal@2190 68 cat <<EOF
pascal@2190 69 ----
pascal@2190 70 The main configuration file is /etc/samba/smb.conf
pascal@2190 71 ----
pascal@2190 72 To start $PACKAGE server you can run :
pascal@2190 73
pascal@2190 74 /etc/init.d/$PACKAGE start
pascal@2190 75
pascal@2190 76 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@2190 77 ----
pascal@2190 78 EOF
pascal@2190 79 }