Update Makefile
[feed/packages.git] / net / etherwake / Makefile
1 #
2 # Copyright (C) 2007-2011 OpenWrt.org
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:=etherwake
11 PKG_VERSION:=1.09
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/etherwake
16 PKG_MD5SUM:=628e8b2a28d47f262e4c26c989402a59
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
19 PKG_CHECK_FORMAT_SECURITY:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/etherwake
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=WoL client for magic packets via ethernet frames
27 URL:=http://ftp.debian.org/debian/pool/main/e/etherwake
28 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
29 endef
30
31 define Package/etherwake/description
32 You can wake up WOL compliant Computers which have been powered down to
33 sleep mode or start WOL compliant Computers with a BIOS feature.
34 WOL is an abbreviation for Wake-on-LAN. It is a standard that allows you
35 to turn on a computer from another location over a network connection.
36 ether-wake also supports WOL passwords.
37 endef
38
39 define Build/Compile
40 $(TARGET_CC) $(TARGET_CFLAGS) -D__UCLIBC__ $(PKG_BUILD_DIR)/ether-wake.c -o $(PKG_BUILD_DIR)/etherwake
41 endef
42
43 define Package/etherwake/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/etherwake $(1)/usr/bin/
46 $(INSTALL_DIR) $(1)/etc/config
47 $(INSTALL_DATA) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
50 endef
51
52 define Package/etherwake/conffiles
53 /etc/config/etherwake
54 endef
55
56 $(eval $(call BuildPackage,etherwake))