51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
# Description: SMB server and client for unix
|
|
# URL: http://www.samba.org
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
|
# Depends on: ncurses, readline
|
|
|
|
name=samba
|
|
version=3.2.0
|
|
release=1
|
|
source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
|
|
samba-config.patch samba)
|
|
|
|
build () {
|
|
cd $name-$version/source
|
|
|
|
patch -d .. -p1 -i $SRC/samba-config.patch
|
|
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib/samba \
|
|
--with-fhs \
|
|
--with-configdir=/etc/samba \
|
|
--with-lockdir=/var/run/samba \
|
|
--with-piddir=/var/run/samba \
|
|
--with-mandir=/usr/man \
|
|
--with-logfilebase=/var/log/samba \
|
|
--disable-swat
|
|
|
|
make -j1
|
|
make DESTDIR=$PKG install
|
|
|
|
install -d $PKG/sbin
|
|
mv $PKG/usr/sbin/*.cifs $PKG/sbin
|
|
mv $PKG/usr/lib/samba/*.so $PKG/usr/lib
|
|
|
|
# nsswitch extensions
|
|
install -d $PKG/lib
|
|
install nsswitch/libnss_win{s,bind}.so $PKG/lib
|
|
ln -s libnss_wins.so $PKG/lib/libnss_wins.so.2
|
|
ln -s libnss_winbind.so $PKG/lib/libnss_winbind.so.2
|
|
|
|
# spool/log directory
|
|
install -d $PKG/var/log/samba
|
|
install -d -m 1777 $PKG/var/spool/samba
|
|
|
|
# config-file and start-script
|
|
install -m 600 ../examples/smb.conf.default $PKG/etc/samba
|
|
install -D -m 755 $SRC/samba $PKG/etc/rc.d/samba
|
|
|
|
# cleanup
|
|
rm -r $PKG/usr/{var,man/man8/swat.8}
|
|
}
|