#!/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