Merge pull request #11289 from Andy2244/samba4-update-4.11.6
samba4: update to 4.11.6, add new UCI option
This commit is contained in:
commit
81d7dcb6d3
2 changed files with 22 additions and 13 deletions
|
@ -2,17 +2,18 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=samba
|
PKG_NAME:=samba
|
||||||
PKG_VERSION:=4.11.4
|
PKG_VERSION:=4.11.6
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://ftp.heanet.ie/mirrors/ftp.samba.org/stable/ \
|
PKG_SOURCE_URL:= \
|
||||||
https://ftp.gwdg.de/pub/samba/stable/ \
|
https://ftp.gwdg.de/pub/samba/stable/ \
|
||||||
|
https://ftp.heanet.ie/mirrors/ftp.samba.org/stable/ \
|
||||||
https://ftp.riken.jp/net/samba/samba/stable/ \
|
https://ftp.riken.jp/net/samba/samba/stable/ \
|
||||||
http://www.nic.funet.fi/index/samba/pub/samba/stable/ \
|
http://www.nic.funet.fi/index/samba/pub/samba/stable/ \
|
||||||
http://samba.mirror.bit.nl/samba/ftp/stable/ \
|
http://samba.mirror.bit.nl/samba/ftp/stable/ \
|
||||||
https://download.samba.org/pub/samba/stable/
|
https://download.samba.org/pub/samba/stable/
|
||||||
PKG_HASH:=b95471ba450757109dce65acfe75dafc719c5cc5d464fc65ee442433a461db24
|
PKG_HASH:=91438f4d7b71f673421435fa7f26b03b613f214139636ce50af35bc2ff09ef38
|
||||||
|
|
||||||
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
|
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
|
||||||
PKG_LICENSE:=GPL-3.0-only
|
PKG_LICENSE:=GPL-3.0-only
|
||||||
|
|
|
@ -36,6 +36,7 @@ smb_header() {
|
||||||
config_get_bool DISABLE_AD_DC $1 disable_ad_dc 0
|
config_get_bool DISABLE_AD_DC $1 disable_ad_dc 0
|
||||||
config_get_bool DISABLE_WINBIND $1 disable_winbind 0
|
config_get_bool DISABLE_WINBIND $1 disable_winbind 0
|
||||||
config_get_bool DISABLE_ASYNC_IO $1 disable_async_io 0
|
config_get_bool DISABLE_ASYNC_IO $1 disable_async_io 0
|
||||||
|
config_get_bool ALLOW_LEGACY_PROTOCOLS $1 allow_legacy_protocols 0
|
||||||
|
|
||||||
mkdir -p /var/etc
|
mkdir -p /var/etc
|
||||||
sed -e "s#|NAME|#$hostname#g" \
|
sed -e "s#|NAME|#$hostname#g" \
|
||||||
|
@ -57,6 +58,13 @@ smb_header() {
|
||||||
# sendfile bug: https://bugzilla.samba.org/show_bug.cgi?id=14095
|
# sendfile bug: https://bugzilla.samba.org/show_bug.cgi?id=14095
|
||||||
printf "\tuse sendfile = no\n"
|
printf "\tuse sendfile = no\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$ALLOW_LEGACY_PROTOCOLS" -eq 1 ]; then
|
||||||
|
logger -p daemon.info -t 'samba4-server' "Legacy Protocols allowed, don't use this option for secure environments!"
|
||||||
|
printf "\tserver min protocol = NT1\n"
|
||||||
|
printf "\tlanman auth = yes\n"
|
||||||
|
printf "\tntlm auth = ntlmv1-permitted\n"
|
||||||
|
fi
|
||||||
} >> /var/etc/smb.conf
|
} >> /var/etc/smb.conf
|
||||||
|
|
||||||
[ -e /etc/samba/smb.conf ] || ln -nsf /var/etc/smb.conf /etc/samba/smb.conf
|
[ -e /etc/samba/smb.conf ] || ln -nsf /var/etc/smb.conf /etc/samba/smb.conf
|
||||||
|
|
Loading…
Reference in a new issue