aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2013-05-01 00:01:02 +0800
committerdemon <demon@FreeBSD.org>2013-05-01 00:01:02 +0800
commit30622297a726b47ff3706dee99f4a96a2026983f (patch)
tree2c7f48a5c7fb4cc35124fb67f4a87b8d9188062d /sysutils
parent01f0b81e8242d80533deae0a06211d3ddb211762 (diff)
downloadfreebsd-ports-gnome-30622297a726b47ff3706dee99f4a96a2026983f.tar.gz
freebsd-ports-gnome-30622297a726b47ff3706dee99f4a96a2026983f.tar.zst
freebsd-ports-gnome-30622297a726b47ff3706dee99f4a96a2026983f.zip
Fix 'processor' and 'processorcount' facts.
Bump PORTREVISION. Reviewed by: swills Maintainer timeout.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/rubygem-facter/Makefile1
-rw-r--r--sysutils/rubygem-facter/files/patch-lib-facter-processor.rb19
2 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/rubygem-facter/Makefile b/sysutils/rubygem-facter/Makefile
index 1e0f78b92b70..bacfc617aad7 100644
--- a/sysutils/rubygem-facter/Makefile
+++ b/sysutils/rubygem-facter/Makefile
@@ -3,6 +3,7 @@
PORTNAME= facter
PORTVERSION= 1.6.18
+PORTREVISION= 1
CATEGORIES= sysutils rubygems
MASTER_SITES= RG \
http://downloads.puppetlabs.com/facter/
diff --git a/sysutils/rubygem-facter/files/patch-lib-facter-processor.rb b/sysutils/rubygem-facter/files/patch-lib-facter-processor.rb
new file mode 100644
index 000000000000..ae77e26caad8
--- /dev/null
+++ b/sysutils/rubygem-facter/files/patch-lib-facter-processor.rb
@@ -0,0 +1,19 @@
+--- lib/facter/processor.rb.orig 2013-04-30 19:57:21.000000000 +0400
++++ lib/facter/processor.rb 2013-04-30 19:58:19.000000000 +0400
+@@ -88,14 +88,14 @@
+ end
+
+ Facter.add("Processor") do
+- confine :kernel => :openbsd
++ confine :kernel => [ :openbsd, :freebsd ]
+ setcode do
+ Facter::Util::Resolution.exec("uname -p")
+ end
+ end
+
+ Facter.add("ProcessorCount") do
+- confine :kernel => :openbsd
++ confine :kernel => [ :openbsd, :freebsd ]
+ setcode do
+ Facter::Util::Resolution.exec("sysctl -n hw.ncpu")
+ end