Date: Wed, 8 Nov 2017 11:53:50 +0000 (UTC) From: Bartek Rutkowski <robak@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453731 - head/sysutils/rubygem-facter Message-ID: <201711081153.vA8BroBQ039857@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: robak Date: Wed Nov 8 11:53:49 2017 New Revision: 453731 URL: https://svnweb.freebsd.org/changeset/ports/453731 Log: sysutils/rubygem-facter: add AWS EC2 facts option On machines that are not running in AWS EC2 cloud running facter was taking very long time trying to gather information that wasn't there. This change adds an option allowing to disable such facts in similar manner to ZFS related facts. PR: 221552 Submitted by: pirzyk Modified: head/sysutils/rubygem-facter/Makefile Modified: head/sysutils/rubygem-facter/Makefile ============================================================================== --- head/sysutils/rubygem-facter/Makefile Wed Nov 8 11:02:51 2017 (r453730) +++ head/sysutils/rubygem-facter/Makefile Wed Nov 8 11:53:49 2017 (r453731) @@ -3,6 +3,7 @@ PORTNAME= facter PORTVERSION= 2.5.1 +PORTREVISION= 1 CATEGORIES= sysutils rubygems MASTER_SITES= RG \ http://downloads.puppetlabs.com/facter/ @@ -18,17 +19,23 @@ USES= gem PLIST_FILES= bin/facter -OPTIONS_DEFINE= ZFS_FACTS -ZFS_FACTS_DESC= Generate ZFS-related facts +OPTIONS_DEFINE= EC2_FACTS ZFS_FACTS +EC2_FACTS_DESC= Generate AWS EC2 related facts +ZFS_FACTS_DESC= Generate ZFS related facts -OPTIONS_DEFAULT= ZFS_FACTS +OPTIONS_DEFAULT= EC2_FACTS ZFS_FACTS + .include <bsd.port.pre.mk> # Restrict dmidecode dependency to x86-based systems .if ${ARCH} == "amd64" || ${ARCH} == "i386" RUN_DEPENDS+= dmidecode:sysutils/dmidecode .endif + +post-patch-EC2_FACTS-off: + @${REINPLACE_CMD} -e 's/\,\ \"lib\/facter\/ec2.rb\"//' ${WRKSRC}/${PORTNAME}.gemspec + @${REINPLACE_CMD} -e 's/\,\ \"lib\/facter\/ec2\/rest.rb\"//' ${WRKSRC}/${PORTNAME}.gemspec post-patch-ZFS_FACTS-off: @${REINPLACE_CMD} -e 's/\,\ \"lib\/facter\/zfs_version.rb\"//' ${WRKSRC}/${PORTNAME}.gemspec
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711081153.vA8BroBQ039857>