mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
ebc3c8eb58
- Clean out some unnecessary files from the installation/auto-plist Reported by: pointyhat (via pav)
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# Ports collection makefile for: hiera
|
|
# Date created: 10 May 2012
|
|
# Whom: Greg Larkin <glarkin@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= hiera
|
|
PORTVERSION= 0.3.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils rubygems
|
|
MASTER_SITES= RG
|
|
|
|
MAINTAINER= glarkin@FreeBSD.org
|
|
COMMENT= A pluggable data store for hierarchical data
|
|
|
|
RUN_DEPENDS= puppet>=0:${PORTSDIR}/sysutils/puppet
|
|
|
|
USE_RUBY= yes
|
|
USE_RUBYGEMS= yes
|
|
RUBYGEM_AUTOPLIST= yes
|
|
PLIST_FILES= bin/hiera
|
|
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
|
|
@${FIND} ${PREFIX}/${GEM_LIB_DIR} -name \*.bak -delete
|
|
@${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>
|