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.

67 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2015-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=u2pnpd
  9. PKG_VERSION:=0.5
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/mhei/u2pnpd/releases/download/v$(PKG_VERSION)
  13. PKG_HASH:=863cf1b498b6704016ec5e84c07348b59d43a35d1332d1668f6f8968e1492210
  14. PKG_LICENSE:=GPL-2.0-only
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/u2pnpd
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=Announce device via UPnP on the network
  24. URL:=https://github.com/mhei/u2pnpd
  25. DEPENDS:=+libupnp
  26. endef
  27. define Package/u2pnpd/description
  28. This tools announces a device via UPnP on the local network, thus it is possible
  29. to find it within the network neightboorhood of a well-known OS and the user
  30. can easily double-click on an icon to open the web frontend of this device without
  31. knowing the IP address.
  32. endef
  33. define Package/u2pnpd/conffiles
  34. /etc/config/u2pnpd
  35. endef
  36. define Package/u2pnpd/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/u2pnpd $(1)/usr/bin/
  39. $(INSTALL_DIR) $(1)/etc/init.d
  40. $(INSTALL_BIN) ./files/u2pnpd.init $(1)/etc/init.d/u2pnpd
  41. $(INSTALL_DIR) $(1)/etc/uci-defaults
  42. $(INSTALL_DATA) ./files/u2pnpd.defaults $(1)/etc/uci-defaults/u2pnpd
  43. $(INSTALL_DIR) $(1)/etc/config
  44. $(INSTALL_CONF) ./files/u2pnpd.config $(1)/etc/config/u2pnpd
  45. endef
  46. define Package/u2pnpd/postinst
  47. #!/bin/sh
  48. [ -n "$${IPKG_INSTROOT}" ] || (. /etc/uci-defaults/u2pnpd) && rm -f /etc/uci-defaults/u2pnpd
  49. exit 0
  50. endef
  51. $(eval $(call BuildPackage,u2pnpd))