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