51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
# Description: SMB server and client for unix
|
|
# URL: http://www.samba.org
|
|
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
|
|
# Depends on: ncurses, readline
|
|
|
|
name=samba
|
|
version=3.0.23a
|
|
release=1
|
|
source=(http://us1.samba.org/samba/ftp/stable/$name-$version.tar.gz \
|
|
samba)
|
|
|
|
build () {
|
|
cd $name-$version/source
|
|
./configure --prefix=/usr \
|
|
--with-fhs \
|
|
--with-smbmount \
|
|
--with-configdir=/etc/samba \
|
|
--with-lockdir=/var/run/samba \
|
|
--with-piddir=/var/run/samba \
|
|
--with-mandir=/usr/man \
|
|
--with-logfilebase=/var/log/samba
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
# nsswitch extensions
|
|
install nsswitch/libnss_win{s,bind}.so $PKG/usr/lib/samba
|
|
|
|
install -d $PKG/{sbin,var/log/samba}
|
|
|
|
# symlinks
|
|
(cd $PKG/usr/lib
|
|
ln -s samba/libsmbclient.so libsmbclient.so
|
|
ln -s samba/libsmbclient.so libsmbclient.so.0
|
|
ln -s samba/libnss_winbind.so libnss_winbind.so
|
|
ln -s samba/libnss_winbind.so libnss_winbind.so.2
|
|
ln -s samba/libnss_wins.so libnss_wins.so
|
|
ln -s samba/libnss_wins.so libnss_wins.so.2)
|
|
|
|
# config-file and start-script
|
|
cp ../examples/smb.conf.default $PKG/etc/samba
|
|
install -D -m 755 $SRC/samba $PKG/etc/rc.d/samba
|
|
|
|
# cleanup
|
|
rm -r $PKG/usr/{var,lib/samba/*.msg}
|
|
chmod -x $PKG/usr/include/*
|
|
|
|
# remove swat
|
|
rm $PKG/usr/{sbin/swat,man/man8/swat.8}
|
|
rm -r $PKG/usr/share
|
|
}
|