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

Jonathan Steel jsteel at archlinux.org
Sun Jun 4 21:04:30 UTC 2017


    Date: Sunday, June 4, 2017 @ 21:04:30
  Author: jsteel
Revision: 234017

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 234016, nrpe/trunk/PKGBUILD)
  nrpe/repos/community-testing-i686/nrpe.install
    (from rev 234016, nrpe/trunk/nrpe.install)
  nrpe/repos/community-testing-x86_64/
  nrpe/repos/community-testing-x86_64/PKGBUILD
    (from rev 234016, nrpe/trunk/PKGBUILD)
  nrpe/repos/community-testing-x86_64/nrpe.install
    (from rev 234016, nrpe/trunk/nrpe.install)

---------------------------------------+
 community-testing-i686/PKGBUILD       |   62 ++++++++++++++++++++++++++++++++
 community-testing-i686/nrpe.install   |   21 ++++++++++
 community-testing-x86_64/PKGBUILD     |   62 ++++++++++++++++++++++++++++++++
 community-testing-x86_64/nrpe.install |   21 ++++++++++
 4 files changed, 166 insertions(+)

Copied: nrpe/repos/community-testing-i686/PKGBUILD (from rev 234016, nrpe/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2017-06-04 21:04:30 UTC (rev 234017)
@@ -0,0 +1,62 @@
+# 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.1.1
+pkgrel=1
+pkgdesc="Nagios Remote Plugin Executor"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('openssl-1.0')
+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/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz)
+md5sums=('9a49dbd75b9ee9d0dcb7b9b099f5dddc')
+
+build() {
+  cd $pkgname-$pkgver
+
+  export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
+  export sslbin=/usr/bin/openssl-1.0
+  export ssl_inc_dir=/usr/include/openssl-1.0/openssl
+
+  ./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
+
+  # FS#52873
+  sed -i 's/=31$/=nrpe/g' "$pkgdir"/etc/nrpe/nrpe.cfg
+
+  # 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 234016, nrpe/trunk/nrpe.install)
===================================================================
--- community-testing-i686/nrpe.install	                        (rev 0)
+++ community-testing-i686/nrpe.install	2017-06-04 21:04:30 UTC (rev 234017)
@@ -0,0 +1,21 @@
+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
+}
+
+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 234016, nrpe/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-06-04 21:04:30 UTC (rev 234017)
@@ -0,0 +1,62 @@
+# 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.1.1
+pkgrel=1
+pkgdesc="Nagios Remote Plugin Executor"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('openssl-1.0')
+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/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz)
+md5sums=('9a49dbd75b9ee9d0dcb7b9b099f5dddc')
+
+build() {
+  cd $pkgname-$pkgver
+
+  export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
+  export sslbin=/usr/bin/openssl-1.0
+  export ssl_inc_dir=/usr/include/openssl-1.0/openssl
+
+  ./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
+
+  # FS#52873
+  sed -i 's/=31$/=nrpe/g' "$pkgdir"/etc/nrpe/nrpe.cfg
+
+  # 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 234016, nrpe/trunk/nrpe.install)
===================================================================
--- community-testing-x86_64/nrpe.install	                        (rev 0)
+++ community-testing-x86_64/nrpe.install	2017-06-04 21:04:30 UTC (rev 234017)
@@ -0,0 +1,21 @@
+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
+}
+
+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