You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

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