git: 386cf835ecfc - main - sysutils/msktutil: Switch to upstream release tarball and modernize port

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sat, 05 Oct 2024 09:20:43 UTC
The branch main has been updated by diizzy:

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

commit 386cf835ecfcde40881eda95c11472a541cab689
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-10-05 09:13:56 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-10-05 09:20:39 +0000

    sysutils/msktutil: Switch to upstream release tarball and modernize port
    
    * Use upstream release archive (remove need to use USES= autoreconf)
    * Rework Makefile to follow Porters Handbook more closely and improve readability
    
    PR:             281580
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 sysutils/msktutil/Makefile | 32 ++++++++++++++++++--------------
 sysutils/msktutil/distinfo |  6 +++---
 2 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/sysutils/msktutil/Makefile b/sysutils/msktutil/Makefile
index 82e5b3875acd..93afa59ff5af 100644
--- a/sysutils/msktutil/Makefile
+++ b/sysutils/msktutil/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	msktutil
-PORTVERSION=	1.2.2
+DISTVERSION=	1.2.2
 CATEGORIES=	sysutils
+MASTER_SITES=	https://github.com/msktutil/${PORTNAME}/releases/download/${DISTVERSION}/
 
 MAINTAINER=	zi@FreeBSD.org
 COMMENT=	Utility to manage Active Directory interoperability
@@ -11,27 +12,30 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	cyrus-sasl-gssapi>0:security/cyrus-sasl2-gssapi
 
-USES=		autoreconf ldap ssl
-USE_GITHUB=	yes
+USES=		ldap ssl tar:bz2
+
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
-CONFIGURE_ARGS+=--with-sasldir=${LOCALBASE} --with-ldapdir=${LOCALBASE}
 
-OPTIONS_SINGLE=	GSSAPI
-OPTIONS_SINGLE_GSSAPI=	GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
+PLIST_FILES=	sbin/msktutil \
+		share/man/man1/msktutil.1.gz
+
+CONFIGURE_ARGS=	--with-krb5-config=${KRB5CONFIG} \
+		--with-sasldir=${LOCALBASE} \
+		--with-ldapdir=${LOCALBASE} \
 
-OPTIONS_DEFAULT=GSSAPI_BASE
+OPTIONS_SINGLE=			GSSAPI
+OPTIONS_SINGLE_GSSAPI=		GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
 
-GSSAPI_BASE_USES=	gssapi
-GSSAPI_HEIMDAL_USES=	gssapi:heimdal
-GSSAPI_MIT_USES=	gssapi:mit
+OPTIONS_DEFAULT=		GSSAPI_BASE
 
+GSSAPI_BASE_USES=		gssapi
 GSSAPI_BASE_CONFIGURE_ON=	--with-krb5=heimdal
+
+GSSAPI_HEIMDAL_USES=		gssapi:heimdal
 GSSAPI_HEIMDAL_CONFIGURE_ON=	--with-krb5=heimdal
-GSSAPI_MIT_CONFIGURE_ON=	--with-krb5=mit
-CONFIGURE_ARGS+=		--with-krb5-config=${KRB5CONFIG}
 
-PLIST_FILES=	sbin/msktutil share/man/man1/msktutil.1.gz
+GSSAPI_MIT_USES=		gssapi:mit
+GSSAPI_MIT_CONFIGURE_ON=	--with-krb5=mit
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/msktutil
diff --git a/sysutils/msktutil/distinfo b/sysutils/msktutil/distinfo
index 781f74525c2a..4c6e526ff729 100644
--- a/sysutils/msktutil/distinfo
+++ b/sysutils/msktutil/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1726664947
-SHA256 (msktutil-msktutil-1.2.2_GH0.tar.gz) = 2bc21fb6056d424fae9a5e51318887f53a8411e8f6d7d114fa8f9217cefc305d
-SIZE (msktutil-msktutil-1.2.2_GH0.tar.gz) = 67110
+TIMESTAMP = 1726687470
+SHA256 (msktutil-1.2.2.tar.bz2) = 51314bb222c20e963da61724c752e418261a7bfc2408e7b7d619e82a425f6541
+SIZE (msktutil-1.2.2.tar.bz2) = 87170