opt/samba/Pkgfile

48 lines
1.2 KiB
Plaintext
Raw Normal View History

# Description: SMB server and client for unix
2021-03-09 16:01:47 +01:00
# URL: https://www.samba.org
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: linux-pam libarchive libcap dbus popt tdb tevent ldb python3 gnutls p5-parse-yapp rpcsvc-proto
2006-02-23 16:26:10 +01:00
name=samba
2021-07-14 10:48:26 +02:00
version=4.14.6
2021-06-01 19:33:16 +02:00
release=1
source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
2021-03-09 16:01:47 +01:00
samba)
2006-02-23 16:26:10 +01:00
build () {
2021-03-09 16:01:47 +01:00
cd $name-$version
./configure \
--enable-fhs \
--prefix=/usr \
--libexecdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--with-privatedir=/etc/samba/private \
--with-pammodulesdir=/lib/security \
2021-03-09 16:01:47 +01:00
--bundled-libraries=!tdb,!talloc,!tevent,!popt,!ldb,!cmocka \
--without-{ad-dc,ads,ldap} \
--without-json
/usr/bin/python3 ./buildtools/bin/waf build --jobs=${JOBS:-1}
/usr/bin/python3 ./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
# config-file and start-script
install -d $PKG/etc/{samba,rc.d}
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
}