From owner-svn-ports-head@freebsd.org Wed Jan 10 04:42:30 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F1B2AE668EC; Wed, 10 Jan 2018 04:42:30 +0000 (UTC) (envelope-from zleslie@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CDDA1822D3; Wed, 10 Jan 2018 04:42:30 +0000 (UTC) (envelope-from zleslie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2301F20F50; Wed, 10 Jan 2018 04:42:30 +0000 (UTC) (envelope-from zleslie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0A4gUbw096729; Wed, 10 Jan 2018 04:42:30 GMT (envelope-from zleslie@FreeBSD.org) Received: (from zleslie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0A4gUCe096728; Wed, 10 Jan 2018 04:42:30 GMT (envelope-from zleslie@FreeBSD.org) Message-Id: <201801100442.w0A4gUCe096728@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zleslie set sender to zleslie@FreeBSD.org using -f From: Zach Leslie Date: Wed, 10 Jan 2018 04:42:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458597 - head/sysutils/rubygem-facter X-SVN-Group: ports-head X-SVN-Commit-Author: zleslie X-SVN-Commit-Paths: head/sysutils/rubygem-facter X-SVN-Commit-Revision: 458597 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2018 04:42:31 -0000 Author: zleslie Date: Wed Jan 10 04:42:29 2018 New Revision: 458597 URL: https://svnweb.freebsd.org/changeset/ports/458597 Log: Add staticly named symlink to port-versioned directory To be utilized by sysutils/puppetserver, here we add a symlink to point at the gem directory. This allows puppetserver to use facter as a library without knowing the version installed. Approved by: swills(mentor), robak Differential Revision: D13803 Modified: head/sysutils/rubygem-facter/Makefile Modified: head/sysutils/rubygem-facter/Makefile ============================================================================== --- head/sysutils/rubygem-facter/Makefile Wed Jan 10 04:02:21 2018 (r458596) +++ head/sysutils/rubygem-facter/Makefile Wed Jan 10 04:42:29 2018 (r458597) @@ -3,7 +3,7 @@ PORTNAME= facter PORTVERSION= 2.5.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils rubygems MASTER_SITES= RG \ http://downloads.puppetlabs.com/facter/ @@ -17,7 +17,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE USE_RUBY= yes USES= gem -PLIST_FILES= bin/facter +PLIST_FILES= bin/facter ${GEMS_DIR}/facter OPTIONS_DEFINE= EC2_FACTS ZFS_FACTS EC2_FACTS_DESC= Generate AWS EC2 related facts @@ -39,5 +39,8 @@ post-patch-EC2_FACTS-off: post-patch-ZFS_FACTS-off: @${REINPLACE_CMD} -e 's/\,\ \"lib\/facter\/zfs_version.rb\"//' ${WRKSRC}/${PORTNAME}.gemspec @${REINPLACE_CMD} -e 's/\,\ \"lib\/facter\/zpool_version.rb\"//' ${WRKSRC}/${PORTNAME}.gemspec + +post-install: + ${RLN} ${STAGEDIR}/${PREFIX}/${GEMS_DIR}/facter-${PORTVERSION} ${STAGEDIR}/${PREFIX}/${GEMS_DIR}/facter .include