mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
samba: enable back avahi support, this partly reverts https://github.com/OpenELEC/OpenELEC.tv/commit/d314594b, this should fix #2339
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
e421767ed5
commit
45b52c5bd2
@ -40,14 +40,7 @@ mkdir -p $INSTALL/etc/avahi
|
||||
|
||||
mkdir -p $INSTALL/etc/avahi/services
|
||||
# cp $PKG_BUILD/avahi-daemon/ssh.service $INSTALL/etc/avahi/services
|
||||
|
||||
if [ $SAMBA_SERVER = "yes" ]; then
|
||||
if [ -f $PROJECT_DIR/$PROJECT/avahi/samba.service ]; then
|
||||
cp $PROJECT_DIR/$PROJECT/avahi/samba.service $INSTALL/etc/avahi/services
|
||||
else
|
||||
cp $PKG_DIR/config/samba.service $INSTALL/etc/avahi/services
|
||||
fi
|
||||
fi
|
||||
# cp $PKG_DIR/config/samba.service $INSTALL/etc/avahi/services
|
||||
|
||||
if [ $SFTP_SERVER = "yes" ]; then
|
||||
cp $PKG_BUILD/avahi-daemon/sftp-ssh.service $INSTALL/etc/avahi/services
|
||||
|
@ -22,6 +22,12 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
if [ "$AVAHI_DAEMON" = yes ]; then
|
||||
SMB_AVAHI="--enable-avahi"
|
||||
else
|
||||
SMB_AVAHI="--disable-avahi"
|
||||
fi
|
||||
|
||||
CFLAGS="$CFLAGS -fPIC -DPIC"
|
||||
|
||||
cd $PKG_BUILD/source3
|
||||
@ -73,7 +79,7 @@ samba_cv_have_setresuid=yes \
|
||||
--disable-relro \
|
||||
--disable-fam \
|
||||
--disable-dnssd \
|
||||
--disable-avahi \
|
||||
$SMB_AVAHI \
|
||||
--disable-pthreadpool \
|
||||
--enable-gnutls \
|
||||
--disable-netapi \
|
||||
|
@ -34,3 +34,8 @@ PKG_LONGDESC="Samba is a SMB server that runs on Unix and other operating system
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
if [ "$AVAHI_DAEMON" = yes ]; then
|
||||
PKG_DEPENDS="$PKG_DEPENDS avahi"
|
||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS avahi"
|
||||
fi
|
||||
|
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
||||
<service-group>
|
||||
<name replace-wildcards="yes">%h</name>
|
||||
<service>
|
||||
<type>_smb._tcp</type>
|
||||
<port>445</port>
|
||||
</service>
|
||||
<service>
|
||||
<type>_device-info._tcp</type>
|
||||
<port>0</port>
|
||||
<txt-record>model=AppleTV1,1</txt-record>
|
||||
</service>
|
||||
</service-group>
|
Loading…
x
Reference in New Issue
Block a user