Skip to content
Browse files

add PKGBUILD for hyperion (arch linux)

  • Loading branch information...
1 parent b71253f commit d8253ca6b1bf817ee8b95d7c5fd435dc274f1126 @derf derf committed Apr 5, 2012
Showing with 46 additions and 0 deletions.
  1. +46 −0 PKGBUILD
View
46 PKGBUILD
@@ -0,0 +1,46 @@
+# For hyperion.chaosdorf.dn42
+pkgname=chaosdorf-admin-toolkit
+pkgver=$(date '+%Y.%m.%d').git
+pkgrel=1
+pkgdesc="Chaosdorf Admin-Toolkit"
+url="https://github.com/chaosdorf/chaosdorf-admin-toolkit"
+arch=('any')
+license='WTFPL'
+depends=()
+optdepends=()
+makedepends=()
+conflicts=()
+replaces=()
+backup=()
+install=
+source=()
+md5sums=()
+
+build() {
+ mkdir "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ git clone git://github.com/chaosdorf/chaosdorf-admin-toolkit.git
+ sed -i \
+ -e 's/^Running Process Libs.*$//' \
+ -e 's/^Packages.*$//' \
+ -e 's/^Kernel Image.*$//' \
+ chaosdorf-admin-toolkit/nagios-passive/passive_checks.cfg
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}/chaosdorf-admin-toolkit"
+ install -Dm755 backup/backup_external \
+ "${pkgdir}/usr/sbin/backup_external"
+ install -Dm644 backup/backup_external.1 \
+ "${pkgdir}/usr/share/man/man8/backup_external.8"
+ install -Dm755 nagios-checks/local/check_git_status \
+ "${pkgdir}/usr/share/nagios/libexec/check_git_status"
+ install -Dm755 nagios-checks/local/check_hddtemp \
+ "${pkgdir}/usr/share/nagios/libexec/check_hddtemp"
+ install -Dm644 nagios-passive/passive_checks.cfg \
+ "${pkgdir}/etc/nagios/passive_checks.cfg"
+ install -Dm755 nagios-passive/run_checks \
+ "${pkgdir}/usr/lib/nagios/run_checks"
+ install -Dm755 nagios-passive/submit_checks \
+ "${pkgdir}/usr/lib/nagios/submit_checks"
+}

0 comments on commit d8253ca

Please sign in to comment.
Something went wrong with that request. Please try again.