git: fcd435c035c4 - main - devel/libcli: Remove expired port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Mon, 30 Jun 2025 11:25:57 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fcd435c035c46f7b0c48be8a390bef4aa54b7216

commit fcd435c035c46f7b0c48be8a390bef4aa54b7216
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-06-30 11:25:44 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-06-30 11:25:44 +0000

    devel/libcli: Remove expired port
    
    2025-06-30 devel/libcli: Outdated and unmaintained in tree for years
---
 MOVED                             |  1 +
 devel/Makefile                    |  1 -
 devel/libcli/Makefile             | 27 ------------------
 devel/libcli/distinfo             |  2 --
 devel/libcli/files/patch-Makefile | 54 -----------------------------------
 devel/libcli/files/patch-libcli.c | 60 ---------------------------------------
 devel/libcli/pkg-descr            |  4 ---
 7 files changed, 1 insertion(+), 148 deletions(-)

diff --git a/MOVED b/MOVED
index 8e454f43d557..a964bffdca56 100644
--- a/MOVED
+++ b/MOVED
@@ -4607,3 +4607,4 @@ security/libsectok||2025-06-30|Has expired: Last upstream release in 2003 and no
 devel/libdnsres||2025-06-30|Has expired: No consumers in tree, last release in 2005 by upstream
 devel/libaura||2025-06-30|Has expired: Abandonware, upstream is gone and last release in 2005
 net-mgmt/zabbix5-java||2025-06-30|Has expired: Upstream EOL reaches on 2025-05-31
+devel/libcli||2025-06-30|Has expired: Outdated and unmaintained in tree for years
diff --git a/devel/Makefile b/devel/Makefile
index 07eabe35c203..e35928a6bca4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1238,7 +1238,6 @@
     SUBDIR += libcircllhist
     SUBDIR += libcjson
     SUBDIR += libclc
-    SUBDIR += libcli
     SUBDIR += libconcurrent
     SUBDIR += libconfig
     SUBDIR += libconfuse
diff --git a/devel/libcli/Makefile b/devel/libcli/Makefile
deleted file mode 100644
index 30628e908590..000000000000
--- a/devel/libcli/Makefile
+++ /dev/null
@@ -1,27 +0,0 @@
-PORTNAME=	libcli
-PORTVERSION=	1.9.6
-PORTREVISION=	1
-CATEGORIES=	devel
-MASTER_SITES=	GHC
-
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Emulates a Cisco style command-line interface
-WWW=		https://github.com/dparrish/libcli/
-
-LICENSE=	LGPL21
-
-DEPRECATED=     Outdated and unmaintained in tree for years
-EXPIRATION_DATE=2025-06-30
-
-USES=		alias gmake
-USE_LDCONFIG=	yes
-USE_GITHUB=	yes
-GH_ACCOUNT=	dparrish
-
-PLIST_FILES=	lib/libcli.so \
-		lib/libcli.so.1.9.6 \
-		lib/libcli.so.1.9 \
-		lib/libcli.so.19 \
-		include/libcli.h
-
-.include <bsd.port.mk>
diff --git a/devel/libcli/distinfo b/devel/libcli/distinfo
deleted file mode 100644
index 514db8a8e468..000000000000
--- a/devel/libcli/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (libcli-1.9.6.tar.gz) = 1c601dfff694db85350a9335a17ae8da1d51cf3733a22739454cf21b258a06e8
-SIZE (libcli-1.9.6.tar.gz) = 29259
diff --git a/devel/libcli/files/patch-Makefile b/devel/libcli/files/patch-Makefile
deleted file mode 100644
index 36c660ce7ea2..000000000000
--- a/devel/libcli/files/patch-Makefile
+++ /dev/null
@@ -1,54 +0,0 @@
---- Makefile.orig	2012-06-07 04:51:30 UTC
-+++ Makefile
-@@ -1,23 +1,21 @@
- UNAME = $(shell sh -c 'uname -s 2>/dev/null || echo not')
- DESTDIR =
--PREFIX = /usr/local
-+PREFIX ?= /usr/local
- 
- MAJOR = 1
- MINOR = 9
- REVISION = 6
- LIB = libcli.so
- 
--CC = gcc
--DEBUG = -g
--OPTIM = -O3
--CFLAGS += $(DEBUG) $(OPTIM) -Wall -std=c99 -pedantic -Wformat-security -Wno-format-zero-length -Werror -Wwrite-strings -Wformat -fdiagnostics-show-option -Wextra -Wsign-compare -Wcast-align -Wno-unused-parameter
-+CC ?= gcc
-+CFLAGS += -Wall -Wformat-security -Wno-format-zero-length -Wwrite-strings -Wformat -fdiagnostics-show-option -Wextra -Wsign-compare -Wcast-align -Wno-unused-parameter
- LDFLAGS += -shared
- LIBPATH += -L.
- 
- ifeq ($(UNAME),Darwin)
- LDFLAGS += -Wl,-install_name,$(LIB).$(MAJOR).$(MINOR)
- else
--LDFLAGS += -Wl,-soname,$(LIB).$(MAJOR).$(MINOR)
-+LDFLAGS += -Wl,-soname,$(LIB).$(MAJOR)$(MINOR)
- LIBS = -lcrypt
- endif
- 
-@@ -26,8 +24,9 @@ all: $(LIB) clitest
- $(LIB): libcli.o
- 	$(CC) -o $(LIB).$(MAJOR).$(MINOR).$(REVISION) $^ $(LDFLAGS) $(LIBS)
- 	-rm -f $(LIB) $(LIB).$(MAJOR).$(MINOR)
--	ln -s $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(LIB).$(MAJOR).$(MINOR)
--	ln -s $(LIB).$(MAJOR).$(MINOR) $(LIB)
-+	ln -sf $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(LIB).$(MAJOR).$(MINOR)
-+	ln -sf $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(LIB).$(MAJOR)$(MINOR)
-+	ln -sf $(LIB).$(MAJOR).$(MINOR) $(LIB)
- 
- %.o: %.c
- 	$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -o $@ -c $<
-@@ -48,8 +47,9 @@ install: $(LIB)
- 	install -m 0644 libcli.h $(DESTDIR)$(PREFIX)/include
- 	install -m 0755 $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(DESTDIR)$(PREFIX)/lib
- 	cd $(DESTDIR)$(PREFIX)/lib && \
--	    ln -s $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(LIB).$(MAJOR).$(MINOR) && \
--	    ln -s $(LIB).$(MAJOR).$(MINOR) $(LIB)
-+	    ln -sf $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(LIB).$(MAJOR).$(MINOR) && \
-+	    ln -sf $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(LIB).$(MAJOR)$(MINOR) && \
-+	    ln -sf $(LIB).$(MAJOR).$(MINOR) $(LIB)
- 
- rpm:
- 	mkdir libcli-$(MAJOR).$(MINOR).$(REVISION)
diff --git a/devel/libcli/files/patch-libcli.c b/devel/libcli/files/patch-libcli.c
deleted file mode 100644
index e7be459a4d91..000000000000
--- a/devel/libcli/files/patch-libcli.c
+++ /dev/null
@@ -1,60 +0,0 @@
-diff --git a/libcli.c b/libcli.c
-index de6e2e9..59dd42f 100644
---- libcli.c
-+++ libcli.c
-@@ -1017,7 +1017,7 @@ static int cli_get_completions(struct cli_def *cli, const char *command, char **
- {
-     struct cli_command *c;
-     struct cli_command *n;
--    int num_words, i, k=0;
-+    int num_words, save_words, i, k=0;
-     char *words[CLI_MAX_LINE_WORDS] = {0};
-     int filter = 0;
- 
-@@ -1025,12 +1025,12 @@ static int cli_get_completions(struct cli_def *cli, const char *command, char **
-     while (isspace(*command))
-         command++;
- 
--    num_words = cli_parse_line(command, words, sizeof(words)/sizeof(words[0]));
-+    save_words = num_words = cli_parse_line(command, words, sizeof(words)/sizeof(words[0]));
-     if (!command[0] || command[strlen(command)-1] == ' ')
-         num_words++;
- 
-     if (!num_words)
--        return 0;
-+        goto out;
- 
-     for (i = 0; i < num_words; i++)
-     {
-@@ -1043,7 +1043,7 @@ static int cli_get_completions(struct cli_def *cli, const char *command, char **
-         unsigned len = 0;
- 
-         if (filter < num_words - 1) // filter already completed
--            return 0;
-+            goto out;
- 
-         if (filter == num_words - 1)
-             len = strlen(words[num_words-1]);
-@@ -1055,7 +1055,7 @@ static int cli_get_completions(struct cli_def *cli, const char *command, char **
-         }
- 
-         completions[k] = NULL;
--        return k;
-+        goto out;
-     }
- 
-     for (c = cli->commands, i = 0; c && i < num_words && k < max_completions; c = n)
-@@ -1084,6 +1084,10 @@ static int cli_get_completions(struct cli_def *cli, const char *command, char **
-         completions[k++] = c->command;
-     }
- 
-+out:
-+    for (i = 0; i < save_words; i++)
-+        free(words[i]);
-+
-     return k;
- }
- 
--- 
-1.7.10
-
diff --git a/devel/libcli/pkg-descr b/devel/libcli/pkg-descr
deleted file mode 100644
index 42a0c7d2ba9a..000000000000
--- a/devel/libcli/pkg-descr
+++ /dev/null
@@ -1,4 +0,0 @@
-Libcli provides a shared library for including a Cisco-like command-line
-interface into other software. It's a telnet interface which supports
-command-line editing, history, authentication and callbacks for a user-definable
-function tree.