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.

56 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2015 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:=announce
  9. PKG_VERSION:=1.0.1
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=BSD-3-Clause
  12. PKG_LICENSE_FILES:=src/LICENSE.txt
  13. PKG_MAINTAINER:=Simon Peter <probono@puredarwin.org>
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/probonopd/announce.git
  16. PKG_SOURCE_VERSION:=1368525c7305ca5bb4134242f332344f5f7e94e3
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
  18. PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
  19. PKG_MIRROR_HASH:=247059922197db04e78c2845974d3dc2fc95a0624a0e0da32b5a13fd86a59d1b
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/announce
  24. SECTION:=net
  25. CATEGORY:=Network
  26. SUBMENU:=IP Addresses and Names
  27. TITLE:=Announce services on the network with Zeroconf/Bonjour
  28. URL:=https://github.com/probonopd/announce
  29. DEPENDS:= +libpthread
  30. endef
  31. define Package/announce/description
  32. Announce services on the network with Zeroconf/Bonjour.
  33. This announces services such as ssh, sftp, and http running on the local machine
  34. to the network.
  35. endef
  36. define Build/Prepare
  37. $(call Build/Prepare/Default)
  38. $(CP) $(PKG_BUILD_DIR)/src/* $(PKG_BUILD_DIR)/
  39. endef
  40. define Package/announce/install
  41. $(INSTALL_DIR) $(1)/usr/sbin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/announce $(1)/usr/sbin/
  43. $(INSTALL_DIR) $(1)/etc/init.d
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/announce.initscript $(1)/etc/init.d/announce
  45. endef
  46. $(eval $(call BuildPackage,announce))