f6bea82ac1
Includes security fix for CVE-2017-7494, see: https://www.samba.org/samba/security/CVE-2017-7494.html
61 lines
1.4 KiB
Plaintext
61 lines
1.4 KiB
Plaintext
# Description: SMB server and client for unix
|
|
# URL: https://www.samba.org
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
# Packager: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: iniparser krb5 ldb libaio libcap ntdb p5-parse-yapp py-subunit subunit nss_wrapper socket_wrapper uid_wrapper cmocka gnutls
|
|
# Optional: cups
|
|
|
|
name=samba
|
|
version=4.6.4
|
|
release=4
|
|
source=(
|
|
https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz
|
|
samba.rc
|
|
nmbd.rc
|
|
smbd.rc
|
|
winbindd.rc
|
|
)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
# we should define vendorlib in our perl port
|
|
sed -ri 's:(vendor)(arch|lib|prefix):site\2:' buildtools/wafsamba/samba_perl.py
|
|
|
|
./configure \
|
|
--enable-fhs \
|
|
--prefix=/usr \
|
|
--localstatedir=/var \
|
|
--sysconfdir=/etc \
|
|
--with-privatedir=/etc/samba/private \
|
|
--bundled-libraries=heimdal
|
|
|
|
# samba > 4.2 with mit krb5 is broken, heimdal needed for dc
|
|
# --with-system-mitkrb5 \
|
|
# --bundled-libraries=NONE
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
# man pages
|
|
for i in docs/manpages/*; do
|
|
install -D -m 644 $i $PKG/usr/share/man/man${i##*.}/${i##*/}
|
|
done
|
|
|
|
# cleanup
|
|
chmod 1777 $PKG/var/lock
|
|
|
|
# config-file and start-script
|
|
install -d $PKG/etc/{samba,rc.d}
|
|
install -m 0600 packaging/LSB/smb.conf $PKG/etc/samba/smb.conf.default
|
|
|
|
# startup scripts
|
|
for i in samba nmbd smbd winbindd; do
|
|
install -m 0755 $SRC/$i.rc $PKG/etc/rc.d/$i
|
|
done
|
|
|
|
# revdep
|
|
mkdir -p $PKG/etc/revdep.d
|
|
echo /usr/lib/samba > $PKG/etc/revdep.d/$name
|
|
}
|