git: b61153eb7c0e - main - security/munge: Use release archive and rearrange Makefile

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Tue, 25 Jan 2022 08:30:09 UTC
The branch main has been updated by diizzy:

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

commit b61153eb7c0e354a4fee6c1e9875c0f6cafddbcc
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-01-25 08:24:07 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-01-25 08:24:29 +0000

    security/munge: Use release archive and rearrange Makefile
    
    Use release archive as suggested by Porters Handbook, this also
    removes the need to use USES= autoreconf
    Rearrange Makefile to follow Porters Handbook more closely
    
    PR:             261027
    Reviewed by:    bofh@ (maintainer)
---
 security/munge/Makefile | 14 +++++++-------
 security/munge/distinfo |  6 +++---
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/security/munge/Makefile b/security/munge/Makefile
index 15997b8ffee2..77b58ab01373 100644
--- a/security/munge/Makefile
+++ b/security/munge/Makefile
@@ -1,10 +1,10 @@
 # Created by: Muhammad Moinur Rahman <5u623l20@gmail.com>
 
 PORTNAME=	munge
-PORTVERSION=	0.5.14
-DISTVERSIONPREFIX=	${PORTNAME}-
+DISTVERSION=	0.5.14
 PORTREVISION=	1
 CATEGORIES=	security
+MASTER_SITES=	https://github.com/dun/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/
 
 MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Authentication service for creating and validating credentials
@@ -12,15 +12,15 @@ COMMENT=	Authentication service for creating and validating credentials
 LICENSE=	GPLv3 LGPL3
 LICENSE_COMB=	dual
 
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-openssl-prefix=${OPENSSLBASE}
-USES=		autoreconf cpe libtool pathfix perl5 ssl
+USES=		cpe libtool pathfix perl5 ssl tar:xz
 CPE_VENDOR=	opensuse
+GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
+
 USE_RC_SUBR=	munged
+
 INSTALL_TARGET=	install-strip
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	dun
+CONFIGURE_ARGS=	--with-openssl-prefix=${OPENSSLBASE}
 
 .include <bsd.port.mk>
diff --git a/security/munge/distinfo b/security/munge/distinfo
index ec3898f24905..d8248c06d332 100644
--- a/security/munge/distinfo
+++ b/security/munge/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1580907601
-SHA256 (dun-munge-munge-0.5.14_GH0.tar.gz) = 5d97b4df164f26e0fb9b86a215e646b2311fa79a2fe9aaaeac067f4ed906220a
-SIZE (dun-munge-munge-0.5.14_GH0.tar.gz) = 274972
+TIMESTAMP = 1641593412
+SHA256 (munge-0.5.14.tar.xz) = 6606a218f18090fa1f702e3f6fb608073eb6aafed534cf7dd81b67b2e0d30640
+SIZE (munge-0.5.14.tar.xz) = 439776