Browse Source

samba4: add missing avahi service definitions

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
lilik-openwrt-22.03
Andy Walsh 6 years ago
committed by Yousong Zhou
parent
commit
18e9a8b479
2 changed files with 19 additions and 0 deletions
  1. +5
    -0
      net/samba4/Makefile
  2. +14
    -0
      net/samba4/files/samba.service

+ 5
- 0
net/samba4/Makefile View File

@ -368,6 +368,10 @@ ifeq ($(CONFIG_SAMBA4_SERVER_WINBIND),y)
endif
ifeq ($(CONFIG_SAMBA4_SERVER_ACL),y)
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sharesec $(1)/usr/bin/
endif
ifeq ($(CONFIG_SAMBA4_SERVER_AVAHI),y)
$(INSTALL_DIR) $(1)/etc/avahi/services
$(INSTALL_DATA) ./files/samba.service $(1)/etc/avahi/services/
endif
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/samba $(1)/etc/init.d
$(INSTALL_DATA) ./files/samba.config $(1)/etc/config/samba4
@ -385,6 +389,7 @@ define Package/samba4-server/conffiles
/etc/samba/idmap.ldb
/etc/samba/lmhosts
/etc/nsswitch.conf
/etc/avahi/services/samba.service
endef
$(eval $(call BuildPackage,samba4-libs))


+ 14
- 0
net/samba4/files/samba.service View File

@ -0,0 +1,14 @@
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_adisk._tcp</type>
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
<txt-record>dk0=adVN=TimeMachine,adVF=0x82</txt-record>
</service>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
</service-group>

Loading…
Cancel
Save