blob: 2d1063210e11931d3260d3bbf951faa2adb9b6cd (
plain)
1 # Description: SMB server and client for unix
2 # URL: http://www.samba.org
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: libarchive libcap popt tdb tevent
5
6 name=samba
7 version=4.9.5
8 release=1
9 source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
10 samba)
11
12 build () {
13 cd $name-$version
14
15 ./configure --enable-fhs \
16 --prefix=/usr \
17 --libexecdir=/usr/lib \
18 --localstatedir=/var \
19 --sysconfdir=/etc \
20 --with-privatedir=/etc/samba/private \
21 --bundled-libraries=!tdb,!talloc,!tevent,!popt \
22 --without-{ad-dc,ads,ldap,pam} \
23 --without-json-audit \
24 --disable-{python,gnutls}
25
26 python ./buildtools/bin/waf build --jobs=${JOBS:-1}
27 python ./buildtools/bin/waf install --destdir=$PKG
28
29 # man pages
30 local p
31 for p in docs/manpages/*; do
32 install -D -m 644 $p $PKG/usr/share/man/man${p##*.}/${p##*/}
33 done
34
35 # cleanup
36 chmod 1777 $PKG/var/lock
37
38 # remove pidl
39 find $PKG -iname '*pidl*' -type f -delete
40 find $PKG -depth -name perl5 -type d -exec rm -r {} \;
41
42 # remove third party python stuff
43 rm -r $PKG/usr/lib/python?.?
44
45 # config-file and start-script
46 install -d $PKG/etc/{samba,rc.d}
47 install -m 0600 examples/smb.conf.default $PKG/etc/samba
48 install -m 0755 $SRC/samba $PKG/etc/rc.d
49
50 # revdep
51 install -d $PKG/etc/revdep.d
52 echo '/usr/lib/samba' > $PKG/etc/revdep.d/samba
53 }
|