samba: update to 3.6.19.
This commit is contained in:
parent
70ece8b755
commit
dadc75c350
|
@ -1,8 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Samba NetBIOS name server
|
Description=Samba NetBIOS name server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/nmbd -F
|
Type=forking
|
||||||
|
PIDFile=/run/nmbd.pid
|
||||||
|
ExecStart=/usr/sbin/nmbd -D
|
||||||
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Samba SMB/CIFS server
|
Description=Samba SMB/CIFS server
|
||||||
|
After=network.target nmbd.service winbindd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/smbd -F
|
Type=forking
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
PIDFile=/run/smbd.pid
|
||||||
|
ExecStart=/usr/sbin/smbd -D
|
||||||
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
9
srcpkgs/samba/files/smbd.socket
Normal file
9
srcpkgs/samba/files/smbd.socket
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Samba SMB/CIFS server socket
|
||||||
|
|
||||||
|
[Socket]
|
||||||
|
ListenStream=445
|
||||||
|
Accept=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sockets.target
|
7
srcpkgs/samba/files/smbd@.service
Normal file
7
srcpkgs/samba/files/smbd@.service
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Samba SMB/CIFS server instance
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/smbd -F
|
||||||
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||||
|
StandardInput=socket
|
|
@ -1,9 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Samba Winbind daemon
|
Description=Samba Winbind daemon
|
||||||
|
After=network.target nmbd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/winbindd -F
|
Type=forking
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
PIDFile=/run/winbindd.pid
|
||||||
|
ExecStart=/usr/sbin/winbindd -D
|
||||||
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'samba'
|
# Template file for 'samba'
|
||||||
pkgname=samba
|
pkgname=samba
|
||||||
version=3.6.18
|
version=3.6.19
|
||||||
revision=1
|
revision=1
|
||||||
build_wrksrc=source3
|
build_wrksrc=source3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-fhs --with-pam --with-pam_smbpass --with-ldap
|
configure_args="--with-fhs --with-pam --with-pam_smbpass --with-ldap
|
||||||
--with-configdir=/etc/samba --with-lockdir=/var/samba
|
--with-configdir=/etc/samba --with-lockdir=/var/samba --with-static-libs=libtevent
|
||||||
--with-cachedir=/var/samba --with-nmbdsocketdir=/run/samba/socket
|
--with-cachedir=/var/samba --with-nmbdsocketdir=/run/samba/socket
|
||||||
--with-statedir=/var/samba --with-piddir=/run/samba --with-dnsupdate
|
--with-statedir=/var/samba --with-piddir=/run/samba --with-dnsupdate
|
||||||
--with-pammodulesdir=/usr/lib/security --with-automount --disable-swat
|
--with-pammodulesdir=/usr/lib/security --with-automount --disable-swat
|
||||||
|
@ -17,7 +17,7 @@ maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-3"
|
license="GPL-3"
|
||||||
homepage="http://www.samba.org"
|
homepage="http://www.samba.org"
|
||||||
distfiles="http://us1.samba.org/samba/ftp/stable/$pkgname-$version.tar.gz"
|
distfiles="http://us1.samba.org/samba/ftp/stable/$pkgname-$version.tar.gz"
|
||||||
checksum=6d71a9ba77567eae863b9599e451479b99f6acb6042a1d98e7a22422ce599992
|
checksum=addecc6acb05d3ffd0934f7f91d8e83852705b9e858e13c506e51c297259a92e
|
||||||
|
|
||||||
hostmakedepends="pkg-config perl python-devel"
|
hostmakedepends="pkg-config perl python-devel"
|
||||||
makedepends="readline-devel libcap-devel popt-devel e2fsprogs-devel
|
makedepends="readline-devel libcap-devel popt-devel e2fsprogs-devel
|
||||||
|
@ -65,10 +65,12 @@ post_install() {
|
||||||
# Remove unused manpages
|
# Remove unused manpages
|
||||||
rm -f ${DESTDIR}/usr/share/man/man8/tdb*
|
rm -f ${DESTDIR}/usr/share/man/man8/tdb*
|
||||||
rm -f ${DESTDIR}/usr/share/man/man8/swat*
|
rm -f ${DESTDIR}/usr/share/man/man8/swat*
|
||||||
|
rm -f ${DESTDIR}/usr/lib/libtevent*
|
||||||
|
rm -f ${DESTDIR}/usr/include/samba/tevent*
|
||||||
|
|
||||||
# systemd units
|
# systemd units
|
||||||
for f in nmbd smbd winbindd; do
|
for f in ${FILESDIR}/*.{service,socket}; do
|
||||||
vinstall ${FILESDIR}/${f}.service 644 usr/lib/systemd/system
|
vinstall ${f} 644 usr/lib/systemd/system
|
||||||
done
|
done
|
||||||
# systemd tmpfiles
|
# systemd tmpfiles
|
||||||
vinstall ${FILESDIR}/samba.tmpfiles 644 usr/lib/tmpfiles.d samba.conf
|
vinstall ${FILESDIR}/samba.tmpfiles 644 usr/lib/tmpfiles.d samba.conf
|
||||||
|
@ -93,7 +95,6 @@ libsmbclient_package() {
|
||||||
short_desc="Shared libraries for communication with SMB/CIFS servers"
|
short_desc="Shared libraries for communication with SMB/CIFS servers"
|
||||||
depends="mit-krb5-libs>=1.10.1"
|
depends="mit-krb5-libs>=1.10.1"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/libtevent.so.*"
|
|
||||||
vmove "usr/lib/libwbclient.so.*"
|
vmove "usr/lib/libwbclient.so.*"
|
||||||
vmove "usr/lib/libsmbclient.so.*"
|
vmove "usr/lib/libsmbclient.so.*"
|
||||||
vmove usr/share/man/man7/libsmbclient.7
|
vmove usr/share/man/man7/libsmbclient.7
|
||||||
|
@ -108,17 +109,11 @@ samba-devel_package() {
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove usr/lib/libwbclient.so
|
vmove usr/lib/libwbclient.so
|
||||||
vmove usr/lib/libsmbclient.so
|
vmove usr/lib/libsmbclient.so
|
||||||
vmove usr/lib/libtevent.so
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
samba_package() {
|
samba_package() {
|
||||||
conf_files="/etc/samba/smb.conf /etc/pam.d/samba"
|
conf_files="/etc/samba/smb.conf /etc/pam.d/samba"
|
||||||
# Don't restart services automatically.
|
|
||||||
systemd_services="
|
|
||||||
nmbd.service off
|
|
||||||
smbd.service off
|
|
||||||
winbindd.service off"
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove all
|
vmove all
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue