[arch-commits] Commit in nrpe/repos (6 files)

Jonathan Steel jsteel at archlinux.org
Wed Jan 4 11:54:07 UTC 2017


    Date: Wednesday, January 4, 2017 @ 11:54:06
  Author: jsteel
Revision: 204861

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  nrpe/repos/community-testing-i686/
  nrpe/repos/community-testing-i686/PKGBUILD
    (from rev 204860, nrpe/trunk/PKGBUILD)
  nrpe/repos/community-testing-i686/nrpe.install
    (from rev 204860, nrpe/trunk/nrpe.install)
  nrpe/repos/community-testing-x86_64/
  nrpe/repos/community-testing-x86_64/PKGBUILD
    (from rev 204860, nrpe/trunk/PKGBUILD)
  nrpe/repos/community-testing-x86_64/nrpe.install
    (from rev 204860, nrpe/trunk/nrpe.install)

---------------------------------------+
 community-testing-i686/PKGBUILD       |   55 ++++++++++++++++++++++++++++++++
 community-testing-i686/nrpe.install   |   23 +++++++++++++
 community-testing-x86_64/PKGBUILD     |   55 ++++++++++++++++++++++++++++++++
 community-testing-x86_64/nrpe.install |   23 +++++++++++++
 4 files changed, 156 insertions(+)

Copied: nrpe/repos/community-testing-i686/PKGBUILD (from rev 204860, nrpe/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2017-01-04 11:54:06 UTC (rev 204861)
@@ -0,0 +1,55 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Phillip Smith <fukawi2 at NO-SPAM.gmail.com>
+# Contributor: Dale Blount <dale at archlinux.org>
+
+pkgname=nrpe
+pkgver=3.0.1
+pkgrel=1
+pkgdesc="Nagios Remote Plugin Executor"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('openssl')
+optdepends=("monitoring-plugins: common tools for monitoring using $pkgname")
+install=$pkgname.install
+backup=('etc/nrpe/nrpe.cfg' 'etc/xinetd.d/nrpe')
+url="https://github.com/NagiosEnterprises/nrpe"
+source=(https://github.com/NagiosEnterprises/nrpe/releases/download/$pkgver/$pkgname-$pkgver.tar.gz)
+md5sums=('8c81f251d9ee0903e5ff0191e99f7981')
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc/nrpe \
+    --libexecdir=/usr/lib/monitoring-plugins \
+    --enable-command-args \
+    --with-nrpe-user=31 --with-nrpe-group=31 \
+    --with-nagios-user=31 --with-nagios-group=31 \
+    --with-piddir=/run/nrpe
+  
+  make all
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 sample-config/nrpe.cfg "$pkgdir"/etc/nrpe/nrpe.cfg
+  install -Dm644 startup/default-service "$pkgdir"/usr/lib/systemd/system/nrpe.service
+  install -Dm644 startup/default-socket "$pkgdir"/usr/lib/systemd/system/nrpe.socket
+  install -Dm644 startup/default-xinetd "$pkgdir"/etc/xinetd.d/nrpe
+  install -Dm644 startup/tmpfile.conf "$pkgdir"/usr/lib/tmpfiles.d/nrpe.conf
+
+  install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
+  install -Dm644 README.SSL.md "$pkgdir"/usr/share/doc/$pkgname/README.SSL.md
+  install -Dm644 SECURITY.md "$pkgdir"/usr/share/doc/$pkgname/SECURITY.md
+  install -Dm644 LEGAL "$pkgdir"/usr/share/licenses/$pkgname/LEGAL
+
+  # Tidy up
+  chmod 755 "$pkgdir"/usr/lib/monitoring-plugins
+  chown -R root:root "$pkgdir"/usr/lib/monitoring-plugins
+  rm -f "$pkgdir"/usr/bin/nrpe-uninstall
+  rm -rf "$pkgdir"/run
+}

Copied: nrpe/repos/community-testing-i686/nrpe.install (from rev 204860, nrpe/trunk/nrpe.install)
===================================================================
--- community-testing-i686/nrpe.install	                        (rev 0)
+++ community-testing-i686/nrpe.install	2017-01-04 11:54:06 UTC (rev 204861)
@@ -0,0 +1,23 @@
+post_install() {
+  if [ -z "$(getent group nrpe)" ]; then
+    groupadd -g 31 nrpe
+  fi
+  if [ -z "$(getent passwd nrpe)" ]; then
+    useradd -u 31 -g nrpe -c "NRPE" -d /dev/null -s /usr/bin/nologin nrpe
+  fi
+
+  grep -Pq '^nrpe\s+' /etc/services || \
+    echo "nrpe             5666/tcp" >> /etc/services
+
+  systemd-tmpfiles --create /usr/lib/tmpfiles.d/nrpe.conf
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  # remove the line added to /etc/services
+  sed -e '/nrpe             5666\/tcp/d' \
+      -i /etc/services || true
+}

Copied: nrpe/repos/community-testing-x86_64/PKGBUILD (from rev 204860, nrpe/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-01-04 11:54:06 UTC (rev 204861)
@@ -0,0 +1,55 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Phillip Smith <fukawi2 at NO-SPAM.gmail.com>
+# Contributor: Dale Blount <dale at archlinux.org>
+
+pkgname=nrpe
+pkgver=3.0.1
+pkgrel=1
+pkgdesc="Nagios Remote Plugin Executor"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('openssl')
+optdepends=("monitoring-plugins: common tools for monitoring using $pkgname")
+install=$pkgname.install
+backup=('etc/nrpe/nrpe.cfg' 'etc/xinetd.d/nrpe')
+url="https://github.com/NagiosEnterprises/nrpe"
+source=(https://github.com/NagiosEnterprises/nrpe/releases/download/$pkgver/$pkgname-$pkgver.tar.gz)
+md5sums=('8c81f251d9ee0903e5ff0191e99f7981')
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc/nrpe \
+    --libexecdir=/usr/lib/monitoring-plugins \
+    --enable-command-args \
+    --with-nrpe-user=31 --with-nrpe-group=31 \
+    --with-nagios-user=31 --with-nagios-group=31 \
+    --with-piddir=/run/nrpe
+  
+  make all
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 sample-config/nrpe.cfg "$pkgdir"/etc/nrpe/nrpe.cfg
+  install -Dm644 startup/default-service "$pkgdir"/usr/lib/systemd/system/nrpe.service
+  install -Dm644 startup/default-socket "$pkgdir"/usr/lib/systemd/system/nrpe.socket
+  install -Dm644 startup/default-xinetd "$pkgdir"/etc/xinetd.d/nrpe
+  install -Dm644 startup/tmpfile.conf "$pkgdir"/usr/lib/tmpfiles.d/nrpe.conf
+
+  install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
+  install -Dm644 README.SSL.md "$pkgdir"/usr/share/doc/$pkgname/README.SSL.md
+  install -Dm644 SECURITY.md "$pkgdir"/usr/share/doc/$pkgname/SECURITY.md
+  install -Dm644 LEGAL "$pkgdir"/usr/share/licenses/$pkgname/LEGAL
+
+  # Tidy up
+  chmod 755 "$pkgdir"/usr/lib/monitoring-plugins
+  chown -R root:root "$pkgdir"/usr/lib/monitoring-plugins
+  rm -f "$pkgdir"/usr/bin/nrpe-uninstall
+  rm -rf "$pkgdir"/run
+}

Copied: nrpe/repos/community-testing-x86_64/nrpe.install (from rev 204860, nrpe/trunk/nrpe.install)
===================================================================
--- community-testing-x86_64/nrpe.install	                        (rev 0)
+++ community-testing-x86_64/nrpe.install	2017-01-04 11:54:06 UTC (rev 204861)
@@ -0,0 +1,23 @@
+post_install() {
+  if [ -z "$(getent group nrpe)" ]; then
+    groupadd -g 31 nrpe
+  fi
+  if [ -z "$(getent passwd nrpe)" ]; then
+    useradd -u 31 -g nrpe -c "NRPE" -d /dev/null -s /usr/bin/nologin nrpe
+  fi
+
+  grep -Pq '^nrpe\s+' /etc/services || \
+    echo "nrpe             5666/tcp" >> /etc/services
+
+  systemd-tmpfiles --create /usr/lib/tmpfiles.d/nrpe.conf
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  # remove the line added to /etc/services
+  sed -e '/nrpe             5666\/tcp/d' \
+      -i /etc/services || true
+}



More information about the arch-commits mailing list