2017-08-02 16:35:28 +02:00
|
|
|
# Description: SMB server and client for unix
|
2020-06-06 13:00:05 +02:00
|
|
|
# URL: https://www.samba.org
|
2017-08-02 16:35:28 +02:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2020-09-01 16:05:16 +00:00
|
|
|
# Depends on: linux-pam libarchive libcap popt tdb tevent ldb python3 gnutls p5-parse-yapp rpcsvc-proto
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=samba
|
2020-09-21 12:28:00 +02:00
|
|
|
version=4.12.7
|
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-04-17 13:25:54 +02:00
|
|
|
samba)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
2017-08-02 16:35:28 +02:00
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
./configure --enable-fhs \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-privatedir=/etc/samba/private \
|
2020-09-04 12:09:21 +00:00
|
|
|
--bundled-libraries=!tdb,!talloc,!tevent,!popt,!ldb,!cmocka \
|
2019-04-03 19:04:46 +02:00
|
|
|
--without-{ad-dc,ads,ldap} \
|
|
|
|
--without-json
|
2017-08-02 16:35:28 +02:00
|
|
|
|
2019-10-17 18:42:12 +02:00
|
|
|
python3 ./buildtools/bin/waf build --jobs=${JOBS:-1}
|
|
|
|
python3 ./buildtools/bin/waf install --destdir=$PKG
|
2017-08-02 16:35:28 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# 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
|
|
|
}
|