2017-08-02 16:35:28 +02:00
|
|
|
# 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
|
2022-05-28 10:46:39 +02:00
|
|
|
# Depends on: linux-pam libarchive libcap dbus popt tdb tevent ldb python3 gnutls p5-json p5-parse-yapp rpcsvc-proto
|
2022-05-29 13:46:50 +02:00
|
|
|
# Depends on: dbus gnutls ldb libarchive linux-pam gnutls jansson p5-json p5-parse-yapp popt python3 rpcsvc-proto tdb tevent
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=samba
|
2022-07-27 13:42:53 +02:00
|
|
|
version=4.16.4
|
2021-06-01 19:33:16 +02:00
|
|
|
release=1
|
2017-08-02 16:35:28 +02:00
|
|
|
source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
|
2021-03-09 16:01:47 +01:00
|
|
|
samba)
|
2006-02-23 15:26:10 +00: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 \
|
2022-02-12 18:51:57 +01:00
|
|
|
--with-piddir=/run/samba \
|
2022-02-16 18:42:54 +01:00
|
|
|
--with-sockets-dir=/run/samba \
|
2021-03-09 16:01:47 +01:00
|
|
|
--with-privatedir=/etc/samba/private \
|
2021-05-16 13:12:51 +02:00
|
|
|
--with-pammodulesdir=/lib/security \
|
2021-03-09 16:01:47 +01:00
|
|
|
--bundled-libraries=!tdb,!talloc,!tevent,!popt,!ldb,!cmocka \
|
2022-05-29 13:46:50 +02:00
|
|
|
--without-{ad-dc,ads,ldap}
|
2021-03-09 16:01:47 +01:00
|
|
|
|
2022-05-28 10:46:39 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2021-03-09 16:01:47 +01:00
|
|
|
|
|
|
|
# man pages
|
|
|
|
local p
|
2022-06-15 12:26:03 +02:00
|
|
|
for p in docs/manpages/*; do
|
2021-03-09 16:01:47 +01:00
|
|
|
install -D -m 644 $p $PKG/usr/share/man/man${p##*.}/${p##*/}
|
|
|
|
done
|
|
|
|
|
|
|
|
# cleanup
|
|
|
|
chmod 1777 $PKG/var/lock
|
2022-02-16 18:42:54 +01:00
|
|
|
rm -r $PKG/run
|
2021-03-09 16:01:47 +01:00
|
|
|
|
|
|
|
# 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 15:26:10 +00:00
|
|
|
}
|