opt/samba/Pkgfile

53 lines
1.5 KiB
Plaintext
Raw Normal View History

# Description: SMB server and client for unix
# URL: http://www.samba.org
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: linux-pam libarchive libcap popt tdb tevent ldb python3
2006-02-23 16:26:10 +01:00
name=samba
version=4.10.8
release=1
source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
2018-04-17 13:25:54 +02:00
samba)
2006-02-23 16:26:10 +01:00
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,!ldb \
--without-{ad-dc,ads,ldap} \
--without-json
2017-10-27 19:58:10 +02:00
python ./buildtools/bin/waf build --jobs=${JOBS:-1}
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 {} \;
# remove third party python stuff
rm -r $PKG/usr/lib/python?.?
# 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
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 16:26:10 +01:00
}