samba: disable quotas to make this build with musl for now.

This commit is contained in:
Juan RP 2015-05-10 09:47:55 +02:00
parent 7494f7d07f
commit 54a165e911

View file

@ -1,7 +1,7 @@
# Template file for 'samba' # Template file for 'samba'
pkgname=samba pkgname=samba
version=3.6.25 version=3.6.25
revision=4 revision=5
build_pie=yes build_pie=yes
build_wrksrc=source3 build_wrksrc=source3
build_style=gnu-configure build_style=gnu-configure
@ -25,11 +25,13 @@ build_options="systemd"
conf_files="/etc/pam.d/samba" conf_files="/etc/pam.d/samba"
make_dirs="/etc/samba/private 0750 root root" make_dirs="/etc/samba/private 0750 root root"
hostmakedepends="pkg-config perl python-devel" hostmakedepends="pkg-config perl python-devel"
makedepends="readline-devel libcap-devel popt-devel e2fsprogs-devel makedepends="readline-devel libcap-devel popt-devel e2fsprogs-devel mit-krb5-devel
mit-krb5-devel libldap-devel pam-devel acl-devel avahi-libs-devel libldap-devel pam-devel acl-devel avahi-libs-devel tdb-devel talloc-devel cups-devel"
tdb-devel talloc-devel cups-devel"
if [ "$CROSS_BUILD" ]; then do_configure() {
sed -e 's,XFS_QUOTA_,FS_QUOTA_,g' -i lib/sysquotas_xfs.c
if [ "$CROSS_BUILD" ]; then
configure_args+=" samba_cv_CC_NEGATIVE_ENUM_VALUES=yes configure_args+=" samba_cv_CC_NEGATIVE_ENUM_VALUES=yes
libreplace_cv_HAVE_GETADDRINFO=no libreplace_cv_HAVE_GETADDRINFO=no
libreplace_cv_HAVE_GETIFADDRS=yes libreplace_cv_HAVE_GETIFADDRS=yes
@ -38,10 +40,9 @@ if [ "$CROSS_BUILD" ]; then
samba_cv_HAVE_WRFILE_KEYTAB=yes samba_cv_HAVE_WRFILE_KEYTAB=yes
smb_krb5_cv_enctype_to_string_takes_size_t_arg=yes smb_krb5_cv_enctype_to_string_takes_size_t_arg=yes
smb_krb5_cv_enctype_to_string_takes_krb5_context_arg=yes" smb_krb5_cv_enctype_to_string_takes_krb5_context_arg=yes"
fi fi
# Disable quotas, broken with musl (needs rpc).
pre_configure() { ./configure ${configure_args} --without-quotas
sed -e 's,XFS_QUOTA_,FS_QUOTA_,g' -i lib/sysquotas_xfs.c
} }
post_install() { post_install() {
cd ${wrksrc} cd ${wrksrc}