opt/samba/Pkgfile
Juergen Daubert d48a7ee35a [notify] samba: update to 4.6.6
- Security fix for CVE-11103, see
  https://www.samba.org/samba/history/samba-4.6.6.html
- fix building with multiple jobs, FS#1446
- reduced dependencies
2017-08-02 16:35:28 +02:00

51 lines
1.5 KiB
Plaintext

# Description: SMB server and client for unix
# URL: http://www.samba.org
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: e2fsprogs libarchive tdb talloc tevent libcap libaio popt
name=samba
version=4.6.6
release=2
source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
samba)
build () {
cd $name-$version
./configure --enable-fhs \
--prefix=/usr \
--libexecdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--with-privatedir=/etc/samba/private \
--bundled-libraries=!tdb,!talloc,!tevent,!popt \
--without-{ad-dc,ads,ldap,pam}
local JOBS=
[[ $MAKEFLAGS =~ (-j|-j *|--jobs=)([[:digit:]]+) ]] && JOBS="-j ${BASH_REMATCH[2]}"
python ./buildtools/bin/waf build $JOBS
python ./buildtools/bin/waf install --destdir=$PKG
# man pages
local p
for p in docs/manpages/*; do
install -D -m 644 $p $PKG/usr/share/man/man${p##*.}/${p##*/}
done
# cleanup
chmod 1777 $PKG/var/lock
# remove pidl
find $PKG -iname '*pidl*' -type f -delete
find $PKG -depth -name perl5 -type d -exec rm -r {} \;
# 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
install -m 0755 $SRC/samba $PKG/etc/rc.d
# revdep
install -d $PKG/etc/revdep.d
echo '/usr/lib/samba' > $PKG/etc/revdep.d/samba
}