29e57f10019753df88263450c17b6f1c3607a878
[openwrt/svn-archive/archive.git] / net / etherwake / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
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
9 PKG_NAME:=etherwake
10 PKG_VERSION:=1.09
11 PKG_RELEASE:=1
12
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
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/etherwake
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=A little tool to send magic Wake-on-LAN packets
25 URL:=http://ftp.debian.org/debian/pool/main/e/etherwake
26 endef
27
28 define Package/etherwake/description
29 You can wake up WOL compliant Computers which have been powered down to
30 sleep mode or start WOL compliant Computers with a BIOS feature.
31 WOL is an abbreviation for Wake-on-LAN. It is a standard that allows you
32 to turn on a computer from another location over a network connection.
33 ether-wake also supports WOL passwords.
34 endef
35
36 define Build/Compile
37 $(TARGET_CC) $(TARGET_CFLAGS) -D__UCLIBC__ $(PKG_BUILD_DIR)/ether-wake.c -o $(PKG_BUILD_DIR)/etherwake
38 endef
39
40 define Package/etherwake/install
41 $(INSTALL_DIR) $(1)/usr/bin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/etherwake $(1)/usr/bin/
43 endef
44
45 $(eval $(call BuildPackage,etherwake))