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