2017-08-02 16:35:28 +02:00
|
|
|
# Description: SMB server and client for unix
|
|
|
|
# URL: http://www.samba.org
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2017-10-31 17:32:48 +01:59
|
|
|
# Depends on: e2fsprogs libarchive tdb tevent libcap libaio popt
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=samba
|
2018-03-13 17:35:54 +01:00
|
|
|
version=4.7.6
|
2017-11-15 11:08:42 +01:00
|
|
|
release=1
|
2017-08-02 16:35:28 +02:00
|
|
|
source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
|
2018-01-04 13:54:49 +01:00
|
|
|
kerberos_keytab.c.patch samba)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
2017-08-02 16:35:28 +02:00
|
|
|
cd $name-$version
|
|
|
|
|
2018-01-04 13:54:49 +01:00
|
|
|
# revert patch because it breaks build without ads
|
|
|
|
patch -p1 -R -i $SRC/kerberos_keytab.c.patch
|
|
|
|
|
2017-08-02 16:35:28 +02:00
|
|
|
./configure --enable-fhs \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-privatedir=/etc/samba/private \
|
|
|
|
--bundled-libraries=!tdb,!talloc,!tevent,!popt \
|
2017-11-07 16:23:35 +01:00
|
|
|
--without-{ad-dc,ads,ldap,pam} \
|
|
|
|
--disable-python
|
2017-08-02 16:35:28 +02:00
|
|
|
|
2017-10-27 19:58:10 +02:00
|
|
|
python ./buildtools/bin/waf build --jobs=${JOBS:-1}
|
2017-08-02 16:35:28 +02:00
|
|
|
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 {} \;
|
|
|
|
|
2017-11-07 16:23:35 +01:00
|
|
|
# remove third party python stuff
|
|
|
|
rm -r $PKG/usr/lib/python?.?
|
|
|
|
|
2017-08-02 16:35:28 +02:00
|
|
|
# config-file and start-script
|
|
|
|
install -d $PKG/etc/{samba,rc.d}
|
2017-11-04 16:41:36 +01:00
|
|
|
install -m 0600 examples/smb.conf.default $PKG/etc/samba
|
2017-08-02 16:35:28 +02:00
|
|
|
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
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|