blob: 6cfb60cf06d29050398f973576bb2f852dbb0a5e (
plain)
1 # Description: SMB server and client for unix
2 # URL: http://www.samba.org
3 # Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
4 # Depends on: ncurses, readline
5
6 name=samba
7 version=3.0.21c
8 release=1
9 source=(http://us1.samba.org/samba/ftp/stable/$name-$version.tar.gz \
10 samba)
11
12 build () {
13 cd $name-$version/source
14 sed -i '31d' script/installbin.sh
15 ./configure --prefix=/usr \
16 --with-fhs \
17 --with-smbmount \
18 --with-configdir=/etc/samba \
19 --with-lockdir=/var/run/samba \
20 --with-piddir=/var/run/samba \
21 --with-logfilebase=/var/log/samba
22 make
23 make DATADIR=/usr/share MANDIR=/usr/man DESTDIR=$PKG install
24
25 # nsswitch extensions
26 install nsswitch/libnss_win{s,bind}.so $PKG/usr/lib/samba
27
28 install -d $PKG/{sbin,var/log/samba}
29
30 # symlinks
31 (cd $PKG/sbin; ln -s ../usr/bin/smbmount mount.smbfs)
32 (cd $PKG/usr/lib
33 ln -s samba/libsmbclient.so libsmbclient.so
34 ln -s samba/libsmbclient.so libsmbclient.so.0
35 ln -s samba/libnss_winbind.so libnss_winbind.so
36 ln -s samba/libnss_winbind.so libnss_winbind.so.2
37 ln -s samba/libnss_wins.so libnss_wins.so
38 ln -s samba/libnss_wins.so libnss_wins.so.2)
39
40 # config-file and start-script
41 cp ../examples/smb.conf.default $PKG/etc/samba
42 install -D -m 755 $SRC/samba $PKG/etc/rc.d/samba
43
44 # cleanup
45 rm -r $PKG/usr/{var,lib/samba/*.msg}
46 chmod -x $PKG/usr/include/*
47
48 # remove swat
49 rm $PKG/usr/{sbin/swat,man/man8/swat.8}
50 rm -r $PKG/usr/share
51 }
|