wok-next rev 21442

updated samba (4.6.14 -> 4.12.2)
author Hans-G?nter Theisgen
date Tue May 05 16:27:22 2020 +0100 (2020-05-05)
parents 188ffd8238e9
children 5f865aa0bfc6
files samba/receipt
line diff
     1.1 --- a/samba/receipt	Tue May 05 16:11:30 2020 +0100
     1.2 +++ b/samba/receipt	Tue May 05 16:27:22 2020 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="samba"
     1.7 -VERSION="4.6.14"
     1.8 +VERSION="4.12.2"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="File and print services with SMB/CIFS"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -12,69 +12,76 @@
    1.13  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14  WGET_URL="https://download.samba.org/pub/samba/stable/$TARBALL"
    1.15  
    1.16 -BUILD_DEPENDS="python-dev perl acl-dev docbook-xsl openldap-dev   \
    1.17 -gnutls-dev krb5-dev cyrus-sasl-dev zlib-dev popt-dev tdb-dev talloc-dev \
    1.18 -libgcrypt-dev nss-dev cups-dev dbus-dev pam pam-dev"
    1.19 +BUILD_DEPENDS="acl-dev cups-dev cyrus-sasl-dev dbus-dev docbook-xsl 
    1.20 +	gnutls-dev krb5-dev libgcrypt-dev nss-dev openldap-dev 
    1.21 +	pam pam-dev perl popt-dev python-dev talloc-dev tdb-dev 
    1.22 +	zlib-dev"
    1.23  SPLIT="$PACKAGE-dev $PACKAGE-pam:pam" # TODO: swat
    1.24  
    1.25  BUGS="Open directory needs MIT kerberos support (krb5)"
    1.26  COOKOPTS="!menus"
    1.27  
    1.28 -version() {
    1.29 +version()
    1.30 +{
    1.31  	wget -O- -q https://download.samba.org/pub/samba/ | \
    1.32  	sed '/LATEST-IS-SAMBA/!d; s|.*SAMBA-\([^<]*\).*|\1|'
    1.33  }
    1.34  
    1.35 -compile_rules() {
    1.36 +compile_rules()
    1.37 +{
    1.38  	case $SET in
    1.39  		'')  SET_ARGS='--without-pam';;
    1.40  		pam) SET_ARGS='--with-pam';;
    1.41  	esac
    1.42  
    1.43  	# site script isn't used
    1.44 -	./configure \
    1.45 -		--prefix=/usr \
    1.46 -		--sysconfdir=/etc \
    1.47 -		--localstatedir=/var \
    1.48 -		--with-piddir=/run/samba \
    1.49 -		--with-pammodulesdir=/lib/security \
    1.50 -		--enable-fhs \
    1.51 -		--without-ad-dc \
    1.52 -		--without-systemd \
    1.53 -		--enable-selftest \
    1.54 -		$SET_ARGS \
    1.55 +	./configure					\
    1.56 +		--prefix=/usr				\
    1.57 +		--sysconfdir=/etc			\
    1.58 +		--localstatedir=/var			\
    1.59 +		--with-piddir=/run/samba		\
    1.60 +		--with-pammodulesdir=/lib/security	\
    1.61 +		--enable-fhs				\
    1.62 +		--without-ad-dc				\
    1.63 +		--without-systemd			\
    1.64 +		--enable-selftest			\
    1.65 +		$SET_ARGS				\
    1.66  		$CONFIGURE_ARGS &&
    1.67  	make &&
    1.68  	make install || return 1
    1.69  
    1.70 -	mkdir -p $instsll/lib/
    1.71 -	mv $install/usr/lib/libnss_wins.so*  $install/usr/lib/libnss_winbind.so* \
    1.72 -		$install/lib
    1.73 -	ln -sf ../../lib/libnss_winbind.so.2 $install/usr/lib/libnss_winbind.so
    1.74 -	ln -sf ../../lib/libnss_wins.so.2    $install/usr/lib/libnss_wins.so
    1.75 +	mkdir -p $install/lib
    1.76 +
    1.77 +	mv $install/usr/lib/libnss_wins.so*	$install/lib
    1.78 +	mv $install/usr/lib/libnss_winbind.so*	$install/lib
    1.79 +	ln -sf ../../lib/libnss_winbind.so.2	$install/usr/lib/libnss_winbind.so
    1.80 +	ln -sf ../../lib/libnss_wins.so.2	$install/usr/lib/libnss_wins.so
    1.81  
    1.82  	install -m644 examples/smb.conf.default $install/etc/samba
    1.83  
    1.84 -	mkdir -pv                                  $install/etc/openldap/schema
    1.85 -	cp examples/LDAP/README                    $install/etc/openldap/schema/README.LDAP
    1.86 -	cp examples/LDAP/samba*                    $install/etc/openldap/schema
    1.87 -	cp -r examples/LDAP/get* examples/LDAP/ol* $install/etc/openldap/schema
    1.88 +	mkdir -pv				$install/etc/openldap/schema
    1.89 +	cp examples/LDAP/README			$install/etc/openldap/schema/README.LDAP
    1.90 +	cp examples/LDAP/samba*			$install/etc/openldap/schema
    1.91 +	cp -r examples/LDAP/get*		$install/etc/openldap/schema
    1.92 +	cp -r examples/LDAP/get*		$install/etc/openldap/schema
    1.93 +	cp -r examples/LDAP/ol*			$install/etc/openldap/schema
    1.94  
    1.95 -	cp -a $stuff/etc $install
    1.96 +	cp -a $stuff/etc			$install
    1.97  
    1.98  	# Symlink smbspool to cups backend
    1.99 -	mkdir -p                 $install/usr/lib/cups/backend/
   1.100 -	ln -sf /usr/bin/smbspool $install/usr/lib/cups/backend/smb
   1.101 +	mkdir -p				$install/usr/lib/cups/backend/
   1.102 +	ln -sf /usr/bin/smbspool		$install/usr/lib/cups/backend/smb
   1.103  
   1.104  	# for swat package
   1.105  #	icodir="$inst/usr/share/icons/hicolor/48x48/apps"
   1.106  #	mkdir -p $icodir
   1.107  #	cp $stuff/swat.png $icodir
   1.108  
   1.109 -	chown -R root:root $install
   1.110 +	chown -R root:root			$install
   1.111  }
   1.112  
   1.113 -genpkg_rules() {
   1.114 +genpkg_rules()
   1.115 +{
   1.116  	# Note, packages samba-common, smbclient was removed due to circular dependencies:
   1.117  	# smbclient <--> samba <--> samba-common
   1.118  	case $PACKAGE in
   1.119 @@ -109,7 +116,8 @@
   1.120  	esac
   1.121  }
   1.122  
   1.123 -post_install_samba() {
   1.124 +post_install_samba()
   1.125 +{
   1.126  	[ -n "$quiet" ] || cat <<EOT
   1.127  
   1.128  	.----------------------------------------------------.
   1.129 @@ -123,7 +131,8 @@
   1.130  EOT
   1.131  }
   1.132  
   1.133 -post_install_swat() {
   1.134 +post_install_swat()
   1.135 +{
   1.136  	[ -f "$1/etc/lighttpd/lighttpd.conf" ] || return
   1.137  
   1.138  	[ ! grep -q /usr/share/samba/swat/ "$1/etc/lighttpd/lighttpd.conf" ] || return