2006-02-23 15:26:10 +00: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
|
2013-05-21 15:35:22 +02:00
|
|
|
# Depends on: ncurses openssl readline zlib tdb talloc libcap acl libaio popt
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=samba
|
2013-05-21 15:35:22 +02:00
|
|
|
version=4.0.6
|
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 \
|
2013-05-21 15:35:22 +02:00
|
|
|
samba)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
2013-05-21 15:35:22 +02:00
|
|
|
cd $name-$version
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2013-05-21 15:35:22 +02:00
|
|
|
export JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2013-05-21 15:35:22 +02:00
|
|
|
./configure --enable-fhs \
|
|
|
|
--prefix=/usr \
|
2008-10-23 14:26:22 +02:00
|
|
|
--localstatedir=/var \
|
2013-05-21 15:35:22 +02:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-privatedir=/etc/samba/private \
|
|
|
|
--without-swat
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2010-03-25 11:13:43 +01:00
|
|
|
make
|
2006-07-13 16:21:35 +00:00
|
|
|
make DESTDIR=$PKG install
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2013-05-21 15:35:22 +02:00
|
|
|
# man pages
|
|
|
|
install -d $PKG/usr/man/man{1,5,8}
|
|
|
|
install -m 644 docs/manpages/*.1 $PKG/usr/man/man1
|
|
|
|
install -m 644 docs/manpages/*.5 $PKG/usr/man/man5
|
|
|
|
install -m 644 docs/manpages/*.8 $PKG/usr/man/man8
|
|
|
|
|
|
|
|
#cleanup
|
|
|
|
rm -r $PKG/usr/share/samba/swat
|
|
|
|
rm $PKG/usr/man/man8/swat.8
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
# config-file and start-script
|
2013-05-21 15:35:22 +02:00
|
|
|
install -d $PKG/etc/{samba,rc.d}
|
|
|
|
install -m 0600 packaging/LSB/smb.conf $PKG/etc/samba/smb.conf.default
|
|
|
|
install -m 0755 $SRC/samba $PKG/etc/rc.d
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|