opt/samba/Pkgfile
Juergen Daubert a323a334e1 [notify] samba: update to 4.0.6
Note 1
------
This is the first version of our opt/samba port that uses the samba 4
sources, but it resembles more the old samba 3 port rather than to
introduce any support for the samba 4 sepcific features.

I've tested it only as an simple fileserver in my LAN and will not do
anything releated to the server-side of the Active Directory logon
environment. Of course, contributions and ideas therefor are welcome.

Note 2
------
New dependencies: libaio popt
2013-05-21 15:35:22 +02:00

43 lines
1.2 KiB
Plaintext

# Description: SMB server and client for unix
# URL: http://www.samba.org
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: ncurses openssl readline zlib tdb talloc libcap acl libaio popt
name=samba
version=4.0.6
release=1
source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
samba)
build () {
cd $name-$version
export JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
./configure --enable-fhs \
--prefix=/usr \
--localstatedir=/var \
--mandir=/usr/man \
--sysconfdir=/etc \
--with-privatedir=/etc/samba/private \
--without-swat
make
make DESTDIR=$PKG install
# 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
# config-file and start-script
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
}