diff options
Diffstat (limited to 'sysutils/rubygem-openvoxserver-ca')
5 files changed, 66 insertions, 0 deletions
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. |