aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Tartière <romain@FreeBSD.org>2017-08-12 14:19:04 +0000
committerRomain Tartière <romain@FreeBSD.org>2017-08-12 14:19:04 +0000
commitc296a7903bdb21dab96b659ab76db9c0f029024a (patch)
tree9ad195e5d4bfc761e467fa3b8e687fdb33ae3578
parent6fee69150218fce07184d7dcf6315da07d82780f (diff)
downloadports-c296a7903bdb21dab96b659ab76db9c0f029024a.tar.gz
ports-c296a7903bdb21dab96b659ab76db9c0f029024a.zip
Notes
-rw-r--r--databases/Makefile1
-rw-r--r--databases/puppetdb-terminus3/Makefile2
-rw-r--r--databases/puppetdb-terminus4/Makefile2
-rw-r--r--databases/puppetdb-terminus5/Makefile28
-rw-r--r--databases/puppetdb-terminus5/distinfo3
-rw-r--r--databases/puppetdb-terminus5/files/patch-Makefile62
-rw-r--r--databases/puppetdb-terminus5/pkg-descr3
-rw-r--r--databases/puppetdb-terminus5/pkg-plist17
8 files changed, 116 insertions, 2 deletions
diff --git a/databases/Makefile b/databases/Makefile
index fecf7bbe21ad..20864cb628b7 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -736,6 +736,7 @@
SUBDIR += proftpd-mod_sql_tds
SUBDIR += puppetdb-terminus3
SUBDIR += puppetdb-terminus4
+ SUBDIR += puppetdb-terminus5
SUBDIR += puppetdb3
SUBDIR += puppetdb4
SUBDIR += puppetdb5
diff --git a/databases/puppetdb-terminus3/Makefile b/databases/puppetdb-terminus3/Makefile
index 549be1fe6a1a..991192a33853 100644
--- a/databases/puppetdb-terminus3/Makefile
+++ b/databases/puppetdb-terminus3/Makefile
@@ -13,7 +13,7 @@ LICENSE= APACHE20
BUILD_DEPENDS= puppet:sysutils/puppet4
-CONFLICTS_INSTALL= puppetdb-terminus-* puppetdb-terminus4-*
+CONFLICTS_INSTALL= puppetdb-terminus4-* puppetdb-terminus5-*
USE_RUBY= yes
NO_BUILD= yes
diff --git a/databases/puppetdb-terminus4/Makefile b/databases/puppetdb-terminus4/Makefile
index 64e7f8b3ea0c..9d523077a481 100644
--- a/databases/puppetdb-terminus4/Makefile
+++ b/databases/puppetdb-terminus4/Makefile
@@ -14,7 +14,7 @@ LICENSE= APACHE20
BUILD_DEPENDS= puppet4>=0:sysutils/puppet4
-CONFLICTS_INSTALL= puppetdb-terminus-* puppetdb-terminus3-*
+CONFLICTS_INSTALL= puppetdb-terminus3-* puppetdb-terminus5-*
USE_RUBY= yes
NO_BUILD= yes
USES= gmake
diff --git a/databases/puppetdb-terminus5/Makefile b/databases/puppetdb-terminus5/Makefile
new file mode 100644
index 000000000000..12a55d972f7b
--- /dev/null
+++ b/databases/puppetdb-terminus5/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME= puppetdb-terminus
+PORTVERSION= 5.0.1
+CATEGORIES= databases ruby
+MASTER_SITES= http://downloads.puppetlabs.com/puppetdb/
+PKGNAMESUFFIX= 5
+DISTNAME= puppetdb-${PORTVERSION}
+
+MAINTAINER= puppet@FreeBSD.org
+COMMENT= PuppetDB storeconfigs backend terminus module
+
+LICENSE= APACHE20
+
+BUILD_DEPENDS= puppet5>=0:sysutils/puppet5
+
+CONFLICTS_INSTALL= puppetdb-terminus3-* puppetdb-terminus4-*
+USE_RUBY= yes
+NO_BUILD= yes
+USES= gmake
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/Makefile
+
+do-install:
+ @cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} ${GMAKE} install-puppetdb-termini
+
+.include <bsd.port.mk>
diff --git a/databases/puppetdb-terminus5/distinfo b/databases/puppetdb-terminus5/distinfo
new file mode 100644
index 000000000000..23a1755b80ec
--- /dev/null
+++ b/databases/puppetdb-terminus5/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1499445452
+SHA256 (puppetdb-5.0.1.tar.gz) = ac75c40c16ecfd14a64c3122811adcceaa2f32c1874e07c763ad0b1ec7338a27
+SIZE (puppetdb-5.0.1.tar.gz) = 24055687
diff --git a/databases/puppetdb-terminus5/files/patch-Makefile b/databases/puppetdb-terminus5/files/patch-Makefile
new file mode 100644
index 000000000000..11bbbff369e8
--- /dev/null
+++ b/databases/puppetdb-terminus5/files/patch-Makefile
@@ -0,0 +1,62 @@
+--- Makefile.orig
++++ Makefile
+@@ -1,7 +1,7 @@
+ prefix = /usr/local
+ datadir = $(prefix)/share
+ confdir = /etc
+-rubylibdir = $(shell ruby -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']")
++rubylibdir = $(shell %%PREFIX%%/bin/ruby -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']")
+ rundir = /var/run
+ bindir = /usr/bin
+
+@@ -34,22 +34,34 @@
+
+
+ install-puppetdb-termini:
+- install -Dm 0644 puppet/face/node/deactivate.rb "$(DESTDIR)$(rubylibdir)/puppet/face/node/deactivate.rb"
+- install -Dm 0644 puppet/face/node/status.rb "$(DESTDIR)$(rubylibdir)/puppet/face/node/status.rb"
+- install -Dm 0644 puppet/functions/puppetdb_query.rb "$(DESTDIR)$(rubylibdir)/puppet/functions/puppetdb_query.rb"
+- install -Dm 0644 puppet/indirector/catalog/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/indirector/catalog/puppetdb.rb"
+- install -Dm 0644 puppet/indirector/facts/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/indirector/facts/puppetdb.rb"
+- install -Dm 0644 puppet/indirector/facts/puppetdb_apply.rb "$(DESTDIR)$(rubylibdir)/puppet/indirector/facts/puppetdb_apply.rb"
+- install -Dm 0644 puppet/indirector/node/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/indirector/node/puppetdb.rb"
+- install -Dm 0644 puppet/indirector/resource/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/indirector/resource/puppetdb.rb"
+- install -Dm 0644 puppet/reports/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/reports/puppetdb.rb"
+- install -Dm 0644 puppet/util/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb.rb"
+- install -Dm 0644 puppet/util/puppetdb/atom.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/atom.rb"
+- install -Dm 0644 puppet/util/puppetdb/char_encoding.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/char_encoding.rb"
+- install -Dm 0644 puppet/util/puppetdb/command.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/command.rb"
+- install -Dm 0644 puppet/util/puppetdb/command_names.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/command_names.rb"
+- install -Dm 0644 puppet/util/puppetdb/config.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/config.rb"
+- install -Dm 0644 puppet/util/puppetdb/http.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/http.rb"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/face"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/face/node"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/functions"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/indirector"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/indirector/catalog"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/indirector/facts"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/indirector/node"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/indirector/resource"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/reports"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/util"
++ install -d -m 0755 "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb"
++ install -m 0644 puppet/face/node/deactivate.rb "$(DESTDIR)$(rubylibdir)/puppet/face/node/deactivate.rb"
++ install -m 0644 puppet/face/node/status.rb "$(DESTDIR)$(rubylibdir)/puppet/face/node/status.rb"
++ install -m 0644 puppet/functions/puppetdb_query.rb "$(DESTDIR)$(rubylibdir)/puppet/functions/puppetdb_query.rb"
++ install -m 0644 puppet/indirector/catalog/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/indirector/catalog/puppetdb.rb"
++ install -m 0644 puppet/indirector/facts/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/indirector/facts/puppetdb.rb"
++ install -m 0644 puppet/indirector/facts/puppetdb_apply.rb "$(DESTDIR)$(rubylibdir)/puppet/indirector/facts/puppetdb_apply.rb"
++ install -m 0644 puppet/indirector/node/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/indirector/node/puppetdb.rb"
++ install -m 0644 puppet/indirector/resource/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/indirector/resource/puppetdb.rb"
++ install -m 0644 puppet/reports/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/reports/puppetdb.rb"
++ install -m 0644 puppet/util/puppetdb.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb.rb"
++ install -m 0644 puppet/util/puppetdb/atom.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/atom.rb"
++ install -m 0644 puppet/util/puppetdb/char_encoding.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/char_encoding.rb"
++ install -m 0644 puppet/util/puppetdb/command.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/command.rb"
++ install -m 0644 puppet/util/puppetdb/command_names.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/command_names.rb"
++ install -m 0644 puppet/util/puppetdb/config.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/config.rb"
++ install -m 0644 puppet/util/puppetdb/http.rb "$(DESTDIR)$(rubylibdir)/puppet/util/puppetdb/http.rb"
+
+ install-rpm-sysv-init: install-rpm-preinst
+ install -d -m 0755 "$(DESTDIR)$(initdir)"
diff --git a/databases/puppetdb-terminus5/pkg-descr b/databases/puppetdb-terminus5/pkg-descr
new file mode 100644
index 000000000000..82720763fd9c
--- /dev/null
+++ b/databases/puppetdb-terminus5/pkg-descr
@@ -0,0 +1,3 @@
+The PuppetDB storeconfigs backend terminus module.
+
+WWW: https://docs.puppetlabs.com/puppetdb/latest/
diff --git a/databases/puppetdb-terminus5/pkg-plist b/databases/puppetdb-terminus5/pkg-plist
new file mode 100644
index 000000000000..a12b86eb6a1a
--- /dev/null
+++ b/databases/puppetdb-terminus5/pkg-plist
@@ -0,0 +1,17 @@
+%%RUBY_SITELIBDIR%%/puppet/face/node/deactivate.rb
+%%RUBY_SITELIBDIR%%/puppet/face/node/status.rb
+%%RUBY_SITELIBDIR%%/puppet/functions/puppetdb_query.rb
+%%RUBY_SITELIBDIR%%/puppet/indirector/catalog/puppetdb.rb
+%%RUBY_SITELIBDIR%%/puppet/indirector/facts/puppetdb.rb
+%%RUBY_SITELIBDIR%%/puppet/indirector/facts/puppetdb_apply.rb
+%%RUBY_SITELIBDIR%%/puppet/indirector/node/puppetdb.rb
+%%RUBY_SITELIBDIR%%/puppet/indirector/resource/puppetdb.rb
+%%RUBY_SITELIBDIR%%/puppet/reports/puppetdb.rb
+%%RUBY_SITELIBDIR%%/puppet/util/puppetdb.rb
+%%RUBY_SITELIBDIR%%/puppet/util/puppetdb/atom.rb
+%%RUBY_SITELIBDIR%%/puppet/util/puppetdb/char_encoding.rb
+%%RUBY_SITELIBDIR%%/puppet/util/puppetdb/command.rb
+%%RUBY_SITELIBDIR%%/puppet/util/puppetdb/command_names.rb
+%%RUBY_SITELIBDIR%%/puppet/util/puppetdb/config.rb
+%%RUBY_SITELIBDIR%%/puppet/util/puppetdb/http.rb
+