git: 5973deb895a2 - main - security/dogtag-pki: Install PKI version file

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Sat, 11 Jul 2026 12:07:58 UTC
The branch main has been updated by joneum:

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

commit 5973deb895a2a1ff95e8b2cf57f8ef7672120e5c
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-07-11 12:06:57 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-07-11 12:07:50 +0000

    security/dogtag-pki: Install PKI version file
    
    Install share/pki/VERSION so the Python pki module can determine
    the Dogtag PKI specification version at runtime.
    
    Sponsored by:   Netzkommune GmbH
---
 security/dogtag-pki/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/security/dogtag-pki/Makefile b/security/dogtag-pki/Makefile
index 4515719926a4..aba805dba23c 100644
--- a/security/dogtag-pki/Makefile
+++ b/security/dogtag-pki/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	dogtag-pki
 DISTVERSIONPREFIX=	v
 DISTVERSION=	11.7.0
+PORTREVISION=	1
 CATEGORIES=	security python
 
 MAINTAINER=	joneum@FreeBSD.org
@@ -28,4 +29,10 @@ SHEBANG_FILES=	base/common/upgrade/*/*.py base/server/upgrade/*/*.py
 
 NO_ARCH=	yes
 
+PLIST_FILES=	share/pki/VERSION
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/pki
+	@${PRINTF} "Specification-Version: ${DISTVERSION}\nImplementation-Version: ${DISTVERSION}\n" > ${STAGEDIR}${PREFIX}/share/pki/VERSION
+
 .include <bsd.port.mk>