Juergen Daubert
237b927792
See http://www.samba.org/samba/history/samba-3.0.30.html A fix for https://bugzilla.samba.org/show_bug.cgi?id=5285 is included as well.
59 lines
1.6 KiB
Plaintext
59 lines
1.6 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.30
|
|
release=1
|
|
source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
|
|
samba-config.patch samba-capget.patch samba)
|
|
|
|
build () {
|
|
cd $name-$version/source
|
|
|
|
patch -d .. -p1 -i $SRC/samba-config.patch
|
|
patch -d .. -p1 -i $SRC/samba-capget.patch
|
|
|
|
./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 -j1
|
|
make DESTDIR=$PKG install
|
|
|
|
mv $PKG/usr/sbin/*.cifs $PKG/sbin
|
|
|
|
# symlinks
|
|
(cd $PKG/usr/lib
|
|
ln -s samba/libsmbclient.so libsmbclient.so
|
|
ln -s samba/libsmbclient.so libsmbclient.so.0)
|
|
|
|
# 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
|
|
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
|
|
}
|