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.

63 lines
1.6 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.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://github.com/mhei/u2pnpd/releases/download/v$(PKG_VERSION)
  13. PKG_MD5SUM:=ac6f378590d3e4e38b40e4b13f03b369
  14. PKG_LICENSE:=GPL-2.0
  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/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/u2pnpd $(1)/usr/bin/
  36. $(INSTALL_DIR) $(1)/etc/init.d
  37. $(INSTALL_BIN) ./files/u2pnpd.init $(1)/etc/init.d/u2pnpd
  38. $(INSTALL_DIR) $(1)/etc/uci-defaults
  39. $(INSTALL_DATA) ./files/u2pnpd.defaults $(1)/etc/uci-defaults/u2pnpd
  40. $(INSTALL_DIR) $(1)/etc/config
  41. $(INSTALL_CONF) ./files/u2pnpd.config $(1)/etc/config/u2pnpd
  42. endef
  43. define Package/u2pnpd/postinst
  44. #!/bin/sh
  45. [ -n "$${IPKG_INSTROOT}" ] || (. /etc/uci-defaults/u2pnpd) && rm -f /etc/uci-defaults/u2pnpd
  46. exit 0
  47. endef
  48. $(eval $(call BuildPackage,u2pnpd))