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/Andy2244/wsdd2.git
  6. PKG_SOURCE_DATE:=2021-06-28
  7. PKG_SOURCE_VERSION:=062a9542d4bad31f3a9c6f36c9d9ea53c01ebdf6
  8. PKG_MIRROR_HASH:=651662d165c63925f5932dc716beb4949aa03755ea04300bb7dfd5f186a8b69a
  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://kb.netgear.com/2649/NETGEAR-Open-Source-Code-for-Programmers-GPL
  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))