git: e669ef3a99f1 - main - sysutils/afbinit: Remove expired port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 31 Dec 2023 00:08:43 UTC
The branch main has been updated by bofh:

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

commit e669ef3a99f158fbe0613e5dcafe9f194b5ab47a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-12-30 06:23:01 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-12-31 00:06:33 +0000

    sysutils/afbinit: Remove expired port
    
    2023-12-31 sysutils/afbinit: sparc64 architecture is deprecated in FreeBSD
---
 MOVED                                  |  1 +
 sysutils/Makefile                      |  1 -
 sysutils/afbinit/Makefile              | 49 ------------------
 sysutils/afbinit/distinfo              |  6 ---
 sysutils/afbinit/files/afbinit.in      | 39 --------------
 sysutils/afbinit/files/patch-afbinit.c | 92 ----------------------------------
 sysutils/afbinit/pkg-descr             |  5 --
 sysutils/afbinit/pkg-message           | 10 ----
 sysutils/afbinit/pkg-plist             |  4 --
 9 files changed, 1 insertion(+), 206 deletions(-)

diff --git a/MOVED b/MOVED
index 9e98adaa21d0..a39764b8db34 100644
--- a/MOVED
+++ b/MOVED
@@ -8273,3 +8273,4 @@ www/py-httpx013||2023-12-31|Has expired: Old repo-copy needed for deprecated tex
 graphics/drm-fbsd12.0-kmod||2023-12-31|Has expired: Requires soon to reach EOL FreeBSD 12
 www/py-dj41-django-taggit|www/py-dj42-django-taggit|2023-12-31|Has expired: Extended support of Django 4.1 ends December 2023, upgrade to the Django 4.2+ version of this port. See https://www.djangoproject.com/download/
 sysutils/etc_os-release||2023-12-31|Has expired: No longer required after the EOL of 12
+sysutils/afbinit||2023-12-31|Has expired: sparc64 architecture is deprecated in FreeBSD
diff --git a/sysutils/Makefile b/sysutils/Makefile
index b76e8df7d85a..581ed41e8620 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -22,7 +22,6 @@
     SUBDIR += acpica-tools
     SUBDIR += acts
     SUBDIR += adtool
-    SUBDIR += afbinit
     SUBDIR += afflib
     SUBDIR += afio
     SUBDIR += agedu
diff --git a/sysutils/afbinit/Makefile b/sysutils/afbinit/Makefile
deleted file mode 100644
index f6a0dee155a8..000000000000
--- a/sysutils/afbinit/Makefile
+++ /dev/null
@@ -1,49 +0,0 @@
-PORTNAME=		afbinit
-PORTVERSION=		1.0
-PORTREVISION=		4
-CATEGORIES=		sysutils graphics
-MASTER_SITES=		DEBIAN/pool/contrib/a/afbinit/:afbinit,patch \
-			http://dlc.sun.com/osol/sparc-gfx/downloads/:microcode
-DISTFILES=		${PORTNAME}_${PORTVERSION}.orig.tar.gz:afbinit \
-			afb-ucode.tar.bz2:microcode
-DIST_SUBDIR=		${PORTNAME}
-
-PATCH_SITES=		${MASTER_SITES}
-PATCHFILES=		${PORTNAME}_${PORTVERSION}-4.diff.gz:patch
-PATCH_DIST_STRIP=	-p1
-
-MAINTAINER=		ports@FreeBSD.org
-COMMENT=		Sun AFB aka Sun Elite 3D microcode firmware loader
-
-DEPRECATED=		sparc64 architecture is deprecated in FreeBSD
-EXPIRATION_DATE=	2023-12-31
-
-OPTIONS_DEFINE=		DOCS
-
-ONLY_FOR_ARCHS=		sparc64
-USE_RC_SUBR=		afbinit
-WRKSRC=			${WRKDIR}/${PORTNAME}-${PORTVERSION}.orig
-PKGMESSAGE=		${WRKDIR}/pkg-message
-
-post-patch:
-.for i in afbinit.c debian/afbinit.8
-	@${REINPLACE_CMD} -E -e 's|\/usr\/lib|${DATADIR}|g; \
-		s|(\/dev\/fb\[)[0-3]+(\])|\10-7\2|g; \
-		s|\/etc\/init.d\/afbinit|${PREFIX}/etc/rc.d/afbinit\{,.sh\}|g' \
-		${WRKSRC}/${i}
-.endfor
-	@${SED} 's|%%DATADIR%%|${DATADIR}|g' ${PKGDIR}/pkg-message > \
-		${WRKDIR}/pkg-message
-
-do-build:
-	@cd ${WRKSRC} && ${CC} ${CFLAGS} -o afbinit afbinit.c
-
-do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/afbinit ${STAGEDIR}${PREFIX}/sbin
-	@${INSTALL_MAN} ${WRKSRC}/debian/afbinit.8 ${STAGEDIR}${PREFIX}/man/man8
-	@${INSTALL} -d ${STAGEDIR}${DATADIR}
-	@${INSTALL_DATA} ${WRKDIR}/afb-ucode/afb.ucode ${STAGEDIR}${DATADIR}
-	@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
-	@${INSTALL_DATA} ${WRKDIR}/afb-ucode/README ${STAGEDIR}${DOCSDIR}
-
-.include <bsd.port.mk>
diff --git a/sysutils/afbinit/distinfo b/sysutils/afbinit/distinfo
deleted file mode 100644
index d96b0655ecb9..000000000000
--- a/sysutils/afbinit/distinfo
+++ /dev/null
@@ -1,6 +0,0 @@
-SHA256 (afbinit/afbinit_1.0.orig.tar.gz) = cc0e316ed911955042186f5e1ccc43f9413fa369e4ddb8de8aaad293ad56a206
-SIZE (afbinit/afbinit_1.0.orig.tar.gz) = 2979
-SHA256 (afbinit/afb-ucode.tar.bz2) = 6ef1da6c6ff7a6ba07d7cf8c5b3677e353d59b8baea40af05ae0ee56d2befc84
-SIZE (afbinit/afb-ucode.tar.bz2) = 36421
-SHA256 (afbinit/afbinit_1.0-4.diff.gz) = ca6a321f6e85dd63ac0b12c88468e8104f22014f0533ff416a9215d8f200c971
-SIZE (afbinit/afbinit_1.0-4.diff.gz) = 3815
diff --git a/sysutils/afbinit/files/afbinit.in b/sysutils/afbinit/files/afbinit.in
deleted file mode 100644
index 8207b9f7e9cb..000000000000
--- a/sysutils/afbinit/files/afbinit.in
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: afbinit
-# REQUIRE: devfs
-#
-# Available configuration variables for afbinit are:
-#
-# afbinit_enable (bool):	Set to "YES" to enable afbinit.
-#				Defaults to "NO".
-#
-# Add at least the following line to /etc/rc.conf or /etc/rc.conf.local to
-# enable afbinit:
-#
-# afbinit="YES"
-#
-
-. /etc/rc.subr
-
-name="afbinit"
-rcvar=afbinit_enable
-
-start_cmd="afbinit_startcmd"
-
-afbinit_startcmd()
-{
-	if [ ! -r %%DATADIR%%/afb.ucode ]; then
-		err 1 '%%DATADIR%%/afb.ucode is not readable.'
-	fi
-
-	for fb in /dev/fb[0-7]; do
-		%%PREFIX%%/sbin/afbinit ${fb} %%DATADIR%%/afb.ucode
-	done
-}
-
-load_rc_config $name
-
-: ${afbinit_enable="NO"}
-
-run_rc_command "$1"
diff --git a/sysutils/afbinit/files/patch-afbinit.c b/sysutils/afbinit/files/patch-afbinit.c
deleted file mode 100644
index ca8ddc2d6731..000000000000
--- a/sysutils/afbinit/files/patch-afbinit.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Creator, Creator3D and Elite3D framebuffer driver.
- *
- * Copyright (C) 2000 Jakub Jelinek (jakub@redhat.com)
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
- * JAKUB JELINEK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-/* XFree86: xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_driver.c,v 1.11 2002/12/06 02:44:04 tsi Exp */
-
---- afbinit.c.orig	Fri Nov 30 03:04:21 2001
-+++ afbinit.c	Mon Sep 15 17:33:19 2003
-@@ -186,7 +186,7 @@
- 
- static void usage(char *me)
- {
--	printf("Usage:	%s /dev/fb[0123] [ucode_file]\n", me);
-+	printf("Usage:	%s /dev/fb[0-7] [ucode_file]\n", me);
- 	exit(1);
- }
- 
-@@ -195,13 +195,14 @@
- 	struct afb_ucode_header {
- 		char ident[8];
- 		unsigned int ucode_words;
--		unsigned int __unused[2];
-+		unsigned int unused[2];
- 	} ucheader;
- 	unsigned int *ucode;
- 	int afb_fd, ucode_fd, ucode_version;
- 	void *uregs, *kregs;
- 	char *afb_fname;
- 	char *ucode_fname = UCODE_FILE;
-+	unsigned int fem;
- 
- 	if(argc != 2 && argc != 3)
- 		usage(argp[0]);
-@@ -224,7 +225,7 @@
- 		perror("Read UCODE header");
- 		exit(1);
- 	}
--	ucode = (unsigned int *)malloc(ucheader.ucode_words << 2);
-+	ucode = (unsigned int *)(uintptr_t)malloc(ucheader.ucode_words << 2);
- 	if(ucode == NULL) {
- 		fprintf(stderr, "Cannot malloc %d bytes for UCODE.\n",
- 			ucheader.ucode_words << 2);
-@@ -256,15 +257,27 @@
- 		exit(1);
- 	}
- 
--	/* Say what UCODE version we are loading. */
-+	fem = *AFB_UREG_FEM(uregs) & 0x7f;
-+	if (fem == 0x07 || fem == 0x3f) {
-+		fprintf(stderr, "%s: Elite3D/M%s microcode already loaded.\n",
-+			afb_fname, fem == 0x07 ? "3" : "6");
-+		exit(1);
-+	}
-+	if (fem != 0x01) {
-+		fprintf(stderr, "%s: Not an AFB board.\n", afb_fname);
-+		exit(1);
-+	}
-+
-+	afb_ucode_upload((char *)ucode, ucheader.ucode_words / 16, uregs,
-+		kregs);
- 	ucode_version = *(ucode + (0x404 / sizeof(unsigned int)));
--	printf("Revision-%d.%d.%d ",
-+	fem = *AFB_UREG_FEM(uregs) & 0x7f;
-+	printf("%s: Elite3D/M%s microcode revision %d.%d.%d loaded.\n",
-+		afb_fname, fem == 0x07 ? "3" : "6",
- 	       (ucode_version >> 16) & 0xff,
- 	       (ucode_version >>  8) & 0xff,
- 	       (ucode_version >>  0) & 0xff);
- 
--	afb_ucode_upload((char *)ucode, ucheader.ucode_words / 16, uregs, kregs);
--
- 	munmap(kregs, 0x2000);
- 	munmap(uregs, 0x2000);
- 
diff --git a/sysutils/afbinit/pkg-descr b/sysutils/afbinit/pkg-descr
deleted file mode 100644
index 40cdaad25cc1..000000000000
--- a/sysutils/afbinit/pkg-descr
+++ /dev/null
@@ -1,5 +0,0 @@
-This port provides a program that loads the microcode firmware onto Sun
-Microsystems AFB Graphics Accelerators aka Sun Microsystems Elite 3D
-found in many UltraSPARC systems.  The microcode is necessary if you want
-to run X.Org with acceleration on these cards and is also included in this
-port.
diff --git a/sysutils/afbinit/pkg-message b/sysutils/afbinit/pkg-message
deleted file mode 100644
index 63798e11fe51..000000000000
--- a/sysutils/afbinit/pkg-message
+++ /dev/null
@@ -1,10 +0,0 @@
-[
-{ type: install
-  message: <<EOM
-In order to automatically load the microcode during boot add the following
-line to to /etc/rc.conf or /etc/rc.conf.local:
-
-afbinit_enable="YES"
-EOM
-}
-]
diff --git a/sysutils/afbinit/pkg-plist b/sysutils/afbinit/pkg-plist
deleted file mode 100644
index 269df3467aef..000000000000
--- a/sysutils/afbinit/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-sbin/afbinit
-man/man8/afbinit.8.gz
-%%DATADIR%%/afb.ucode
-%%PORTDOCS%%%%DOCSDIR%%/README