Port bwm to -ng
[openwrt/svn-archive/archive.git] / net / bwm / 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 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bwm
11 PKG_VERSION:=1.1.0
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=51021a036acb92d2bda0c0c0483f9552
14
15 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/b/bwm
16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
18 PKG_CAT:=zcat
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/bwm
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=A very tiny bandwidth monitor
26 DESCRIPTION:=A very tiny bandwidth monitor
27 URL:=http://ftp.debian.org/debian/pool/main/b/bwm
28 endef
29
30 define Build/Compile
31 $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/bwm.c -o $(PKG_BUILD_DIR)/bwm
32 endef
33
34 define Package/bwm/install
35 mkdir -p $(1)/usr/bin
36 install -m 755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
37 endef
38
39 $(eval $(call BuildPackage,bwm))