# Created by: Greg Larkin # $FreeBSD: head/sysutils/rubygem-hiera/Makefile 480145 2018-09-20 00:23:39Z sunpoet $ PORTNAME= hiera PORTVERSION= 3.4.5 CATEGORIES= sysutils rubygems MASTER_SITES= RG MAINTAINER= ruby@FreeBSD.org COMMENT= Pluggable data store for hierarchical data LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYING CONFLICTS_INSTALL= rubygem-hiera1-* NO_ARCH= yes USE_RUBY= yes USES= gem HIERA_DBDIR= /var/db/hiera PLIST_FILES= bin/hiera PLIST_DIRS= ${HIERA_DBDIR} post-install: ${REINPLACE_CMD} 's|/etc/puppetlabs/code/environments/%{environment}/hieradata|${HIERA_DBDIR}|' \ ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/lib/hiera/util.rb \ ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/spec/unit/util_spec.rb ${REINPLACE_CMD} 's|/etc/puppetlabs/code|${PREFIX}/etc|' \ ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/lib/hiera/util.rb \ ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/spec/unit/util_spec.rb ${FIND} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR} -name \*.bak -delete ${MKDIR} ${STAGEDIR}${HIERA_DBDIR} .include