gnu-netcat: Removal of package

Message ID 20221128172421.919691-1-adolf.belka@ipfire.org
State Accepted
Commit a8b3a69b9dea078d216b0065b49889624736689e
Headers
Series gnu-netcat: Removal of package |

Commit Message

Adolf Belka Nov. 28, 2022, 5:24 p.m. UTC
  - gnu-netcat was last updated in 2004 and is not used as a dependency for any IPFire
   addon.
- IPFire has ncat which is used as a dependency for ipfire-netboot, libshout, libvirt
   and squid. gnu-netcat not being required for libvcirt was confirmed by Jonatan.
- nmap/ncat is being actively updated.
- Based on the above this patch is removing gnu-netcat from IPFire.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/packages/gnu-netcat |  7 ---
 lfs/gnu-netcat                       | 90 ----------------------------
 make.sh                              |  1 -
 3 files changed, 98 deletions(-)
 delete mode 100644 config/rootfiles/packages/gnu-netcat
 delete mode 100644 lfs/gnu-netcat
  

Patch

diff --git a/config/rootfiles/packages/gnu-netcat b/config/rootfiles/packages/gnu-netcat
deleted file mode 100644
index 820232797..000000000
--- a/config/rootfiles/packages/gnu-netcat
+++ /dev/null
@@ -1,7 +0,0 @@ 
-usr/bin/netcat
-#usr/info
-#usr/info/dir
-#usr/info/netcat.info
-#usr/man/man1/netcat.1
-#usr/share/locale/it/LC_MESSAGES/netcat.mo
-#usr/share/locale/sk/LC_MESSAGES/netcat.mo
diff --git a/lfs/gnu-netcat b/lfs/gnu-netcat
deleted file mode 100644
index 7c52ec431..000000000
--- a/lfs/gnu-netcat
+++ /dev/null
@@ -1,90 +0,0 @@ 
-###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
-###############################################################################
-
-###############################################################################
-# Definitions
-###############################################################################
-
-include Config
-
-SUMMARY    = GNU variant of universal network utility
-
-VER        = 0.7.1
-
-THISAPP    = netcat-$(VER)
-DL_FILE    = $(THISAPP).tar.gz
-DL_FROM    = $(URL_IPFIRE)
-DIR_APP    = $(DIR_SRC)/$(THISAPP)
-TARGET     = $(DIR_INFO)/$(THISAPP)
-PROG       = gnu-netcat
-PAK_VER    = 1
-
-DEPS       =
-
-SERVICES   =
-
-###############################################################################
-# Top-level Rules
-###############################################################################
-
-objects = $(DL_FILE)
-
-$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-
-$(DL_FILE)_BLAKE2 = 0882117e9c465d9fd3155c943c68205a782e4c61ccbe047db2ee6cb4c6074d41679219819ce67abdf9e3321c27920fdc831ebb375bd81ab3245c04b5a56a249c
-
-install : $(TARGET)
-
-check : $(patsubst %,$(DIR_CHK)/%,$(objects))
-
-download :$(patsubst %,$(DIR_DL)/%,$(objects))
-
-b2 : $(subst %,%_BLAKE2,$(objects))
-
-dist:
-	@$(PAK)
-
-###############################################################################
-# Downloading, checking, b2sum
-###############################################################################
-
-$(patsubst %,$(DIR_CHK)/%,$(objects)) :
-	@$(CHECK)
-
-$(patsubst %,$(DIR_DL)/%,$(objects)) :
-	@$(LOAD)
-
-$(subst %,%_BLAKE2,$(objects)) :
-	@$(B2SUM)
-
-###############################################################################
-# Installation Details
-###############################################################################
-
-$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
-	@$(PREBUILD)
-	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-	$(UPDATE_AUTOMAKE)
-	cd $(DIR_APP) && ./configure --prefix=/usr
-	cd $(DIR_APP) && make $(MAKETUNING)
-	cd $(DIR_APP) && make install
-	rm -f /usr/bin/nc
-	@rm -rf $(DIR_APP)
-	@$(POSTBUILD)
diff --git a/make.sh b/make.sh
index c0d1f1d2c..2e49b1673 100755
--- a/make.sh
+++ b/make.sh
@@ -1508,7 +1508,6 @@  buildipfire() {
   lfsmake2 rpcbind
   lfsmake2 keyutils
   lfsmake2 nfs
-  lfsmake2 gnu-netcat
   lfsmake2 ncat
   lfsmake2 nmap
   lfsmake2 etherwake