massive Makefile cleanup, add missing 'svn:keywords' property
[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 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/cutter
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=allows an user to abort TCP/IP connections
29 DESCRIPTION:=\
30 Cutter is an open source program that allows Linux firewall \\\
31 administrators to abort TCP/IP connections routed over the \\\
32 firewall or router on which it is run.
33 URL:=http://www.lowth.com/cutter/
34 endef
35
36 define Build/Compile
37 $(TARGET_CC) $(PKG_BUILD_DIR)/cutter.c -o $(PKG_BUILD_DIR)/cutter
38 install -d -m0755 $(PKG_INSTALL_DIR)/usr/sbin
39 install -m0755 $(PKG_BUILD_DIR)/cutter $(PKG_INSTALL_DIR)/usr/sbin/
40 endef
41
42 define Package/cutter/install
43 install -d -m0755 $(1)/usr/sbin
44 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cutter $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,cutter))