blob: c009553dc03dd0982d0794ebb467619868f20f59 (
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: e2fsprogs libarchive tdb tevent libcap libaio popt
5
6 name=samba
7 version=4.7.4
8 release=1
9 source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
10 kerberos_keytab.c.patch samba)
11
12 build () {
13 cd $name-$version
14
15 # revert patch because it breaks build without ads
16 patch -p1 -R -i $SRC/kerberos_keytab.c.patch
17
18 ./configure --enable-fhs \
19 --prefix=/usr \
20 --libexecdir=/usr/lib \
21 --localstatedir=/var \
22 --sysconfdir=/etc \
23 --with-privatedir=/etc/samba/private \
24 --bundled-libraries=!tdb,!talloc,!tevent,!popt \
25 --without-{ad-dc,ads,ldap,pam} \
26 --disable-python
27
28 python ./buildtools/bin/waf build --jobs=${JOBS:-1}
29 python ./buildtools/bin/waf install --destdir=$PKG
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
40 # remove pidl
41 find $PKG -iname '*pidl*' -type f -delete
42 find $PKG -depth -name perl5 -type d -exec rm -r {} \;
43
44 # remove third party python stuff
45 rm -r $PKG/usr/lib/python?.?
46
47 # config-file and start-script
48 install -d $PKG/etc/{samba,rc.d}
49 install -m 0600 examples/smb.conf.default $PKG/etc/samba
50 install -m 0755 $SRC/samba $PKG/etc/rc.d
51
52 # revdep
53 install -d $PKG/etc/revdep.d
54 echo '/usr/lib/samba' > $PKG/etc/revdep.d/samba
55 }
|