git: 75f3c9f1b49b - main - sysutils/rubygem-openvoxserver-ca: New port

From: Romain Tartière <romain_at_FreeBSD.org>
Date: Sat, 19 Jul 2025 21:17:00 UTC
The branch main has been updated by romain:

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

commit 75f3c9f1b49be9dfc7a6d1fa2bfcf549d010c769
Author:     Romain Tartière <romain@FreeBSD.org>
AuthorDate: 2025-07-16 17:58:39 +0000
Commit:     Romain Tartière <romain@FreeBSD.org>
CommitDate: 2025-07-19 21:07:03 +0000

    sysutils/rubygem-openvoxserver-ca: New port
    
    Copied from sysutils/rubygem-puppetserver-ca
    
    With hat:       puppet
---
 sysutils/Makefile                                  |  1 +
 sysutils/rubygem-openvoxserver-ca/Makefile         | 23 ++++++++++++++++++
 sysutils/rubygem-openvoxserver-ca/distinfo         |  3 +++
 .../patch-lib_puppetserver_ca_config_puppet.rb     | 11 +++++++++
 .../patch-lib_puppetserver_ca_utils_config.rb      | 27 ++++++++++++++++++++++
 sysutils/rubygem-openvoxserver-ca/pkg-descr        |  2 ++
 sysutils/rubygem-puppetserver-ca/Makefile          |  2 ++
 7 files changed, 69 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 441ff8b4d2c4..f3b0f66156f0 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1200,6 +1200,7 @@
     SUBDIR += rubygem-murder
     SUBDIR += rubygem-ohai
     SUBDIR += rubygem-openfact
+    SUBDIR += rubygem-openvoxserver-ca
     SUBDIR += rubygem-parallel
     SUBDIR += rubygem-puppet_forge
     SUBDIR += rubygem-puppetfile-resolver
diff --git a/sysutils/rubygem-openvoxserver-ca/Makefile b/sysutils/rubygem-openvoxserver-ca/Makefile
new file mode 100644
index 000000000000..3448c01cf2c3
--- /dev/null
+++ b/sysutils/rubygem-openvoxserver-ca/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	openvoxserver-ca
+PORTVERSION=	3.0.0
+CATEGORIES=	sysutils rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	puppet@FreeBSD.org
+COMMENT=	Ruby CLI tool to interact with the OpenVox Server Certificate Authority
+WWW=		https://github.com/OpenVoxProject/openvoxserver-ca-cli/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	rubygem-openfact>=5.0.0:sysutils/rubygem-openfact
+
+USES=		gem
+
+CONFLICTS_INSTALL=	rubygem-puppetserver-ca
+
+NO_ARCH=	yes
+
+PLIST_FILES=	bin/puppetserver-ca
+
+.include <bsd.port.mk>
diff --git a/sysutils/rubygem-openvoxserver-ca/distinfo b/sysutils/rubygem-openvoxserver-ca/distinfo
new file mode 100644
index 000000000000..461a7c0c7032
--- /dev/null
+++ b/sysutils/rubygem-openvoxserver-ca/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1752683977
+SHA256 (rubygem/openvoxserver-ca-3.0.0.gem) = 5caf6c4e3cf3d8c166f5cb48f84f5a5e88c5fd6617808d0a984b6a5d7b75fe04
+SIZE (rubygem/openvoxserver-ca-3.0.0.gem) = 50176
diff --git a/sysutils/rubygem-openvoxserver-ca/files/patch-lib_puppetserver_ca_config_puppet.rb b/sysutils/rubygem-openvoxserver-ca/files/patch-lib_puppetserver_ca_config_puppet.rb
new file mode 100644
index 000000000000..50a34086c23e
--- /dev/null
+++ b/sysutils/rubygem-openvoxserver-ca/files/patch-lib_puppetserver_ca_config_puppet.rb
@@ -0,0 +1,11 @@
+--- lib/puppetserver/ca/config/puppet.rb.orig	2020-11-06 21:46:06 UTC
++++ lib/puppetserver/ca/config/puppet.rb
+@@ -97,7 +97,7 @@ module Puppetserver
+           # defaults below
+           base_defaults = [
+             [:confdir, user_specific_puppet_confdir],
+-            [:ssldir,'$confdir/ssl'],
++            [:ssldir, '/var/puppet/ssl'],
+             [:certdir, '$ssldir/certs'],
+             [:certname, default_certname],
+             [:server, 'puppet'],
diff --git a/sysutils/rubygem-openvoxserver-ca/files/patch-lib_puppetserver_ca_utils_config.rb b/sysutils/rubygem-openvoxserver-ca/files/patch-lib_puppetserver_ca_utils_config.rb
new file mode 100644
index 000000000000..ead5c3d960d1
--- /dev/null
+++ b/sysutils/rubygem-openvoxserver-ca/files/patch-lib_puppetserver_ca_utils_config.rb
@@ -0,0 +1,27 @@
+--- lib/puppetserver/ca/utils/config.rb.orig	2020-11-28 01:14:43 UTC
++++ lib/puppetserver/ca/utils/config.rb
+@@ -23,7 +23,7 @@ module Puppetserver
+ 
+         def self.puppet_confdir
+           if running_as_root?
+-            '/etc/puppetlabs/puppet'
++            '/usr/local/etc/puppet'
+           else
+             "#{ENV['HOME']}/.puppetlabs/etc/puppet"
+           end
+@@ -34,11 +34,13 @@ module Puppetserver
+         end
+ 
+         def self.default_ssldir(confdir = puppet_confdir)
+-          File.join(confdir, 'ssl')
++          res = File.join(confdir, 'ssl')
++          res = '/var/puppet/ssl' unless File.directory?(res)
++          res
+         end
+ 
+         def self.old_default_cadir(confdir = puppet_confdir)
+-          File.join(confdir, 'ssl', 'ca')
++          '/var/puppet/ssl/ca'
+         end
+ 
+         def self.new_default_cadir(confdir = puppet_confdir)
diff --git a/sysutils/rubygem-openvoxserver-ca/pkg-descr b/sysutils/rubygem-openvoxserver-ca/pkg-descr
new file mode 100644
index 000000000000..a1f75dd6e344
--- /dev/null
+++ b/sysutils/rubygem-openvoxserver-ca/pkg-descr
@@ -0,0 +1,2 @@
+This gem provides the functionality behind the OpenVox Server CA interactions.
+The actual CLI executable lives within the OpenVox Server project.
diff --git a/sysutils/rubygem-puppetserver-ca/Makefile b/sysutils/rubygem-puppetserver-ca/Makefile
index 3ffee98c0991..b6e9a152e261 100644
--- a/sysutils/rubygem-puppetserver-ca/Makefile
+++ b/sysutils/rubygem-puppetserver-ca/Makefile
@@ -12,6 +12,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		gem
 
+CONFLICTS_INSTALL=	rubygem-openvoxserver-ca
+
 NO_ARCH=	yes
 
 PLIST_FILES=	bin/puppetserver-ca