aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/rubygem-hiera
diff options
context:
space:
mode:
authorglarkin <glarkin@FreeBSD.org>2012-05-10 23:54:25 +0800
committerglarkin <glarkin@FreeBSD.org>2012-05-10 23:54:25 +0800
commit8983d610e8537c94aa558f0958063b5aa27e8679 (patch)
tree2b3499fdcbe8e2f48cc8c598c3077ec5449eab0e /sysutils/rubygem-hiera
parent0faf341e6cb74b5b22a3bbc5cdbd1d649edf483d (diff)
downloadfreebsd-ports-gnome-8983d610e8537c94aa558f0958063b5aa27e8679.tar.gz
freebsd-ports-gnome-8983d610e8537c94aa558f0958063b5aa27e8679.tar.zst
freebsd-ports-gnome-8983d610e8537c94aa558f0958063b5aa27e8679.zip
Hiera is a pluggable (YAML, JSON, Puppet) hierarchical database for
storing infrastructure representation data. WWW: http://projects.puppetlabs.com/projects/hiera
Diffstat (limited to 'sysutils/rubygem-hiera')
-rw-r--r--sysutils/rubygem-hiera/Makefile37
-rw-r--r--sysutils/rubygem-hiera/distinfo2
-rw-r--r--sysutils/rubygem-hiera/pkg-descr4
3 files changed, 43 insertions, 0 deletions
diff --git a/sysutils/rubygem-hiera/Makefile b/sysutils/rubygem-hiera/Makefile
new file mode 100644
index 000000000000..9009fd5a8268
--- /dev/null
+++ b/sysutils/rubygem-hiera/Makefile
@@ -0,0 +1,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>
diff --git a/sysutils/rubygem-hiera/distinfo b/sysutils/rubygem-hiera/distinfo
new file mode 100644
index 000000000000..7f66f2412569
--- /dev/null
+++ b/sysutils/rubygem-hiera/distinfo
@@ -0,0 +1,2 @@
+SHA256 (rubygem/hiera-0.3.0.gem) = 1499f4b005ee1c60f3fcbc394a276b69c972d67ccaeefdfe52a1e022be05b99b
+SIZE (rubygem/hiera-0.3.0.gem) = 12288
diff --git a/sysutils/rubygem-hiera/pkg-descr b/sysutils/rubygem-hiera/pkg-descr
new file mode 100644
index 000000000000..798c23e5ab30
--- /dev/null
+++ b/sysutils/rubygem-hiera/pkg-descr
@@ -0,0 +1,4 @@
+Hiera is a pluggable (YAML, JSON, Puppet) hierarchical database for
+storing infrastructure representation data.
+
+WWW: http://projects.puppetlabs.com/projects/hiera