wok-current annotate samba-pam/receipt @ rev 21772

Up hostapd (2.8), slitaz-boot-scripts (456), slitaz-tools (1030), tazlito (516), tazpanel (627)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 06 16:10:54 2019 +0200 (2019-07-06)
parents 9b7c1ea86466
children c13c64d88162
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 \
al@18922 21 perl cups krb5"
pascal@14772 22
pascal@2190 23 # Rules to configure and make the package.
pascal@2190 24 compile_rules()
pascal@2190 25 {
pascal@19963 26 patch -p0 < $WOK/$SOURCE/stuff/CVE-2017-7494.u
erjo@4784 27 cd $src/source3
pascal@2190 28 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@2190 29 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
pascal@2190 30 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
slaxemulator@13268 31 --enable-shared-libs --with-libtalloc --with-libtdb \
pascal@2190 32 --with-libsmbsharemodes --with-libsmbclient \
pascal@2190 33 --with-pam --with-pammodulesdir=/lib/security \
pascal@2190 34 --sysconfdir=/etc --localstatedir=/var \
pascal@15265 35 --mandir=/usr/share/man $CONFIGURE_ARGS &&
gokhlayeh@11574 36 make $MAKEFLAGS &&
slaxemulator@10342 37 make DESTDIR=$DESTDIR install || return 1
slaxemulator@13268 38 #rm -f $DESTDIR/usr/*bin/*.old
slaxemulator@13268 39 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
pascal@2190 40 }
pascal@2190 41
pascal@2190 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2190 43 genpkg_rules()
pascal@2190 44 {
pascal@2190 45 mkdir -p $fs/usr
slaxemulator@13268 46 cp -a $install/etc $fs
slaxemulator@13268 47 cp -a $install/var $fs
slaxemulator@13268 48 cp -a $install/lib $fs
slaxemulator@13268 49 cp -a $install/usr/lib $fs/usr
slaxemulator@13268 50 cp -a $install/usr/sbin $fs/usr
slaxemulator@13268 51 cp -a $install/usr/bin $fs/usr
slaxemulator@10342 52 cp -a $WOK/$SOURCE/stuff/etc $fs
slaxemulator@10342 53 cat $WOK/$SOURCE/stuff/*.files-list | while read file; do
pascal@2190 54 rm -rf $fs$file
pascal@2190 55 done
pascal@2190 56 }
pascal@2190 57
pascal@2190 58 # Pre and post install commands for Tazpkg.
pascal@2190 59 post_install()
pascal@2190 60 {
pascal@2190 61 cat <<EOF
pascal@2190 62 ----
pascal@2190 63 The main configuration file is /etc/samba/smb.conf
pascal@2190 64 ----
pascal@2190 65 To start $PACKAGE server you can run :
pascal@2190 66
pascal@2190 67 /etc/init.d/$PACKAGE start
pascal@2190 68
pascal@2190 69 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@2190 70 ----
pascal@2190 71 EOF
pascal@2190 72 }