Files
Arch-R/packages/network/samba/build
Stephan Raue e02d378f29 samba: cleanup
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2011-07-03 01:31:55 +02:00

121 lines
3.9 KiB
Bash
Executable File

#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. config/options $1
if [ "$AVAHI_DAEMON" = yes ]; then
SMB_AVAHI="--enable-avahi"
else
SMB_AVAHI="--disable-avahi"
fi
export samba_cv_CC_NEGATIVE_ENUM_VALUES=no
export ac_cv_lib_avahi_client_avahi_client_new=yes
cd $PKG_BUILD/source3
sh autogen.sh
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
--with-configdir=/etc/samba \
--with-privatedir=/var/run \
--enable-shared \
--disable-static \
--enable-debug \
--disable-krb5developer \
--disable-picky-developer \
--enable-largefile \
--disable-socket-wrapper \
--disable-nss-wrapper \
--disable-swat \
--disable-cups \
--disable-iprint \
--enable-pie \
--enable-relro \
--enable-shared-libs \
--disable-external-libtalloc \
--disable-external-libtdb \
--disable-fam \
--disable-dnssd \
$SMB_AVAHI \
--disable-pthreadpool \
--enable-gnutls \
--disable-netapi \
--disable-dmalloc \
--with-fhs \
--without-libtalloc \
--without-libtdb \
--without-libnetapi \
--with-libsmbclient \
--with-libsmbsharemodes \
--without-libaddns \
--without-afs \
--without-fake-kaserver \
--without-vfs-afsacl \
--without-dce-dfs \
--without-ldap \
--without-ads \
--without-dnsupdate \
--without-automount \
--without-cifsmount \
--without-cifsumount \
--without-cifsupcall \
--without-pam \
--without-pam_smbpass \
--without-nisplus-home \
--with-syslog \
--without-quotas \
--without-sys-quotas \
--without-utmp \
--without-cluster-support \
--without-acl-support \
--without-aio-support \
--with-sendfile-support \
--without-wbclient \
--with-winbind \
--with-static-modules=charset_CP437,charset_CP850 \
--with-included-popt \
--with-included-iniparser \
--with-libiconv=$SYSROOT_PREFIX/usr \
--with-sqlite3 \
--with-pthreads \
--without-setproctitle \
make bin/libsmbclient.so
if [ "$SAMBA_SERVER" = yes ]; then
make bin/smbd
make bin/nmbd
fi
mkdir -p $SYSROOT_PREFIX/usr/lib
cp -P bin/*.so* $SYSROOT_PREFIX/usr/lib
mkdir -p $SYSROOT_PREFIX/usr/include
cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include
mkdir -p $SYSROOT_PREFIX/usr/lib/pkgconfig
cp pkgconfig/smbclient.pc $SYSROOT_PREFIX/usr/lib/pkgconfig