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
XBMC_SAMBA="--enable-samba"
export LIBS="$LIBS -ltalloc -ltdb -lwbclient"
else
XBMC_SAMBA="--disable-samba"
fi

View File

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

View File

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

View File

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

View File

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

View File

@ -22,9 +22,6 @@
. config/options $1
mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/source3/bin/*.so* $INSTALL/usr/lib
if [ "$SAMBA_SERVER" = "yes" ]; then
mkdir -p $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_SITE="http://www.samba.org"
PKG_URL="http://samba.org/samba/ftp/stable/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="$ICONV sqlite connman"
PKG_BUILD_DEPENDS="toolchain $ICONV sqlite"
PKG_DEPENDS="$ICONV connman"
PKG_BUILD_DEPENDS="toolchain $ICONV"
PKG_PRIORITY="optional"
PKG_SECTION="network"
PKG_SHORTDESC="samba: The free SMB / CIFS fileserver and client"