187084d9201bca684f32429a8cc49d86f5cc3945
[feed/packages.git] / net / wsdd2 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=wsdd2
4 PKG_RELEASE:=1
5
6 PKG_SOURCE_PROTO:=git
7 PKG_SOURCE_URL:=https://github.com/Netgear/wsdd2.git
8 PKG_SOURCE_DATE:=2023-12-21
9 PKG_SOURCE_VERSION:=b676d8ac8f1aef792cb0761fb68a0a589ded3207
10 PKG_MIRROR_HASH:=ac817f63605508779ebebf612fcb7d594ff87d3050b788f240d1fea9fdbaa3a0
11
12 PKG_LICENSE:=GPL-3.0-only
13 PKG_LICENSE_FILES:=COPYING
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/wsdd2
18 SECTION:=net
19 CATEGORY:=Network
20 SUBMENU:=IP Addresses and Names
21 TITLE:=Web Services for Devices (WSD) daemon
22 URL:=https://github.com/Netgear/wsdd2
23 endef
24
25 define Package/wsdd2/description
26 Web Services for Devices or Web Services on Devices (WSD),
27 is a Microsoft API to simplify programming connections to web service
28 enabled devices, such as printers, scanners and file shares.
29
30 This daemon advertises and responds to probe requests from Windows clients looking for file shares.
31 It also implements LLMNR multicast name lookup services.
32 endef
33
34 define Build/Compile
35 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(PKG_BUILD_DIR)/{wsdd2.c,wsd.c,llmnr.c} -o $(PKG_BUILD_DIR)/wsdd2
36 endef
37
38 define Package/wsdd2/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/wsdd2 $(1)/usr/bin/
41 $(INSTALL_DIR) $(1)/etc/init.d
42 $(INSTALL_BIN) ./files/wsdd2.init $(1)/etc/init.d/wsdd2
43 endef
44
45 $(eval $(call BuildPackage,wsdd2))