2006-02-23 15:26:10 +00:00
|
|
|
# Description: SMB server and client for unix
|
|
|
|
# URL: http://www.samba.org
|
2008-07-11 09:29:19 +02:00
|
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
2009-03-08 12:15:05 +01:00
|
|
|
# Depends on: ncurses openssl readline zlib
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=samba
|
2009-06-17 11:59:06 +02:00
|
|
|
version=3.3.5
|
2007-12-12 11:22:08 +01:00
|
|
|
release=1
|
2006-12-30 16:47:35 +01:00
|
|
|
source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
|
2008-07-11 09:23:24 +02:00
|
|
|
samba-config.patch samba)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version/source
|
2007-11-21 11:32:43 +01:00
|
|
|
|
|
|
|
patch -d .. -p1 -i $SRC/samba-config.patch
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
./configure --prefix=/usr \
|
2008-07-11 09:23:24 +02:00
|
|
|
--libdir=/usr/lib/samba \
|
2008-10-23 14:26:22 +02:00
|
|
|
--localstatedir=/var \
|
2006-02-23 15:26:10 +00:00
|
|
|
--with-fhs \
|
|
|
|
--with-configdir=/etc/samba \
|
2009-01-29 17:26:29 +01:00
|
|
|
--with-modulesdir=/usr/lib/samba \
|
2006-02-23 15:26:10 +00:00
|
|
|
--with-lockdir=/var/run/samba \
|
|
|
|
--with-piddir=/var/run/samba \
|
2006-07-13 16:21:35 +00:00
|
|
|
--with-mandir=/usr/man \
|
2008-07-11 09:23:24 +02:00
|
|
|
--with-logfilebase=/var/log/samba \
|
|
|
|
--disable-swat
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2007-05-16 08:19:04 +02:00
|
|
|
make -j1
|
2006-07-13 16:21:35 +00:00
|
|
|
make DESTDIR=$PKG install
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2008-07-11 09:23:24 +02:00
|
|
|
install -d $PKG/sbin
|
2007-11-26 10:03:46 +01:00
|
|
|
mv $PKG/usr/sbin/*.cifs $PKG/sbin
|
2008-10-23 14:26:22 +02:00
|
|
|
ln -s samba/libsmbclient.so.0 $PKG/usr/lib/libsmbclient.so
|
|
|
|
|
|
|
|
install -d $PKG/etc/ld.so.conf.d
|
|
|
|
echo "/usr/lib/samba" > $PKG/etc/ld.so.conf.d/samba.conf
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2007-08-21 13:49:57 +02:00
|
|
|
# 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
|
|
|
|
|
2008-10-23 14:26:22 +02:00
|
|
|
# spool/log/lib directory
|
|
|
|
install -d $PKG/var/{lib,log}/samba
|
2007-08-21 13:49:57 +02:00
|
|
|
install -d -m 1777 $PKG/var/spool/samba
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
# config-file and start-script
|
2008-07-11 09:23:24 +02:00
|
|
|
install -m 600 ../examples/smb.conf.default $PKG/etc/samba
|
2006-02-23 15:26:10 +00:00
|
|
|
install -D -m 755 $SRC/samba $PKG/etc/rc.d/samba
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
# cleanup
|
2009-01-29 17:26:29 +01:00
|
|
|
rm -r $PKG/usr/share
|
2008-10-23 14:26:22 +02:00
|
|
|
rm -r $PKG/usr/man/man8/swat.8
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|