diff options
author | demon <demon@FreeBSD.org> | 2013-05-01 00:01:02 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2013-05-01 00:01:02 +0800 |
commit | 30622297a726b47ff3706dee99f4a96a2026983f (patch) | |
tree | 2c7f48a5c7fb4cc35124fb67f4a87b8d9188062d /sysutils | |
parent | 01f0b81e8242d80533deae0a06211d3ddb211762 (diff) | |
download | freebsd-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/Makefile | 1 | ||||
-rw-r--r-- | sysutils/rubygem-facter/files/patch-lib-facter-processor.rb | 19 |
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 |