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
|
2014-06-25 09:55:29 +02:00
|
|
|
version=4.1.9
|
2013-07-10 12:24:13 +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-07-24 12:05:06 +02:00
|
|
|
local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
|
|
|
|
test -n "$JOBS" && export JOBS="$JOBS"
|
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 \
|
2014-06-04 21:36:00 +02:00
|
|
|
--with-privatedir=/etc/samba/private
|
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
|
|
|
|
|
2013-10-18 09:41:30 +02:00
|
|
|
# cleanup
|
2013-05-23 11:19:50 +02:00
|
|
|
chmod 1777 $PKG/var/lock
|
2013-05-21 15:35:22 +02:00
|
|
|
|
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
|
|
|
}
|