2006-02-23 16:26:10 +01: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
|
2010-03-25 11:13:43 +01:00
|
|
|
# Depends on: ncurses openssl readline zlib tdb libcap
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=samba
|
2010-05-20 21:54:19 +02:00
|
|
|
version=3.5.3
|
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 16:26:10 +01:00
|
|
|
|
|
|
|
build () {
|
2009-07-17 11:34:52 +02:00
|
|
|
cd $name-$version/source3
|
2007-11-21 11:32:43 +01:00
|
|
|
|
|
|
|
patch -d .. -p1 -i $SRC/samba-config.patch
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
./configure --prefix=/usr \
|
2008-10-23 14:26:22 +02:00
|
|
|
--localstatedir=/var \
|
2006-02-23 16:26:10 +01:00
|
|
|
--with-fhs \
|
|
|
|
--with-configdir=/etc/samba \
|
2009-01-29 17:26:29 +01:00
|
|
|
--with-modulesdir=/usr/lib/samba \
|
2006-02-23 16:26:10 +01:00
|
|
|
--with-lockdir=/var/run/samba \
|
|
|
|
--with-piddir=/var/run/samba \
|
2006-07-13 18:21:35 +02:00
|
|
|
--with-mandir=/usr/man \
|
2008-07-11 09:23:24 +02:00
|
|
|
--with-logfilebase=/var/log/samba \
|
2010-03-25 11:13:43 +01:00
|
|
|
--disable-swat \
|
|
|
|
--with-included-popt \
|
|
|
|
--with-cifs{mount,umount} \
|
|
|
|
--enable-external-libtdb
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2010-03-25 11:13:43 +01:00
|
|
|
make
|
2006-07-13 18:21:35 +02: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
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2007-08-21 13:49:57 +02:00
|
|
|
# nsswitch extensions
|
|
|
|
install -d $PKG/lib
|
2009-07-17 11:34:52 +02:00
|
|
|
install ../nsswitch/libnss_win{s,bind}.so $PKG/lib
|
2007-08-21 13:49:57 +02:00
|
|
|
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 16:26:10 +01: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 16:26:10 +01:00
|
|
|
install -D -m 755 $SRC/samba $PKG/etc/rc.d/samba
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
# cleanup
|
2009-01-29 17:26:29 +01:00
|
|
|
rm -r $PKG/usr/share
|
2010-03-25 11:13:43 +01:00
|
|
|
rm $PKG/usr/man/man8/{swat.8,tdb*.8}
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|