5ba8f4f1c1cbe06a2796376b2aa39ef1154a3535
[openwrt/svn-archive/archive.git] / net / wol / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=wol
11 PKG_VERSION:=0.7.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_URL:=@SF/ahh
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=c2fa9d7e771134ac8c89d56b8197d4ca
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/wol
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=Wake On LAN client
24 URL:=http://ahh.sourceforge.net/wol/
25 endef
26
27 define Package/wol/description
28 wol implements Wake On LAN functionality in a small program.
29 It wakes up hardware that is Magic Packet compliant.
30 endef
31
32 CONFIGURE_VARS += \
33 ac_cv_func_malloc_0_nonnull=yes \
34 ac_cv_func_realloc_0_nonnull=yes \
35 ac_cv_func_mmap_fixed_mapped=yes \
36 jm_cv_func_working_malloc=yes \
37 ac_cv_func_alloca_works=yes \
38
39 define Package/wol/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/
42 $(INSTALL_DIR) $(1)/etc/config
43 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
46 endef
47
48 $(eval $(call BuildPackage,wol))