[arch-commits] Commit in mcollective/repos (3 files)

Felix Yan felixonmars at archlinux.org
Thu Dec 26 01:32:09 UTC 2019


    Date: Thursday, December 26, 2019 @ 01:32:04
  Author: felixonmars
Revision: 541783

archrelease: copy trunk to community-staging-any

Added:
  mcollective/repos/community-staging-any/
  mcollective/repos/community-staging-any/PKGBUILD
    (from rev 541782, mcollective/trunk/PKGBUILD)
  mcollective/repos/community-staging-any/mcollective.service
    (from rev 541782, mcollective/trunk/mcollective.service)

---------------------+
 PKGBUILD            |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++
 mcollective.service |   15 +++++++++++++
 2 files changed, 69 insertions(+)

Copied: mcollective/repos/community-staging-any/PKGBUILD (from rev 541782, mcollective/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-12-26 01:32:04 UTC (rev 541783)
@@ -0,0 +1,54 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org
+
+pkgname=mcollective
+pkgver=2.12.5
+pkgrel=2
+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')
+backup=('etc/puppetlabs/mcollective/server.cfg' 'etc/puppetlabs/mcollective/client.cfg')
+depends=('ruby' 'puppet5' 'ruby-stomp')
+optdepends=(
+  'ruby-nats-pure: NATS backend'
+  'ruby-net-ping: ping interface supporting various protocols'
+  'ruby-sys-proctable: interface for providing process table info'
+)
+source=(
+  "https://downloads.puppetlabs.com/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc}
+  'mcollective.service'
+)
+sha512sums=('f24c971a816f89196085574416a209ccf5584e61975a6a301aa6c697debf675a3ef49acf5ad3c772b8225d50fd149848afa79e7a5666b471299beb11e213cd57'
+            '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
+}

Copied: mcollective/repos/community-staging-any/mcollective.service (from rev 541782, mcollective/trunk/mcollective.service)
===================================================================
--- community-staging-any/mcollective.service	                        (rev 0)
+++ community-staging-any/mcollective.service	2019-12-26 01:32:04 UTC (rev 541783)
@@ -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