mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
samba:
- various cleanups - set privatedir to /var/run - set configdir to /etc/samba - copy smb.conf to /etc/samba - add some needed options - dont build smbtree - change smb.conf a bit
This commit is contained in:
parent
408752c147
commit
0881409386
@ -5,12 +5,6 @@
|
||||
$SCRIPTS/build toolchain
|
||||
$SCRIPTS/build libiconv
|
||||
|
||||
#export samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
|
||||
#export samba_cv_USE_SETEUID=yes
|
||||
#export samba_cv_HAVE_IFACE_IFCONF=yes
|
||||
#export SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=no
|
||||
#export samba_cv_have_longlong=yes
|
||||
|
||||
export samba_cv_CC_NEGATIVE_ENUM_VALUES=no
|
||||
|
||||
cd $PKG_BUILD/source3
|
||||
@ -18,10 +12,18 @@ cd $PKG_BUILD/source3
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--localstatedir=/var \
|
||||
--with-configdir=/etc \
|
||||
--with-privatedir=/etc \
|
||||
--sysconfdir=/etc \
|
||||
--with-configdir=/etc/samba \
|
||||
--with-privatedir=/var/run \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--disable-pie \
|
||||
--disable-cups \
|
||||
--enable-avahi \
|
||||
--without-ads \
|
||||
--with-libtalloc \
|
||||
--with-libtdb \
|
||||
--without-libnetapi \
|
||||
--without-cifsmount \
|
||||
--without-ldap \
|
||||
--without-winbind \
|
||||
@ -33,8 +35,7 @@ cd $PKG_BUILD/source3
|
||||
--with-syslog \
|
||||
--with-libiconv=$SYSROOT_PREFIX/usr \
|
||||
|
||||
make bin/smbtree \
|
||||
bin/libsmbclient.so \
|
||||
make bin/libsmbclient.so \
|
||||
bin/smbd
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/lib
|
||||
@ -44,7 +45,6 @@ mkdir -p $SYSROOT_PREFIX/usr/lib
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/include
|
||||
cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include
|
||||
#cp include/libmsrpc.h $SYSROOT_PREFIX/usr/include
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/lib/pkgconfig
|
||||
cp pkgconfig/smbclient.pc $SYSROOT_PREFIX/usr/lib/pkgconfig
|
||||
|
@ -1,12 +1,12 @@
|
||||
[global]
|
||||
server string = OpenELEC(%i)
|
||||
server string = OpenELEC.tv Mediacenter(%i)
|
||||
security = share
|
||||
guest account = root
|
||||
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
|
||||
wins support = no
|
||||
syslog only = yes
|
||||
|
||||
[root]
|
||||
[Storage]
|
||||
path = /storage
|
||||
available = yes
|
||||
browsable = yes
|
||||
@ -21,6 +21,6 @@
|
||||
; available = yes
|
||||
; browsable = yes
|
||||
; public = yes
|
||||
; writable = yes
|
||||
; writable = yes
|
||||
; root preexec = /usr/bin/rw /mnt/mydisk
|
||||
; root postexec = /usr/bin/ro /mnt/mydisk
|
||||
|
@ -5,8 +5,5 @@
|
||||
(
|
||||
progress "Starting Samba server"
|
||||
|
||||
mkdir -p /var/run/samba
|
||||
touch /var/run/samba/secrets.tdb
|
||||
/usr/bin/smbd > /dev/null 2>&1
|
||||
|
||||
/usr/bin/smbd -D > /dev/null 2>&1
|
||||
)&
|
||||
|
@ -15,7 +15,6 @@ if [ "$SAMBA_SERVER" = yes ]; then
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp $PKG_BUILD/source3/bin/smbd $INSTALL/usr/bin
|
||||
|
||||
mkdir -p $INSTALL/etc
|
||||
cp $PKG_DIR/config/smb.conf $INSTALL/etc/
|
||||
ln -sf /var/run/samba/secrets.tdb $INSTALL/etc/secrets.tdb
|
||||
mkdir -p $INSTALL/etc/samba
|
||||
cp $PKG_DIR/config/smb.conf $INSTALL/etc/samba
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user