2006-02-23 16:26:10 +01:00
|
|
|
# Description: SMB server and client for unix
|
|
|
|
# URL: http://www.samba.org
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2011-01-09 12:17:40 +01:00
|
|
|
# Depends on: ncurses openssl readline zlib tdb talloc libcap acl
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=samba
|
2012-08-07 18:43:40 +02:00
|
|
|
version=3.6.7
|
2012-04-30 18:22:38 +02: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
|
|
|
|
2011-09-02 12:20:35 +02:00
|
|
|
patch -d .. -p1 -i $SRC/samba-config.patch
|
2007-11-21 11:32:43 +01:00
|
|
|
|
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 \
|
2011-09-02 11:49:12 +02:00
|
|
|
--with-nmbdsocketdir=/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 \
|
2011-01-09 12:17:40 +01:00
|
|
|
--enable-external-{libtdb,libtalloc}
|
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
|
|
|
|
2012-04-19 10:07:52 +02:00
|
|
|
# pkg-config files
|
|
|
|
install -d $PKG/usr/lib/pkgconfig
|
|
|
|
install pkgconfig/*.pc $PKG/usr/lib/pkgconfig
|
|
|
|
|
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
|
|
|
}
|