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) 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_HASH:=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. PKGARCH:=all
  24. endef
  25. define Package/wakeonlan/description
  26. With this package you can remotely wake up and power on machines which have
  27. motherboards or network cards that support 'Wake-on-Lan' packets.
  28. .
  29. The tool allows you to wake up a single machine, or a group of machines.
  30. .
  31. You need the MAC addresses of machines to construct the WOL packets, but,
  32. in contrast to 'etherwake', you do not need root privileges to use the
  33. program itself as UDP packets are used.
  34. endef
  35. define Build/Compile
  36. endef
  37. define Package/wakeonlan/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/wakeonlan $(1)/usr/bin/
  40. endef
  41. $(eval $(call BuildPackage,wakeonlan))