diff options
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/rubygem-puppetserver-ca/Makefile | 23 | ||||
-rw-r--r-- | sysutils/rubygem-puppetserver-ca/distinfo | 3 | ||||
-rw-r--r-- | sysutils/rubygem-puppetserver-ca/files/patch-lib_puppetserver_ca_config_puppet.rb | 20 | ||||
-rw-r--r-- | sysutils/rubygem-puppetserver-ca/pkg-descr | 4 |
5 files changed, 51 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index f6800b8080c9..688d3f1530b8 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1123,6 +1123,7 @@ SUBDIR += rubygem-ohai8 SUBDIR += rubygem-parallel SUBDIR += rubygem-puppet_forge + SUBDIR += rubygem-puppetserver-ca SUBDIR += rubygem-r10k SUBDIR += rubygem-rubyipmi SUBDIR += rubygem-serverspec diff --git a/sysutils/rubygem-puppetserver-ca/Makefile b/sysutils/rubygem-puppetserver-ca/Makefile new file mode 100644 index 000000000000..b8e6c9da276f --- /dev/null +++ b/sysutils/rubygem-puppetserver-ca/Makefile @@ -0,0 +1,23 @@ +# $FreeBSD$ + +PORTNAME= puppetserver-ca +PORTVERSION= 1.0.0 +CATEGORIES= sysutils rubygems +MASTER_SITES= RG + +MAINTAINER= puppet@FreeBSD.org +COMMENT= Ruby CLI tool to interact with the Puppet Server Certificate Authority + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= facter:sysutils/facter + +USES= gem +USE_RUBY= yes + +post-patch: + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \ + ${WRKSRC}/lib/puppetserver/ca/config/puppet.rb + +.include <bsd.port.mk> diff --git a/sysutils/rubygem-puppetserver-ca/distinfo b/sysutils/rubygem-puppetserver-ca/distinfo new file mode 100644 index 000000000000..981bda0fcdef --- /dev/null +++ b/sysutils/rubygem-puppetserver-ca/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1537529577 +SHA256 (rubygem/puppetserver-ca-1.0.0.gem) = f438c2dc2a7f3c30cc7964fa335357c4937feff529a3bdf973b49f3e820e1168 +SIZE (rubygem/puppetserver-ca-1.0.0.gem) = 31232 diff --git a/sysutils/rubygem-puppetserver-ca/files/patch-lib_puppetserver_ca_config_puppet.rb b/sysutils/rubygem-puppetserver-ca/files/patch-lib_puppetserver_ca_config_puppet.rb new file mode 100644 index 000000000000..a12cfbad8e0d --- /dev/null +++ b/sysutils/rubygem-puppetserver-ca/files/patch-lib_puppetserver_ca_config_puppet.rb @@ -0,0 +1,20 @@ +--- lib/puppetserver/ca/config/puppet.rb.orig 2018-09-27 06:33:57 UTC ++++ lib/puppetserver/ca/config/puppet.rb +@@ -50,7 +50,7 @@ module Puppetserver + def user_specific_conf_dir + @user_specific_conf_dir ||= + if running_as_root? +- '/etc/puppetlabs/puppet' ++ '%%PREFIX%%/etc/puppet' + else + "#{ENV['HOME']}/.puppetlabs/etc/puppet" + end +@@ -102,7 +102,7 @@ module Puppetserver + # defaults below + base_defaults = [ + [:confdir, user_specific_conf_dir], +- [:ssldir,'$confdir/ssl'], ++ [:ssldir,'/var/puppet/ssl'], + [:cadir, '$ssldir/ca'], + [:certdir, '$ssldir/certs'], + [:certname, default_certname], diff --git a/sysutils/rubygem-puppetserver-ca/pkg-descr b/sysutils/rubygem-puppetserver-ca/pkg-descr new file mode 100644 index 000000000000..0fc17dd6ed35 --- /dev/null +++ b/sysutils/rubygem-puppetserver-ca/pkg-descr @@ -0,0 +1,4 @@ +This gem provides the functionality behind the Puppet Server CA interactions. +The actual CLI executable lives within the Puppet Server project. + +WWW: https://github.com/puppetlabs/puppetserver-ca-cli/ |