From 29a0719cb3471194865ebacca091a2dd60a35161 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 7 Jan 2015 00:14:38 +0000 Subject: [PATCH] netcat: moved to github SVN-Revision: 43865 --- net/netcat/Makefile | 57 ------------------- .../patches/001-netcat_flag_count.patch | 22 ------- 2 files changed, 79 deletions(-) delete mode 100644 net/netcat/Makefile delete mode 100644 net/netcat/patches/001-netcat_flag_count.patch diff --git a/net/netcat/Makefile b/net/netcat/Makefile deleted file mode 100644 index 7c1158b54..000000000 --- a/net/netcat/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -include $(TOPDIR)/rules.mk - -PKG_NAME:=netcat -PKG_VERSION:=0.7.1 -PKG_RELEASE:=2 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=@SF/$(PKG_NAME) -PKG_MD5SUM:=0a29eff1736ddb5effd0b1ec1f6fe0ef - -PKG_INSTALL:=1 - -include $(INCLUDE_DIR)/package.mk - -define Package/netcat - SECTION:=net - CATEGORY:=Network - TITLE:=A feature-rich network debugging and exploration tool. - URL:=http://netcat.sourceforge.net/ -endef - -define Package/netcat/description - Netcat is a featured networking utility which reads and writes data across network connections, using the TCP/IP protocol. - It is designed to be a reliable "back-end" tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities. -endef - -define Build/Configure - $(call Build/Configure/Default, \ - --disable-rpath \ - --with-included-getopt \ - ) -endef - -define Package/netcat/install - $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/netcat \ - $(1)/usr/bin -endef - -define Package/netcat/postinst -#!/bin/sh -if [ -e $${IPKG_INSTROOT}/usr/bin/nc ]; then - rm -rf $${IPKG_INSTROOT}/usr/bin/nc; -fi -ln -s ./netcat $${IPKG_INSTROOT}/usr/bin/nc -endef - -define Package/netcat/postrm -#!/bin/sh -rm $${IPKG_INSTROOT}/usr/bin/nc -ln -s ../../bin/busybox $${IPKG_INSTROOT}/usr/bin/nc -$${IPKG_INSTROOT}/usr/bin/nc 2>&1 | grep 'applet not found' > /dev/null 2>&1 && rm $${IPKG_INSTROOT}/usr/bin/nc -exit 0 -endef - - -$(eval $(call BuildPackage,netcat)) diff --git a/net/netcat/patches/001-netcat_flag_count.patch b/net/netcat/patches/001-netcat_flag_count.patch deleted file mode 100644 index 44ee9e1f9..000000000 --- a/net/netcat/patches/001-netcat_flag_count.patch +++ /dev/null @@ -1,22 +0,0 @@ -Index: netcat-0.7.1/src/flagset.c -=================================================================== ---- netcat-0.7.1.orig/src/flagset.c 2009-02-06 19:56:01.000000000 +0100 -+++ netcat-0.7.1/src/flagset.c 2009-02-06 19:56:13.000000000 +0100 -@@ -134,7 +134,7 @@ - - int netcat_flag_count(void) - { -- register char c; -+ register unsigned char c; - register int i; - int ret = 0; - -@@ -154,7 +154,7 @@ - Assumed that the bit number 1 is the sign, and that we will shift the - bit 1 (or the bit that takes its place later) until the the most right, - WHY it has to keep the wrong sign? */ -- ret -= (c >> 7); -+ ret += (c >> 7); - c <<= 1; - } - } -- 2.30.2