[arch-commits] Commit in (5 files)

Thore Bödecker foxxx0 at archlinux.org
Mon Jan 8 13:18:21 UTC 2018


    Date: Monday, January 8, 2018 @ 13:18:20
  Author: foxxx0
Revision: 280514

initial commit

Added:
  mcollective/
  mcollective/repos/
  mcollective/trunk/
  mcollective/trunk/PKGBUILD
  mcollective/trunk/mcollective.service

---------------------+
 PKGBUILD            |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 mcollective.service |   15 +++++++++++++++
 2 files changed, 63 insertions(+)

Added: mcollective/trunk/PKGBUILD
===================================================================
--- mcollective/trunk/PKGBUILD	                        (rev 0)
+++ mcollective/trunk/PKGBUILD	2018-01-08 13:18:20 UTC (rev 280514)
@@ -0,0 +1,48 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org
+
+pkgname=mcollective
+pkgver=2.11.4
+pkgrel=5
+pkgdesc="The Marionette Collective, a framework for building server orchestration or parallel job-execution systems."
+arch=('any')
+url='https://puppet.com/docs/mcollective/current/index.html'
+license=('Apache')
+depends=('ruby' 'puppet' 'ruby-stomp')
+source=(
+  "https://downloads.puppetlabs.com/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc}
+  'mcollective.service'
+)
+sha512sums=('acdf63c978395139bce3caf4e55190dd01c76dcfc7d69ab2245678acc0305d0eec0527d03973bdaf46c9b657be2432a293156fb17c7ae2b70e5cd71dfc2131b5'
+            'SKIP'
+            '132cdf7d4262ed3969ab09d2951bf79a3182e2a795a2778bd6f4d5d66b53b17f170a7b106e4499f73acdd4a0b29b48eb34fb7a1cd5cba36b70570a9775fda9b1')
+validpgpkeys=(
+  '6F6B15509CF8E59E6E469F327F438280EF8D349F' # Puppet, Inc. Release Key
+)
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  ruby install.rb \
+      --destdir="${pkgdir}" \
+      --rdoc \
+      --configs \
+      --configdir="/etc/puppetlabs/${pkgname}" \
+      --bindir="/usr/bin" \
+      --sbindir="/usr/bin" \
+      --plugindir="/usr/lib/${pkgname}" \
+      --sitelibdir="$(ruby -e 'puts RbConfig::CONFIG["vendorlibdir"]')" \
+      --no-batch-files \
+      --full
+
+  find "${pkgdir}" -type d -name 'debian' -exec rm -rf {} +
+  find "${pkgdir}" -type d -name 'redhat' -exec rm -rf {} +
+
+  install -D -m755 -d "${pkgdir}/usr/lib/${pkgname}"
+
+  install -D -m644 "${srcdir}/mcollective.service" "${pkgdir}/usr/lib/systemd/system/mcollective.service"
+
+  sed -i \
+      -e "s|/usr/libexec/${pkgname}|/usr/lib/${pkgname}|g" \
+      -e "s|/etc/${pkgname}|/etc/puppetlabs/${pkgname}|g" \
+      "${pkgdir}/etc/puppetlabs/${pkgname}"/*.cfg
+}

Added: mcollective/trunk/mcollective.service
===================================================================
--- mcollective/trunk/mcollective.service	                        (rev 0)
+++ mcollective/trunk/mcollective.service	2018-01-08 13:18:20 UTC (rev 280514)
@@ -0,0 +1,15 @@
+[Unit]
+Description=The Marionette Collective Daemon
+After=network.target
+
+[Service]
+Type=simple
+StandardOutput=syslog
+StandardError=syslog
+PIDFile=/run/puppetlabs/mcollective.pid
+ExecStart=/usr/bin/mcollectived --config=/etc/puppetlabs/mcollective/server.cfg --pidfile=/run/puppetlabs/mcollective.pid
+ExecReload=/usr/bin/kill -USR1 $MAINPID
+KillMode=process
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list