From 30622297a726b47ff3706dee99f4a96a2026983f Mon Sep 17 00:00:00 2001 From: demon Date: Tue, 30 Apr 2013 16:01:02 +0000 Subject: Fix 'processor' and 'processorcount' facts. Bump PORTREVISION. Reviewed by: swills Maintainer timeout. --- sysutils/rubygem-facter/Makefile | 1 + .../files/patch-lib-facter-processor.rb | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 sysutils/rubygem-facter/files/patch-lib-facter-processor.rb (limited to 'sysutils') 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 -- cgit