git: fa360fded4d4 - main - net/fort: Improve port

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Mon, 21 Apr 2025 17:38:30 UTC
The branch main has been updated by diizzy:

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

commit fa360fded4d4675160062126897ee60ddd58ab57
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-04-21 14:27:44 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-04-21 17:37:54 +0000

    net/fort: Improve port
    
    * Use upsteam release archive as recommended by Porter's Handbook
    * Remove USES= autoreconf
    * Remove USES= compiler:c11 , upstream defines c99
    * Remove upstream's hardcoded optimization
    * Remove GNU_CONFIGURE_MANPREFIX
    
    PR:             285920
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 net/fort/Makefile                    | 18 ++++++++----------
 net/fort/distinfo                    |  6 +++---
 net/fort/files/patch-src_Makefile.am | 11 -----------
 3 files changed, 11 insertions(+), 24 deletions(-)

diff --git a/net/fort/Makefile b/net/fort/Makefile
index 49fdb5629233..33d8ba10a864 100644
--- a/net/fort/Makefile
+++ b/net/fort/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	fort
 DISTVERSION=	1.6.6
 CATEGORIES=	net
+MASTER_SITES=	https://github.com/NICMx/FORT-validator/releases/download/${DISTVERSION}/
 
 MAINTAINER=	toni@devboks.com
 COMMENT=	FORT Validator is an open source RPKI validator
@@ -13,28 +14,25 @@ LIB_DEPENDS=	libcurl.so:ftp/curl \
 		libjansson.so:devel/jansson
 RUN_DEPENDS=	${LOCALBASE}/bin/rsync:net/rsync
 
-USES=		autoreconf compiler:c11 gnome pkgconfig ssl
+USES=		gnome localbase:ldflags pkgconfig ssl
 USE_GNOME=	libxml2
-USE_GITHUB=	yes
 USE_RC_SUBR=	fort
 
-GH_ACCOUNT=	NICMx
-GH_PROJECT=	FORT-validator
-
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 
 SUB_FILES=	pkg-message
 
 post-patch:
+	@${REINPLACE_CMD} -e "s|-O2 -g||" \
+		${PATCH_WRKSRC}/src/Makefile.in
 	@${REINPLACE_CMD} -e "s|/tmp/fort|${ETCDIR}|" \
-		${WRKSRC}/examples/config.json
+		${PATCH_WRKSRC}/examples/config.json
 	@${REINPLACE_CMD} -e "s|/usr/local/ssl|/etc/ssl|" \
-		${WRKSRC}/examples/config.json
+		${PATCH_WRKSRC}/examples/config.json
 	@${REINPLACE_CMD} -e "s|rsync\",|${LOCALBASE}/bin/rsync\",|" \
-		${WRKSRC}/examples/config.json
+		${PATCH_WRKSRC}/examples/config.json
 	@${REINPLACE_CMD} -e "/\"daemon\": false,/d" \
-		${WRKSRC}/examples/config.json
+		${PATCH_WRKSRC}/examples/config.json
 post-install:
 	@${MKDIR} ${STAGEDIR}${ETCDIR}/repository ${STAGEDIR}${ETCDIR}/tal
 	${INSTALL_DATA} ${WRKSRC}/examples/config.json \
diff --git a/net/fort/distinfo b/net/fort/distinfo
index 37eb7bbb319d..89e431cc69a8 100644
--- a/net/fort/distinfo
+++ b/net/fort/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1743917833
-SHA256 (NICMx-FORT-validator-1.6.6_GH0.tar.gz) = 34e6fc4c35fc2f0e96d079c04302505199b0f4bcbb10139e0686655b309aa57f
-SIZE (NICMx-FORT-validator-1.6.6_GH0.tar.gz) = 402942
+TIMESTAMP = 1743972642
+SHA256 (fort-1.6.6.tar.gz) = b17ce9cf135a75ba1bc5ff25cabb8fca835add4d606abd8a5d7832ee41eb114f
+SIZE (fort-1.6.6.tar.gz) = 510520
diff --git a/net/fort/files/patch-src_Makefile.am b/net/fort/files/patch-src_Makefile.am
deleted file mode 100644
index b57ee7a99f05..000000000000
--- a/net/fort/files/patch-src_Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/Makefile.am.orig	2024-06-23 03:52:55 UTC
-+++ src/Makefile.am
-@@ -118,7 +118,7 @@ fort_SOURCES += $(ASN_MODULE_SRCS) $(ASN_MODULE_HDRS)
- fort_CFLAGS  = -Wall -Wpedantic
- #fort_CFLAGS += $(GCC_WARNS)
- fort_CFLAGS += -std=c99 -D_DEFAULT_SOURCE=1 -D_XOPEN_SOURCE=700 -D_BSD_SOURCE=1
--fort_CFLAGS += -O2 -g $(FORT_FLAGS) ${XML2_CFLAGS}
-+fort_CFLAGS += -O2 -g $(FORT_FLAGS) ${XML2_CFLAGS} ${JANSSON_CFLAGS}
- if BACKTRACE_ENABLED
- fort_CFLAGS += -DBACKTRACE_ENABLED
- endif