From 66360ddd825a36cd4407021ee25f98b92eb973ba Mon Sep 17 00:00:00 2001 From: Nikil Mehta Date: Fri, 25 Nov 2016 00:41:08 -0800 Subject: [PATCH] wakeonlan: Add package Signed-off-by: Nikil Mehta nikil.mehta@gmail.com --- net/wakeonlan/Makefile | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 net/wakeonlan/Makefile diff --git a/net/wakeonlan/Makefile b/net/wakeonlan/Makefile new file mode 100644 index 000000000..3b8dfc7ce --- /dev/null +++ b/net/wakeonlan/Makefile @@ -0,0 +1,50 @@ +# +# Copyright (C) 2016 Nikil Mehta +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=wakeonlan +PKG_VERSION:=0.41 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz +PKG_SOURCE_URL:=http://http.debian.net/debian/pool/main/w/wakeonlan/ +PKG_MD5SUM:=581b1b27a7e810ab72668cce4bd9aa9b3e0cea34b2db24dd1a44c09d63ddda98 + +PKG_MAINTAINER:=Nikil Mehta +PKG_LICENSE:=Artistic-1.0-Perl + +include $(INCLUDE_DIR)/package.mk + +define Package/wakeonlan + SECTION:=net + CATEGORY:=Network + TITLE:=Sends 'magic packets' to wake-on-LAN enabled ethernet adapters + URL:=http://gsd.di.uminho.pt/jpo/software/wakeonlan/ + DEPENDS:=+perl +perlbase-getopt +perlbase-net +perlbase-socket +endef + +define Package/wakeonlan/description + With this package you can remotely wake up and power on machines which have + motherboards or network cards that support 'Wake-on-Lan' packets. + . + The tool allows you to wake up a single machine, or a group of machines. + . + You need the MAC addresses of machines to construct the WOL packets, but, + in contrast to 'etherwake', you do not need root privileges to use the + program itself as UDP packets are used. +endef + +define Build/Compile +endef + +define Package/wakeonlan/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/wakeonlan $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,wakeonlan))