samba4: add missing avahi service definitions
Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
This commit is contained in:
parent
797a003f3c
commit
18e9a8b479
2 changed files with 19 additions and 0 deletions
|
@ -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
net/samba4/files/samba.service
Normal file
14
net/samba4/files/samba.service
Normal 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…
Reference in a new issue