Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
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
/etc/samba/idmap.ldb
/etc/samba/lmhosts
/etc/nsswitch.conf
+/etc/avahi/services/samba.service
endef
$(eval $(call BuildPackage,samba4-libs))
--- /dev/null
+<?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>