aboutsummaryrefslogtreecommitdiff
path: root/sysutils/rubygem-hiera/Makefile
blob: 822ad5c78b9724bad46d47619dce0581239dc65f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PORTNAME=	hiera
PORTVERSION=	3.10.0
CATEGORIES=	sysutils rubygems
MASTER_SITES=	RG

MAINTAINER=	ruby@FreeBSD.org
COMMENT=	Pluggable data store for hierarchical data

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		cpe gem
USE_RUBY=	yes

NO_ARCH=	yes

PLIST_DIRS=	/var/db/hiera
PLIST_FILES=	bin/hiera

CPE_VENDOR=	puppet

post-install:
	${REINPLACE_CMD} 's|/etc/puppetlabs/code/environments/%{environment}/hieradata|/var/db/hiera|' \
		${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}/var/db/hiera

.include <bsd.port.mk>