860dd3017a30d36140fe70d02face1287974ead6
[openwrt/svn-archive/archive.git] / net / bwm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bwm
12 PKG_VERSION:=1.1.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/b/bwm
17 PKG_MD5SUM:=51021a036acb92d2bda0c0c0483f9552
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/bwm
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=A very tiny bandwidth monitor
28 URL:=http://ftp.debian.org/debian/pool/main/b/bwm
29 endef
30
31 define Build/Compile
32 $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/bwm.c -o $(PKG_BUILD_DIR)/bwm
33 endef
34
35 define Package/bwm/install
36 mkdir -p $(1)/usr/bin
37 install -m 755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
38 endef
39
40 $(eval $(call BuildPackage,bwm))