summaryrefslogtreecommitdiff
path: root/package/cutter
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/cutter
Initial import
Diffstat (limited to 'package/cutter')
-rw-r--r--package/cutter/Config.in10
-rwxr-xr-xpackage/cutter/Makefile26
-rw-r--r--package/cutter/ipkg/cutter.control5
-rw-r--r--package/cutter/patches/patch-cutter_c21
4 files changed, 62 insertions, 0 deletions
diff --git a/package/cutter/Config.in b/package/cutter/Config.in
new file mode 100644
index 000000000..5d027b689
--- /dev/null
+++ b/package/cutter/Config.in
@@ -0,0 +1,10 @@
+config ADK_PACKAGE_CUTTER
+ prompt "cutter............................ allows an user to abort TCP/IP connections"
+ tristate
+ default n
+ help
+ "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.
+
+ http://www.lowth.com/cutter/
diff --git a/package/cutter/Makefile b/package/cutter/Makefile
new file mode 100755
index 000000000..68af7df76
--- /dev/null
+++ b/package/cutter/Makefile
@@ -0,0 +1,26 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= cutter
+PKG_VERSION:= 1.03
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 50093db9b64277643969ee75b83ebbd1
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
+MASTER_SITES:= http://www.lowth.com/cutter/software/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,CUTTER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+do-build:
+ ${TARGET_CC} ${WRKBUILD}/cutter.c -o ${WRKBUILD}/cutter
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_CUTTER}/usr/sbin
+ ${INSTALL_BIN} ${WRKBUILD}/cutter ${IDIR_CUTTER}/usr/sbin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/cutter/ipkg/cutter.control b/package/cutter/ipkg/cutter.control
new file mode 100644
index 000000000..6c9169222
--- /dev/null
+++ b/package/cutter/ipkg/cutter.control
@@ -0,0 +1,5 @@
+Package: cutter
+Architecture: mipsel
+Section: net
+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.
+Priority: optional
diff --git a/package/cutter/patches/patch-cutter_c b/package/cutter/patches/patch-cutter_c
new file mode 100644
index 000000000..781c17401
--- /dev/null
+++ b/package/cutter/patches/patch-cutter_c
@@ -0,0 +1,21 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- cutter-1.03.orig/cutter.c 2005-04-30 09:01:03.000000000 +0200
++++ cutter-1.03/cutter.c 2008-10-09 11:32:40.000000000 +0200
+@@ -297,7 +297,7 @@ int send_rst(
+ pheader.placeholder=0;
+ pheader.protocol=IPPROTO_TCP;
+ pheader.tcp_length=htons(TCPHDR);
+- bcopy((char *)&tpack.tcp,(char *)&pheader.tcp,TCPHDR);
++ memcpy((char *)&pheader.tcp,(char *)&tpack.tcp,TCPHDR);
+ tpack.tcp.check=in_cksum((unsigned short *)&pheader,TCPHDR+12);
+
+ /*
+@@ -419,7 +419,7 @@ int send_rst(
+ pheader.placeholder=0;
+ pheader.protocol=IPPROTO_TCP;
+ pheader.tcp_length=htons(TCPHDR);
+- bcopy((char *)&tpack.tcp,(char *)&pheader.tcp,TCPHDR);
++ memcpy((char *)&pheader.tcp,(char *)&tpack.tcp,TCPHDR);
+ tpack.tcp.check=in_cksum((unsigned short *)&pheader,TCPHDR+12);
+
+ i_result = sendto(raw_sock,&tpack,PACKETSIZE,0,(void*)&hisaddr,sizeof(hisaddr));