From 18e9a8b479699e8642ebd46f813378b3efdc0650 Mon Sep 17 00:00:00 2001 From: Andy Walsh Date: Sat, 4 Aug 2018 21:20:22 +0200 Subject: [PATCH] samba4: add missing avahi service definitions Signed-off-by: Andy Walsh --- net/samba4/Makefile | 5 +++++ net/samba4/files/samba.service | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 net/samba4/files/samba.service diff --git a/net/samba4/Makefile b/net/samba4/Makefile index c140d7aa2..c111d0986 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 000000000..8191e527f --- /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 + +