f1917f3ab0b299ebf39bcf03048134a09c2fefef
[packages.git] / net / cutter / 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:=cutter
11 PKG_VERSION:=1.03
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=50093db9b64277643969ee75b83ebbd1
14
15 PKG_SOURCE_URL:=http://www.lowth.com/cutter/software/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_CAT:=zcat
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/cutter
24   SECTION:=net
25   CATEGORY:=Network
26   TITLE:=allows an user to abort TCP/IP connections
27   DESCRIPTION:="Cutter" is an open source program that allows Linux firewall\\\
28         administrators to abort TCP/IP connections routed over the\\\
29         firewall or router on which it is run.\\\
30   URL:=http://www.lowth.com/cutter/
31 endef
32         
33 define Build/Compile
34         $(TARGET_CC) $(PKG_BUILD_DIR)/cutter.c -o $(PKG_BUILD_DIR)/cutter
35         install -d -m0755 $(PKG_INSTALL_DIR)/usr/sbin
36         install -m0755 $(PKG_BUILD_DIR)/cutter $(PKG_INSTALL_DIR)/usr/sbin/
37 endef
38         
39 define Package/cutter/install
40         mkdir -p $(1)
41         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
42 endef
43
44 $(eval $(call BuildPackage,cutter))