forked from Lainports/freebsd-ports
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
This commit is contained in:
parent
6ffe6dc6bf
commit
ea7216fba2
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
@ -40,4 +40,7 @@ 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 <bsd.port.post.mk>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue