From: Andy Walsh Date: Sat, 4 Aug 2018 19:20:22 +0000 (+0200) Subject: samba4: add missing avahi service definitions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=18e9a8b479699e8642ebd46f813378b3efdc0650;p=feed%2Fpackages.git samba4: add missing avahi service definitions Signed-off-by: Andy Walsh --- diff --git a/net/samba4/Makefile b/net/samba4/Makefile index c140d7aa29..c111d09865 100644 --- a/net/samba4/Makefile +++ b/net/samba4/Makefile @@ -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)) diff --git a/net/samba4/files/samba.service b/net/samba4/files/samba.service new file mode 100644 index 0000000000..8191e527f6 --- /dev/null +++ b/net/samba4/files/samba.service @@ -0,0 +1,14 @@ + + + + %h + + _adisk._tcp + sys=waMa=0,adVF=0x100 + dk0=adVN=TimeMachine,adVF=0x82 + + + _smb._tcp + 445 + +