[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
This commit is contained in:
parent
029778d661
commit
a323a334e1
949
samba/.footprint
949
samba/.footprint
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +1,2 @@
|
|||
448caca4745aef1a842f4fdb1aa62e1e samba
|
||||
d9424e9badb089bd51e6cfc752b21dfa samba-3.6.15.tar.gz
|
||||
fbaccda19afc8f75f6f0123cab82c87e samba-config.patch
|
||||
db9dc684f167a602c18acc19d3e7e401 samba-4.0.6.tar.gz
|
||||
|
|
|
@ -1,55 +1,42 @@
|
|||
# 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
|
||||
# Depends on: ncurses openssl readline zlib tdb talloc libcap acl libaio popt
|
||||
|
||||
name=samba
|
||||
version=3.6.15
|
||||
version=4.0.6
|
||||
release=1
|
||||
source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
|
||||
samba-config.patch samba)
|
||||
samba)
|
||||
|
||||
build () {
|
||||
cd $name-$version/source3
|
||||
cd $name-$version
|
||||
|
||||
patch -d .. -p1 -i $SRC/samba-config.patch
|
||||
export JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
|
||||
|
||||
./configure --prefix=/usr \
|
||||
./configure --enable-fhs \
|
||||
--prefix=/usr \
|
||||
--localstatedir=/var \
|
||||
--with-fhs \
|
||||
--with-configdir=/etc/samba \
|
||||
--with-modulesdir=/usr/lib/samba \
|
||||
--with-lockdir=/var/run/samba \
|
||||
--with-piddir=/var/run/samba \
|
||||
--with-nmbdsocketdir=/var/run/samba \
|
||||
--with-mandir=/usr/man \
|
||||
--with-logfilebase=/var/log/samba \
|
||||
--disable-swat \
|
||||
--with-included-popt \
|
||||
--enable-external-{libtdb,libtalloc}
|
||||
--mandir=/usr/man \
|
||||
--sysconfdir=/etc \
|
||||
--with-privatedir=/etc/samba/private \
|
||||
--without-swat
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
# pkg-config files
|
||||
install -d $PKG/usr/lib/pkgconfig
|
||||
install pkgconfig/*.pc $PKG/usr/lib/pkgconfig
|
||||
|
||||
# nsswitch extensions
|
||||
install -d $PKG/lib
|
||||
install ../nsswitch/libnss_win{s,bind}.so $PKG/lib
|
||||
ln -s libnss_wins.so $PKG/lib/libnss_wins.so.2
|
||||
ln -s libnss_winbind.so $PKG/lib/libnss_winbind.so.2
|
||||
|
||||
# spool/log/lib directory
|
||||
install -d $PKG/var/{lib,log}/samba
|
||||
install -d -m 1777 $PKG/var/spool/samba
|
||||
|
||||
# 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 -m 600 ../examples/smb.conf.default $PKG/etc/samba
|
||||
install -D -m 755 $SRC/samba $PKG/etc/rc.d/samba
|
||||
|
||||
# cleanup
|
||||
rm -r $PKG/usr/share
|
||||
rm $PKG/usr/man/man8/{swat.8,tdb*.8}
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user