aboutsummaryrefslogtreecommitdiffstats
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
parent0faf341e6cb74b5b22a3bbc5cdbd1d649edf483d (diff)
downloadfreebsd-ports-graphics-8983d610e8537c94aa558f0958063b5aa27e8679.tar.gz
freebsd-ports-graphics-8983d610e8537c94aa558f0958063b5aa27e8679.tar.zst
freebsd-ports-graphics-8983d610e8537c94aa558f0958063b5aa27e8679.zip
Hiera is a pluggable (YAML, JSON, Puppet) hierarchical database for
storing infrastructure representation data. WWW: http://projects.puppetlabs.com/projects/hiera
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/rubygem-hiera/Makefile37
-rw-r--r--sysutils/rubygem-hiera/distinfo2
-rw-r--r--sysutils/rubygem-hiera/pkg-descr4
4 files changed, 44 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index e011d2d6ed2..c9cb7032b6b 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -783,6 +783,7 @@
SUBDIR += rubygem-guard
SUBDIR += rubygem-guard-livereload
SUBDIR += rubygem-guard-rspec
+ SUBDIR += rubygem-hiera
SUBDIR += rubygem-log4r
SUBDIR += rubygem-murder
SUBDIR += rubygem-ohai
diff --git a/sysutils/rubygem-hiera/Makefile b/sysutils/rubygem-hiera/Makefile
new file mode 100644
index 00000000000..9009fd5a826
--- /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 00000000000..7f66f241256
--- /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 00000000000..798c23e5ab3
--- /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