blob: f3041b2fdb145f5b212ef8454851ff8d66731ed6 (
plain)
1 # Description: SMB server and client for unix
2 # URL: https://www.samba.org
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: dbus gnutls ldb libarchive linux-pam gnutls jansson p5-json p5-parse-yapp popt python3 rpcsvc-proto tdb tevent
5
6 name=samba
7 version=4.17.2
8 release=1
9 source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
10 samba.rc samba.pam)
11
12 build () {
13 cd $name-$version
14
15 ./configure \
16 --enable-fhs \
17 --prefix=/usr \
18 --libexecdir=/usr/lib \
19 --localstatedir=/var \
20 --sysconfdir=/etc \
21 --with-piddir=/run/samba \
22 --with-sockets-dir=/run/samba \
23 --with-privatedir=/etc/samba/private \
24 --with-pammodulesdir=/lib/security \
25 --bundled-libraries=!tdb,!talloc,!tevent,!popt,!ldb,!cmocka \
26 --without-{ad-dc,ads,ldap}
27
28 make
29 make DESTDIR=$PKG install
30
31 # man pages
32 local p
33 for p in docs/manpages/*; do
34 install -D -m 644 $p $PKG/usr/share/man/man${p##*.}/${p##*/}
35 done
36
37 # cleanup
38 chmod 1777 $PKG/var/lock
39 rm -r $PKG/run
40
41 # config-file and start-script
42 install -d $PKG/etc/{samba,rc.d,pam.d}
43 install -m 0600 examples/smb.conf.default $PKG/etc/samba
44 install -m 0755 $SRC/samba.rc $PKG/etc/rc.d/samba
45 install -m 0644 $SRC/samba.pam $PKG/etc/pam.d/samba
46
47 # revdep
48 install -d $PKG/etc/revdep.d
49 echo '/usr/lib/samba' > $PKG/etc/revdep.d/samba
50 }
|