git: de1ffc2c0358 - main - security/sectok: Remove expired port

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

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

commit de1ffc2c03580a0b05bf635b4174cae2b7192c42
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-06-30 11:20:46 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-06-30 11:21:08 +0000

    security/sectok: Remove expired port
    
    2025-06-30 security/sectok: Last upstream release in 2003 and no longer maintained
---
 MOVED                                   |  1 +
 security/Makefile                       |  1 -
 security/sectok/Makefile                | 41 ----------------------
 security/sectok/distinfo                |  2 --
 security/sectok/files/patch-cyberflex.c | 61 ---------------------------------
 security/sectok/pkg-descr               |  3 --
 6 files changed, 1 insertion(+), 108 deletions(-)

diff --git a/MOVED b/MOVED
index 7234f5acfd62..24affe1d14d4 100644
--- a/MOVED
+++ b/MOVED
@@ -4602,3 +4602,4 @@ filesystems/vzvol||2025-06-30|Has expired: Abandoned upstream, no activity in 5+
 devel/ireport||2025-06-30|Has expired: Outdated, unsupported upstream and unmaintained for years in tree
 www/ffsend||2025-06-30|Has expired: fails to build with rust 1.87.0
 devel/cgilib||2025-06-30|Has expired: Last upstream release in 2009, last upstream activity in 2017 and no consumers in tree
+security/sectok||2025-06-30|Has expired: Last upstream release in 2003 and no longer maintained
diff --git a/security/Makefile b/security/Makefile
index 027eae3debea..abd3d354b634 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1282,7 +1282,6 @@
     SUBDIR += seccure
     SUBDIR += seclists
     SUBDIR += secpanel
-    SUBDIR += sectok
     SUBDIR += secure_delete
     SUBDIR += sedutil
     SUBDIR += sequoia
diff --git a/security/sectok/Makefile b/security/sectok/Makefile
deleted file mode 100644
index ed27ddb5ed4e..000000000000
--- a/security/sectok/Makefile
+++ /dev/null
@@ -1,41 +0,0 @@
-PORTNAME=	sectok
-DISTVERSION=	20030825
-PORTREVISION=	4
-CATEGORIES=	security
-MASTER_SITES=	http://www.citi.umich.edu/projects/smartcard/
-
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	ISO 7816 Smartcard Utility
-WWW=		http://www.citi.umich.edu/projects/smartcard/sectok.html
-
-LICENSE=	LicenseRef-UMich
-LICENSE_NAME=	University of Michigan License
-LICENSE_FILE=	${WRKSRC}/LICENSE
-LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-
-DEPRECATED=	Last upstream release in 2003 and no longer maintained
-EXPIRATION_DATE=	2025-06-30
-
-LIB_DEPENDS=	libsectok.so:security/libsectok
-
-USES=		ssl localbase tar:tgz
-USE_LDCONFIG=	yes
-
-MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
-
-PLIST_FILES=	bin/${PORTNAME} share/man/man1/${PORTNAME}.1.gz
-
-post-patch:
-	@${REINPLACE_CMD} \
-		-e '/^INCLUDES=/s|$$| ${CPPFLAGS}|' \
-		-e '/^LIBS=/s|=|=${LDFLAGS} |' \
-		-e '/^LIBS=/s|$$| ${LIBS}|' \
-		${WRKSRC}/Makefile
-
-do-install:
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
-		${STAGEDIR}${PREFIX}/bin)
-	(cd ${WRKSRC} && ${INSTALL_MAN} ${PORTNAME}.1 \
-		${STAGEDIR}${PREFIX}/share/man/man1)
-
-.include <bsd.port.mk>
diff --git a/security/sectok/distinfo b/security/sectok/distinfo
deleted file mode 100644
index f4d0c56c397b..000000000000
--- a/security/sectok/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (sectok-20030825.tgz) = 4951d2b9876d06cb119e3c913325764fa58ea93453252665d9f206378e501e5f
-SIZE (sectok-20030825.tgz) = 17323
diff --git a/security/sectok/files/patch-cyberflex.c b/security/sectok/files/patch-cyberflex.c
deleted file mode 100644
index 30bfa6e6f29c..000000000000
--- a/security/sectok/files/patch-cyberflex.c
+++ /dev/null
@@ -1,61 +0,0 @@
---- cyberflex.c.orig	2003-06-20 00:37:35.000000000 +0200
-+++ cyberflex.c	2015-02-28 15:57:55.093727371 +0100
-@@ -48,7 +48,13 @@
- #define SHA1Init SHA1_Init
- #define SHA1Update SHA1_Update
- #define SHA1Final SHA1_Final
--#else /* __linux */
-+#elif defined(__FreeBSD__)
-+#define SHA1_CTX SHA_CTX
-+#define SHA1Init SHA1_Init
-+#define SHA1Update SHA1_Update
-+#define SHA1Final SHA1_Final
-+#include <openssl/sha.h>
-+#else
- #include <sha1.h>
- #endif
- #else
-@@ -69,7 +75,7 @@
- #include "sc.h"
- 
- #ifdef __sun
--#define des_set_key(key, schedule) des_key_sched(key, schedule)
-+#define DES_set_key(key, &schedule) DES_key_sched(key, &schedule)
- #endif
- 
- #define JDIRSIZE 40
-@@ -91,7 +97,7 @@
- 
- #ifndef __palmos__
- /* default signed applet key of Cyberflex Access */
--static des_cblock app_key = {0x6A, 0x21, 0x36, 0xF5, 0xD8, 0x0C, 0x47, 0x83};
-+static DES_cblock app_key = {0x6A, 0x21, 0x36, 0xF5, 0xD8, 0x0C, 0x47, 0x83};
- #endif
- 
- static int
-@@ -663,8 +669,8 @@
-     unsigned char aid[16], app_data[MAX_APP_SIZE], data[MAX_BUF_SIZE];
-     int i, j, vflag = 0, gotprog = 0, gotcont = 0, fd_app, size, aidlen = 0, sw;
-     int cont_size = 1152, inst_size = 1024;
--    des_cblock tmp;
--    des_key_schedule schedule;
-+    DES_cblock tmp;
-+    DES_key_schedule schedule;
-     static unsigned char acl[] = {0x81, 0, 0, 0xff, 0, 0, 0, 0};
- 
-     optind = optreset = 1;
-@@ -777,12 +783,12 @@
-     /* chain.  DES encrypt one block, XOR the cyphertext with the next block,
-        ... continues until the end of the buffer */
- 
--    des_set_key (&app_key, schedule);
-+    DES_set_key (&app_key, &schedule);
- 
-     for (i = 0; i < size/BLOCK_SIZE; i++) {
- 	for (j = 0; j < BLOCK_SIZE; j++)
- 	    tmp[j] = tmp[j] ^ app_data[i*BLOCK_SIZE + j];
--	des_ecb_encrypt (&tmp, &tmp, schedule, DES_ENCRYPT);
-+	DES_ecb_encrypt (&tmp, &tmp, &schedule, DES_ENCRYPT);
-     }
- 
-     if (vflag) {
diff --git a/security/sectok/pkg-descr b/security/sectok/pkg-descr
deleted file mode 100644
index f71dcd17c35b..000000000000
--- a/security/sectok/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-This is the sectok tool from citi.umich.edu. Originally targeted
-for OpenBSD. This is a quick port of the basic application; it relies
-upon the libsectok library for ISO 7816 Smart Card device communication.