git: f92998df01d6 - main - net/gitup: gitup.conf OSREL automation

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Tue, 28 Jun 2022 08:08:46 UTC
The branch main has been updated by eduardo:

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

commit f92998df01d6e5402d31fff7010bb477d66b1137
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-06-28 07:55:58 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-06-28 08:08:33 +0000

    net/gitup: gitup.conf OSREL automation
    
     - implement gitup.conf OSREL automation from net/svnup
     - bump PORTREVISION, changes will take efect on ${PREFIX}/etc/gitup.conf.sample
---
 net/gitup/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/net/gitup/Makefile b/net/gitup/Makefile
index d4bebb92b0fe..18c75977856a 100644
--- a/net/gitup/Makefile
+++ b/net/gitup/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gitup
 DISTVERSION=	0.97
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net
 
 PATCH_SITES=	https://github.com/johnmehr/gitup/commit/
@@ -23,6 +23,11 @@ PORTDOCS=	README.md
 
 OPTIONS_DEFINE=	DOCS
 
+post-patch:
+	${REINPLACE_CMD} -e 's|stable\/12|stable\/${OSREL:R}| ; \
+		s|releng\/11.4|releng\/${OSREL}|' \
+		${WRKSRC}/gitup.conf
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/gitup.1 \