opt/samba/Pkgfile

52 lines
1.3 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
2023-09-07 11:00:27 +02:00
# Depends on: dbus gnutls ldb linux-pam jansson p5-json p5-parse-yapp rpcsvc-proto
# Optional: brotli cups libidn2
2006-02-23 16:26:10 +01:00
name=samba
version=4.19.3
2021-06-01 19:33:16 +02:00
release=1
source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
samba.rc samba.pam)
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 \
2022-10-20 10:51:36 +02:00
--with-piddir=/run/samba \
--with-sockets-dir=/run/samba \
2021-03-09 16:01:47 +01:00
--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 \
2022-10-20 10:51:36 +02:00
--without-{ad-dc,ads,ldap}
2021-03-09 16:01:47 +01: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-10-20 10:51:36 +02: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,pam.d}
2021-03-09 16:01:47 +01:00
install -m 0600 examples/smb.conf.default $PKG/etc/samba
install -m 0755 $SRC/samba.rc $PKG/etc/rc.d/samba
install -m 0644 $SRC/samba.pam $PKG/etc/pam.d/samba
2021-03-09 16:01:47 +01:00
# revdep
install -d $PKG/etc/revdep.d
echo '/usr/lib/samba' > $PKG/etc/revdep.d/samba
2006-02-23 16:26:10 +01:00
}