sysutils/rubygem-openfact: New port
Copied from sysutils/rubygem-facter With hat: puppet
This commit is contained in:
@@ -1198,6 +1198,7 @@
|
||||
SUBDIR += rubygem-mothra
|
||||
SUBDIR += rubygem-murder
|
||||
SUBDIR += rubygem-ohai
|
||||
SUBDIR += rubygem-openfact
|
||||
SUBDIR += rubygem-parallel
|
||||
SUBDIR += rubygem-puppet_forge
|
||||
SUBDIR += rubygem-puppetfile-resolver
|
||||
|
||||
@@ -20,7 +20,7 @@ RUN_DEPENDS+= rubygem-ruby-augeas>0:textproc/rubygem-ruby-augeas \
|
||||
USES= cpe gem
|
||||
CPE_VENDOR= puppet
|
||||
|
||||
CONFLICTS_INSTALL= facter # bin/facter
|
||||
CONFLICTS_INSTALL= facter rubygem-openfact # bin/facter
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
|
||||
28
sysutils/rubygem-openfact/Makefile
Normal file
28
sysutils/rubygem-openfact/Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
PORTNAME= openfact
|
||||
PORTVERSION= 5.0.0
|
||||
CATEGORIES= sysutils rubygems
|
||||
MASTER_SITES= RG
|
||||
|
||||
MAINTAINER= puppet@FreeBSD.org
|
||||
COMMENT= Cross-platform Ruby library for retrieving facts from OS
|
||||
WWW= https://github.com/OpenVoxProject/openfact/
|
||||
|
||||
LICENSE= APACHE20
|
||||
|
||||
RUN_DEPENDS= rubygem-hocon>=1.3<2:devel/rubygem-hocon \
|
||||
rubygem-thor>=1.0.1<2.0:devel/rubygem-thor
|
||||
# Soft dependencies that resolve more FreeBSD facts
|
||||
RUN_DEPENDS+= rubygem-ruby-augeas>0:textproc/rubygem-ruby-augeas \
|
||||
rubygem-ffi>=1.0:devel/rubygem-ffi \
|
||||
rubygem-rexml>0:textproc/rubygem-rexml \
|
||||
rubygem-sys-filesystem>0:sysutils/rubygem-sys-filesystem
|
||||
|
||||
USES= cpe gem
|
||||
|
||||
CONFLICTS_INSTALL= facter rubygem-facter # bin/facter
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
PLIST_FILES= bin/facter
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
sysutils/rubygem-openfact/distinfo
Normal file
3
sysutils/rubygem-openfact/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1751077014
|
||||
SHA256 (rubygem/openfact-5.0.0.gem) = e551b669c07df25e9cb4c3f1ebc48e064757b0c162418e9a9dd45cedb30b2871
|
||||
SIZE (rubygem/openfact-5.0.0.gem) = 172032
|
||||
@@ -0,0 +1,10 @@
|
||||
--- lib/facter/custom_facts/util/config.rb.orig 2020-08-31 03:41:56 UTC
|
||||
+++ lib/facter/custom_facts/util/config.rb
|
||||
@@ -43,6 +43,7 @@ module LegacyFacter
|
||||
[File.join(windows_dir, 'PuppetLabs', 'facter', 'facts.d')]
|
||||
else
|
||||
[
|
||||
+ '/usr/local/etc/facter/facts.d/',
|
||||
'/etc/puppetlabs/facter/facts.d',
|
||||
'/etc/facter/facts.d/',
|
||||
'/opt/puppetlabs/facter/facts.d'
|
||||
10
sysutils/rubygem-openfact/files/patch-openfact.gemspec
Normal file
10
sysutils/rubygem-openfact/files/patch-openfact.gemspec
Normal file
@@ -0,0 +1,10 @@
|
||||
--- openfact.gemspec.orig 2025-06-28 02:21:18 UTC
|
||||
+++ openfact.gemspec
|
||||
@@ -32,6 +32,6 @@ Gem::Specification.new do |s|
|
||||
s.add_development_dependency(%q<webmock>.freeze, ["~> 3.12".freeze])
|
||||
s.add_development_dependency(%q<yard>.freeze, ["~> 0.9".freeze])
|
||||
s.add_runtime_dependency(%q<hocon>.freeze, ["~> 1.3".freeze])
|
||||
- s.add_runtime_dependency(%q<thor>.freeze, [">= 1.0.1".freeze, "< 1.3".freeze])
|
||||
+ s.add_runtime_dependency(%q<thor>.freeze, [">= 1.0.1".freeze, "< 2".freeze])
|
||||
end
|
||||
|
||||
5
sysutils/rubygem-openfact/pkg-descr
Normal file
5
sysutils/rubygem-openfact/pkg-descr
Normal file
@@ -0,0 +1,5 @@
|
||||
A cross-platform Ruby library for retrieving facts from operating systems.
|
||||
Supports multiple resolution mechanisms, any of which can be restricted to
|
||||
working only on certain operating systems or environments. Facter is
|
||||
especially useful for retrieving things like operating system names, IP
|
||||
addresses, MAC addresses, and SSH keys.
|
||||
Reference in New Issue
Block a user