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