2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
13 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
14 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/etherwake
15 PKG_MD5SUM:=628e8b2a28d47f262e4c26c989402a59
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
20 include $(INCLUDE_DIR)/package.mk
22 define Package/etherwake
25 TITLE:=A little tool to send magic Wake-on-LAN packets
27 You can wake up WOL compliant Computers which have been powered down to \\\
28 sleep mode or start WOL compliant Computers with a BIOS feature.\\\
29 WOL is an abbreviation for Wake-on-LAN. It is a standard that allows you \\\
30 to turn on a computer from another location over a network connection.\\\
31 ether-wake also supports WOL passwords.
32 URL:=http://ftp.debian.org/debian/pool/main/e/etherwake
36 $(TARGET_CC) $(TARGET_CFLAGS) -D__UCLIBC__ $(PKG_BUILD_DIR)/ether-wake.c -o $(PKG_BUILD_DIR)/etherwake
39 define Package/etherwake/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/etherwake $(1)/usr/bin/
44 $(eval $(call BuildPackage,etherwake))