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.

50 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2016 Nikil Mehta <nikil.mehta@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:=wakeonlan
  9. PKG_VERSION:=0.41
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
  12. PKG_SOURCE_URL:=http://http.debian.net/debian/pool/main/w/wakeonlan/
  13. PKG_MD5SUM:=581b1b27a7e810ab72668cce4bd9aa9b3e0cea34b2db24dd1a44c09d63ddda98
  14. PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
  15. PKG_LICENSE:=Artistic-1.0-Perl
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/wakeonlan
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=Sends 'magic packets' to wake-on-LAN enabled ethernet adapters
  21. URL:=http://gsd.di.uminho.pt/jpo/software/wakeonlan/
  22. DEPENDS:=+perl +perlbase-getopt +perlbase-net +perlbase-socket
  23. endef
  24. define Package/wakeonlan/description
  25. With this package you can remotely wake up and power on machines which have
  26. motherboards or network cards that support 'Wake-on-Lan' packets.
  27. .
  28. The tool allows you to wake up a single machine, or a group of machines.
  29. .
  30. You need the MAC addresses of machines to construct the WOL packets, but,
  31. in contrast to 'etherwake', you do not need root privileges to use the
  32. program itself as UDP packets are used.
  33. endef
  34. define Build/Compile
  35. endef
  36. define Package/wakeonlan/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/wakeonlan $(1)/usr/bin/
  39. endef
  40. $(eval $(call BuildPackage,wakeonlan))