6dccc13e36
New dependencies added: nss_wrapper, socket_wrapper and uid_wrapper Added patches to fix building with gnutls >= 3.4.0 and krb5
65 lines
1.7 KiB
Plaintext
65 lines
1.7 KiB
Plaintext
# Description: SMB server and client for unix
|
|
# URL: http://www.samba.org
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
# Packager: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: iniparser krb5 ldb libaio libcap ntdb p5-parse-yapp py-subunit subunit nss_wrapper socket_wrapper uid_wrapper
|
|
# Optional: cups
|
|
|
|
name=samba
|
|
version=4.2.1
|
|
release=4
|
|
source=(
|
|
http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz
|
|
v2-0001-s4-lib-tls-use-gnutls_priority_set_direct.patch
|
|
samba-4.2.1-krb5.patch
|
|
samba.rc
|
|
nmbd.rc
|
|
smbd.rc
|
|
winbindd.rc
|
|
)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
# fix for configuring with krb5 installed
|
|
# https://bugzilla.samba.org/show_bug.cgi?id=11165
|
|
patch -p1 -i $SRC/samba-4.2.1-krb5.patch
|
|
|
|
# fix for gnutls-3.4.0 removal of gnutls_certificate_type_set_priority()
|
|
# https://bugzilla.samba.org/show_bug.cgi?id=8780
|
|
patch -p1 -i $SRC/v2-0001-s4-lib-tls-use-gnutls_priority_set_direct.patch
|
|
|
|
# we should define vendorlib in our perl port
|
|
sed -ri 's/(vendor)(arch|lib|prefix)/site\2/' buildtools/wafsamba/samba_perl.py
|
|
|
|
./configure \
|
|
--enable-fhs \
|
|
--prefix=/usr \
|
|
--localstatedir=/var \
|
|
--mandir=/usr/man \
|
|
--sysconfdir=/etc \
|
|
--with-privatedir=/etc/samba/private \
|
|
--bundled-libraries=NONE \
|
|
--with-system-mitkrb5
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
# man pages
|
|
for i in docs/manpages/*; do
|
|
install -D -m 644 $i $PKG/usr/man/man${i##*.}/${i##*/}
|
|
done
|
|
|
|
# cleanup
|
|
chmod 1777 $PKG/var/lock
|
|
|
|
# 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
|
|
|
|
# startup scripts
|
|
for i in samba nmbd smbd winbindd; do
|
|
install -m 0755 $SRC/$i.rc $PKG/etc/rc.d/$i
|
|
done
|
|
}
|