samba: build as static library, disable debug support, build without sqlite support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-05-23 06:18:44 +02:00
parent 8fc3d3e130
commit 97af26f6ec
7 changed files with 18 additions and 23 deletions

View File

@ -157,6 +157,7 @@ fi
if [ "$SAMBA_CLIENT" = yes ]; then if [ "$SAMBA_CLIENT" = yes ]; then
XBMC_SAMBA="--enable-samba" XBMC_SAMBA="--enable-samba"
export LIBS="$LIBS -ltalloc -ltdb -lwbclient"
else else
XBMC_SAMBA="--disable-samba" XBMC_SAMBA="--disable-samba"
fi fi

View File

@ -130,6 +130,7 @@ fi
if [ "$SAMBA_CLIENT" = yes ]; then if [ "$SAMBA_CLIENT" = yes ]; then
XBMC_SAMBA="--enable-samba" XBMC_SAMBA="--enable-samba"
export LIBS="$LIBS -ltalloc -ltdb -lwbclient"
else else
XBMC_SAMBA="--disable-samba" XBMC_SAMBA="--disable-samba"
fi fi

View File

@ -148,6 +148,7 @@ fi
if [ "$SAMBA_CLIENT" = yes ]; then if [ "$SAMBA_CLIENT" = yes ]; then
XBMC_SAMBA="--enable-samba" XBMC_SAMBA="--enable-samba"
export LIBS="$LIBS -ltalloc -ltdb -lwbclient"
else else
XBMC_SAMBA="--disable-samba" XBMC_SAMBA="--disable-samba"
fi fi

View File

@ -130,6 +130,7 @@ fi
if [ "$SAMBA_CLIENT" = yes ]; then if [ "$SAMBA_CLIENT" = yes ]; then
XBMC_SAMBA="--enable-samba" XBMC_SAMBA="--enable-samba"
export LIBS="$LIBS -ltalloc -ltdb -lwbclient"
else else
XBMC_SAMBA="--disable-samba" XBMC_SAMBA="--disable-samba"
fi fi

View File

@ -40,9 +40,9 @@ sh autogen.sh
--sysconfdir=/etc \ --sysconfdir=/etc \
--with-configdir=/etc/samba \ --with-configdir=/etc/samba \
--with-privatedir=/var/run \ --with-privatedir=/var/run \
--enable-shared \ --disable-shared \
--disable-static \ --enable-static \
--enable-debug \ --disable-debug \
--disable-krb5developer \ --disable-krb5developer \
--disable-picky-developer \ --disable-picky-developer \
--enable-largefile \ --enable-largefile \
@ -51,9 +51,9 @@ sh autogen.sh
--disable-swat \ --disable-swat \
--disable-cups \ --disable-cups \
--disable-iprint \ --disable-iprint \
--enable-pie \ --disable-pie \
--enable-relro \ --disable-relro \
--enable-shared-libs \ --disable-shared-libs \
--disable-external-libtalloc \ --disable-external-libtalloc \
--disable-external-libtdb \ --disable-external-libtdb \
--disable-fam \ --disable-fam \
@ -64,9 +64,9 @@ sh autogen.sh
--disable-netapi \ --disable-netapi \
--disable-dmalloc \ --disable-dmalloc \
--with-fhs \ --with-fhs \
--without-libtalloc \ --with-libtalloc \
--without-libtdb \ --with-libtdb \
--without-libnetapi \ --with-libnetapi \
--with-libsmbclient \ --with-libsmbclient \
--with-libsmbsharemodes \ --with-libsmbsharemodes \
--without-libaddns \ --without-libaddns \
@ -98,20 +98,14 @@ sh autogen.sh
--with-included-popt \ --with-included-popt \
--with-included-iniparser \ --with-included-iniparser \
--with-libiconv="$SYSROOT_PREFIX/usr" \ --with-libiconv="$SYSROOT_PREFIX/usr" \
--with-sqlite3 \ --without-sqlite3 \
--with-pthreads \ --with-pthreads \
--without-setproctitle \ --without-setproctitle \
make bin/libsmbclient.so make
if [ "$SAMBA_SERVER" = yes ]; then
make bin/smbd
make bin/nmbd
make bin/smbpasswd
fi
mkdir -p $SYSROOT_PREFIX/usr/lib mkdir -p $SYSROOT_PREFIX/usr/lib
cp -P bin/*.so* $SYSROOT_PREFIX/usr/lib cp -P bin/*.a $SYSROOT_PREFIX/usr/lib
mkdir -p $SYSROOT_PREFIX/usr/include mkdir -p $SYSROOT_PREFIX/usr/include
cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include

View File

@ -22,9 +22,6 @@
. config/options $1 . config/options $1
mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/source3/bin/*.so* $INSTALL/usr/lib
if [ "$SAMBA_SERVER" = "yes" ]; then if [ "$SAMBA_SERVER" = "yes" ]; then
mkdir -p $INSTALL/usr/bin mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/source3/bin/smbd $INSTALL/usr/bin cp $PKG_BUILD/source3/bin/smbd $INSTALL/usr/bin

View File

@ -25,8 +25,8 @@ PKG_ARCH="any"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="http://www.samba.org" PKG_SITE="http://www.samba.org"
PKG_URL="http://samba.org/samba/ftp/stable/$PKG_NAME-$PKG_VERSION.tar.gz" PKG_URL="http://samba.org/samba/ftp/stable/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="$ICONV sqlite connman" PKG_DEPENDS="$ICONV connman"
PKG_BUILD_DEPENDS="toolchain $ICONV sqlite" PKG_BUILD_DEPENDS="toolchain $ICONV"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="network" PKG_SECTION="network"
PKG_SHORTDESC="samba: The free SMB / CIFS fileserver and client" PKG_SHORTDESC="samba: The free SMB / CIFS fileserver and client"