[package] add wattsup
[openwrt/svn-archive/archive.git] / utils / wattsup / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=wattsup
10 PKG_RELEASE:=1
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define Package/wattsup
16 SECTION:=utils
17 CATEGORY:=Utilities
18 TITLE:=Wattsup polling utility
19 endef
20
21 define Build/Prepare
22 mkdir -p $(PKG_BUILD_DIR)
23 $(CP) ./src/* $(PKG_BUILD_DIR)/
24 endef
25
26 define Package/wattsup/install
27 $(INSTALL_DIR) $(1)/usr/bin/
28 $(INSTALL_BIN) $(PKG_BUILD_DIR)/wattsup $(1)/usr/bin/
29 endef
30
31 $(eval $(call BuildPackage,wattsup))