Files
Arch-R/packages/network/samba/build
Stephan Raue cd223eadd1 samba:
- remove winbind support
2010-06-16 15:19:11 +02:00

67 lines
1.7 KiB
Bash
Executable File

#!/bin/sh
. config/options
$SCRIPTS/build toolchain
if [ "$AVAHI_DAEMON" = yes ]; then
$SCRIPTS/build avahi
SMB_AVAHI="--enable-avahi"
else
SMB_AVAHI="--disable-avahi"
fi
export samba_cv_CC_NEGATIVE_ENUM_VALUES=no
cd $PKG_BUILD/source3
./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 \
--with-fhs \
--enable-pie \
--with-pthreads \
--with-sqlite3 \
--enable-relro \
--disable-swat \
--disable-cups \
$SMB_AVAHI \
--without-pam \
--without-ads \
--without-libtalloc \
--without-libtdb \
--without-libnetapi \
--without-cifsmount \
--without-ldap \
--without-acl-support \
--without-winbind \
--with-dnsupdate \
--with-automount \
--with-included-popt \
--with-libsmbclient \
--without-libsmbsharemodes \
--without-quotas \
--without-sys-quotas \
--with-syslog \
make bin/libsmbclient.so
if [ "$SAMBA_SERVER" = yes ]; then
make bin/smbd
fi
mkdir -p $SYSROOT_PREFIX/usr/lib
cp -PR bin/libsmbclient.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