mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
36 lines
968 B
Makefile
36 lines
968 B
Makefile
# Created by: Greg Larkin <glarkin@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
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 <bsd.port.mk>
|