From e258af238a3b1406a3e47c2607e7fb9cc9aced17 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 31 Jul 2006 14:20:21 +0000 Subject: [PATCH] Port bwm to -ng SVN-Revision: 4352 --- net/bwm/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 net/bwm/Makefile diff --git a/net/bwm/Makefile b/net/bwm/Makefile new file mode 100644 index 0000000000..ec3d896c1f --- /dev/null +++ b/net/bwm/Makefile @@ -0,0 +1,39 @@ +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=bwm +PKG_VERSION:=1.1.0 +PKG_RELEASE:=1 +PKG_MD5SUM:=51021a036acb92d2bda0c0c0483f9552 + +PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/b/bwm +PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig +PKG_CAT:=zcat + +include $(INCLUDE_DIR)/package.mk + +define Package/bwm + SECTION:=net + CATEGORY:=Network + TITLE:=A very tiny bandwidth monitor + DESCRIPTION:=A very tiny bandwidth monitor + URL:=http://ftp.debian.org/debian/pool/main/b/bwm +endef + +define Build/Compile + $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/bwm.c -o $(PKG_BUILD_DIR)/bwm +endef + +define Package/bwm/install + mkdir -p $(1)/usr/bin + install -m 755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,bwm)) -- 2.30.2