blob: 9009fd5a82686720eae458120acf73c3243867ac (
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
33
34
35
36
37
|
# Ports collection makefile for: hiera
# Date created: 10 May 2012
# Whom: Greg Larkin <glarkin@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= hiera
PORTVERSION= 0.3.0
CATEGORIES= sysutils rubygems
MASTER_SITES= RG
MAINTAINER= glarkin@FreeBSD.org
COMMENT= A pluggable data store for hierarchical data
RUN_DEPENDS= puppet:${PORTSDIR}/sysutils/puppet
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
HIERA_DBDIR= /var/db/hiera
post-install:
@${REINPLACE_CMD} "s!/etc/hiera.yaml!${PREFIX}/etc/hiera.yaml!" \
${PREFIX}/${GEM_LIB_DIR}/bin/hiera \
${PREFIX}/${GEM_LIB_DIR}/lib/hiera.rb \
${PREFIX}/${GEM_LIB_DIR}/spec/unit/hiera_spec.rb
@${REINPLACE_CMD} "s!/var/lib/hiera!${HIERA_DBDIR}!" \
${PREFIX}/${GEM_LIB_DIR}/lib/hiera/backend.rb \
${PREFIX}/${GEM_LIB_DIR}/spec/unit/backend_spec.rb
@${MKDIR} ${HIERA_DBDIR}
@${ECHO_CMD} '@cwd /' >> ${TMPPLIST}
@${ECHO_CMD} "@exec ${MKDIR} ${HIERA_DBDIR}" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${RMDIR} \"%D/${HIERA_DBDIR}\" 2>/dev/null || true" >> ${TMPPLIST}
@${ECHO_CMD} '@cwd' >> ${TMPPLIST}
.include <bsd.port.mk>
|