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.

51 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2019 Mister Benjamin <144dbspl@gmail.com>
  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:=etherwake-nfqueue
  9. PKG_RELEASE:=2
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://github.com/mister-benjamin/etherwake-nfqueue.git
  12. PKG_SOURCE_DATE:=2019-09-28
  13. PKG_SOURCE_VERSION:=f71c269b58585e93575fa3e9fcc1793806fb3080
  14. PKG_MIRROR_HASH:=4960dc592abc4ca06504c92ca09fc736c678353df0dcc32d4081e17b137a9164
  15. PKG_MAINTAINER:=Mister Benjamin <144dbspl@gmail.com>
  16. PKG_LICENSE:=GPL-2.0-or-later
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/etherwake-nfqueue
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=+libnetfilter-queue +iptables-mod-nfqueue
  23. TITLE:=Wake up computers on netfilter match
  24. URL:=https://github.com/mister-benjamin/etherwake-nfqueue
  25. endef
  26. define Package/etherwake-nfqueue/description
  27. Fork of etherwake with additional support for sending WOL packets
  28. when a router added a filtered packet to an NFQUEUE.
  29. endef
  30. define Package/etherwake-nfqueue/conffiles
  31. /etc/config/etherwake-nfqueue
  32. endef
  33. define Package/etherwake-nfqueue/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/etherwake-nfqueue $(1)/usr/bin/
  36. $(INSTALL_DIR) $(1)/etc/config
  37. $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  38. $(INSTALL_DIR) $(1)/etc/init.d
  39. $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  40. endef
  41. $(eval $(call BuildPackage,etherwake-nfqueue))