Merge branch '3.6' into 3.7
This commit is contained in:
commit
1ac8c5e071
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/WU+sOsX+b7sY2CT/ObZ3n7zwOZZPqsolIpR5KldaSA2tRitPinZZnfTClmIvXi4hEKOqnyN/CQZv9TqJ5O6NAc=
|
||||
SHA256 (Pkgfile) = 1670dc9999894e479e973c05bf26ffe6efffdcb943f1b299a60dcc85dd1e1ff8
|
||||
RWSE3ohX2g5d/fKcsSxsqcP1SH5adG7NzAv4SauFAxcFB6BL3HT0ePKAB5eTCTpGxtnTHPGGdgOmzQbbk3PrtK68yBzKi50n4Qw=
|
||||
SHA256 (Pkgfile) = 08bd460b044ff582a5a70232267cc18ea7e5f159f7baa795a253026edc0950cb
|
||||
SHA256 (.footprint) = a196b8317d0d0c056983ef716f9a830ed4e481a3f92a1a8abf08617ba0769cdb
|
||||
SHA256 (samba-4.15.5.tar.gz) = 69115e33831937ba5151be0247943147765aece658ba743f44741672ad68d17f
|
||||
SHA256 (samba-4.15.6.tar.gz) = 0575b999a9048445820428dc540ba8a9527ce596fa66af02ea2ba1ea9578bcb4
|
||||
SHA256 (samba) = 0ab5a29dd85d5107cea902c21dd8426d20c3bcb2ce28a5add10d572bb88adc63
|
||||
|
@ -4,8 +4,8 @@
|
||||
# Depends on: linux-pam libarchive libcap dbus popt tdb tevent ldb python3 gnutls p5-parse-yapp rpcsvc-proto
|
||||
|
||||
name=samba
|
||||
version=4.15.5
|
||||
release=2
|
||||
version=4.15.6
|
||||
release=1
|
||||
source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
|
||||
samba)
|
||||
|
||||
|
8
samba/samba.pam
Normal file
8
samba/samba.pam
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# /etc/pam.d/samba - samba service module configuration
|
||||
#
|
||||
|
||||
auth include common-auth
|
||||
account include common-account
|
||||
session include common-session
|
||||
|
50
samba/samba.rc
Normal file
50
samba/samba.rc
Normal file
@ -0,0 +1,50 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/samba: start/stop samba daemons
|
||||
#
|
||||
|
||||
SSD=/sbin/start-stop-daemon
|
||||
SMB=/usr/sbin/smbd
|
||||
NMB=/usr/sbin/nmbd
|
||||
SMB_PID=/run/samba/smbd.pid
|
||||
NMB_PID=/run/samba/nmbd.pid
|
||||
|
||||
|
||||
print_status() {
|
||||
$SSD --status --pidfile $2
|
||||
case $? in
|
||||
0) echo "$1 is running with pid $(cat $2)" ;;
|
||||
1) echo "$1 is not running but the pid file $2 exists" ;;
|
||||
3) echo "$1 is not running" ;;
|
||||
4) echo "Unable to determine the program status" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
mkdir -p /run/samba
|
||||
$SSD --start --pidfile $NMB_PID --exec $NMB -- -D
|
||||
$SSD --start --pidfile $SMB_PID --exec $SMB -- -D
|
||||
;;
|
||||
stop)
|
||||
$SSD --stop --retry 10 --pidfile $SMB_PID
|
||||
$SSD --stop --retry 10 --pidfile $NMB_PID
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
reload)
|
||||
/usr/bin/smbcontrol smbd reload-config
|
||||
/usr/bin/smbcontrol nmbd reload-config
|
||||
;;
|
||||
status)
|
||||
print_status $SMB $SMB_PID
|
||||
print_status $NMB $NMB_PID
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart|status]"
|
||||
;;
|
||||
esac
|
||||
|
||||
# End of file
|
Loading…
x
Reference in New Issue
Block a user