From 0abf556026454ad2fe444e4eb03a3bb0d75e966b Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 1 Aug 2006 13:37:53 +0000 Subject: [PATCH] Port cutter to -ng SVN-Revision: 4367 --- net/cutter/Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 net/cutter/Makefile diff --git a/net/cutter/Makefile b/net/cutter/Makefile new file mode 100755 index 000000000..f1917f3ab --- /dev/null +++ b/net/cutter/Makefile @@ -0,0 +1,44 @@ +# 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:=cutter +PKG_VERSION:=1.03 +PKG_RELEASE:=1 +PKG_MD5SUM:=50093db9b64277643969ee75b83ebbd1 + +PKG_SOURCE_URL:=http://www.lowth.com/cutter/software/ +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_CAT:=zcat +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/cutter + SECTION:=net + CATEGORY:=Network + TITLE:=allows an user to abort TCP/IP connections + DESCRIPTION:="Cutter" is an open source program that allows Linux firewall\\\ + administrators to abort TCP/IP connections routed over the\\\ + firewall or router on which it is run.\\\ + URL:=http://www.lowth.com/cutter/ +endef + +define Build/Compile + $(TARGET_CC) $(PKG_BUILD_DIR)/cutter.c -o $(PKG_BUILD_DIR)/cutter + install -d -m0755 $(PKG_INSTALL_DIR)/usr/sbin + install -m0755 $(PKG_BUILD_DIR)/cutter $(PKG_INSTALL_DIR)/usr/sbin/ +endef + +define Package/cutter/install + mkdir -p $(1) + $(CP) $(PKG_INSTALL_DIR)/* $(1)/ +endef + +$(eval $(call BuildPackage,cutter)) -- 2.30.2