From 54e9631001ef9a3f90cd45c1a09db2ccd6b549ed Mon Sep 17 00:00:00 2001 From: patvdv Date: Wed, 27 Mar 2019 15:08:36 +0100 Subject: [PATCH] Added & fixed build files --- .../exadata/ARCH/hc-exadata-platform/.install | 33 +++++++++ .../exadata/ARCH/hc-exadata-platform/PKGBUILD | 30 ++++++++ build/linux/ARCH/hc-display-csv/.install | 33 +++++++++ build/linux/ARCH/hc-display-csv/PKGBUILD | 20 +++++ build/linux/ARCH/hc-display-init/.install | 33 +++++++++ build/linux/ARCH/hc-display-init/PKGBUILD | 20 +++++ build/linux/ARCH/hc-display-json/.install | 33 +++++++++ build/linux/ARCH/hc-display-json/PKGBUILD | 20 +++++ build/linux/ARCH/hc-display-terse/.install | 33 +++++++++ build/linux/ARCH/hc-display-terse/PKGBUILD | 20 +++++ build/linux/ARCH/hc-display-zenoss/.install | 33 +++++++++ build/linux/ARCH/hc-display-zenoss/PKGBUILD | 20 +++++ build/linux/ARCH/hc-linux-platform/.install | 33 +++++++++ build/linux/ARCH/hc-linux-platform/PKGBUILD | 73 +++++++++++++++++++ build/linux/ARCH/hc-linux/.install | 2 +- build/linux/ARCH/hc-linux/PKGBUILD | 48 ++++++------ build/linux/ARCH/hc-notify-eif/.install | 33 +++++++++ build/linux/ARCH/hc-notify-eif/PKGBUILD | 24 ++++++ build/linux/ARCH/hc-notify-sms/.install | 33 +++++++++ build/linux/ARCH/hc-notify-sms/PKGBUILD | 24 ++++++ build/linux/DEBIAN/hc-display-init/control | 2 +- build/linux/DEBIAN/hc-display-terse/control | 2 +- build/linux/SPECS/hc-notify-sms.spec | 2 +- 23 files changed, 576 insertions(+), 28 deletions(-) create mode 100644 build/exadata/ARCH/hc-exadata-platform/.install create mode 100644 build/exadata/ARCH/hc-exadata-platform/PKGBUILD create mode 100644 build/linux/ARCH/hc-display-csv/.install create mode 100644 build/linux/ARCH/hc-display-csv/PKGBUILD create mode 100644 build/linux/ARCH/hc-display-init/.install create mode 100644 build/linux/ARCH/hc-display-init/PKGBUILD create mode 100644 build/linux/ARCH/hc-display-json/.install create mode 100644 build/linux/ARCH/hc-display-json/PKGBUILD create mode 100644 build/linux/ARCH/hc-display-terse/.install create mode 100644 build/linux/ARCH/hc-display-terse/PKGBUILD create mode 100644 build/linux/ARCH/hc-display-zenoss/.install create mode 100644 build/linux/ARCH/hc-display-zenoss/PKGBUILD create mode 100644 build/linux/ARCH/hc-linux-platform/.install create mode 100644 build/linux/ARCH/hc-linux-platform/PKGBUILD create mode 100644 build/linux/ARCH/hc-notify-eif/.install create mode 100644 build/linux/ARCH/hc-notify-eif/PKGBUILD create mode 100644 build/linux/ARCH/hc-notify-sms/.install create mode 100644 build/linux/ARCH/hc-notify-sms/PKGBUILD diff --git a/build/exadata/ARCH/hc-exadata-platform/.install b/build/exadata/ARCH/hc-exadata-platform/.install new file mode 100644 index 0000000..07bdf5d --- /dev/null +++ b/build/exadata/ARCH/hc-exadata-platform/.install @@ -0,0 +1,33 @@ +# -- post-install -- +post_install() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-install script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-install script" +} + +# -- post-remove -- +post_remove() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-uninstall script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-uninstall script" +} diff --git a/build/exadata/ARCH/hc-exadata-platform/PKGBUILD b/build/exadata/ARCH/hc-exadata-platform/PKGBUILD new file mode 100644 index 0000000..f2227af --- /dev/null +++ b/build/exadata/ARCH/hc-exadata-platform/PKGBUILD @@ -0,0 +1,30 @@ +_pkgname="check_health" +pkgname="hc-exadata-platform" +pkgver="%BUILD_DATE%" +pkgrel=1 +pkgdesc="The KUDOS Health Checker (HC) for UNIX (Exadata platform plugins)" +arch=("any") +url="https://github.com/patvdv/${_pkgname}" +license=('GPL3') +makedepends=('git') +depends=('hc-linux') +source=("${_pkgname}::git+${url}.git#branch=master") +install=".install" +sha256sums=('SKIP') + +package() { + cd "${srcdir}/${_pkgname}" + install -d -m 755 ${pkgdir}/opt/hc/lib + install -d -m 755 ${pkgdir}/opt/hc/lib/platform + install -d -m 755 ${pkgdir}/opt/hc/lib/platform/exadata + install -d -m 755 opt/hc/lib/platform/exadata/check_exadata_zfs_logs.sh ${pkgdir}/opt/hc/lib/platform/exadata/check_exadata_zfs_logs.sh + install -d -m 755 opt/hc/lib/platform/exadata/check_exadata_zfs_services.sh ${pkgdir}/opt/hc/lib/platform/exadata/check_exadata_zfs_services.sh + install -d -m 755 opt/hc/lib/platform/exadata/check_exadata_zfs_share_replication.sh ${pkgdir}/opt/hc/lib/platform/exadata/check_exadata_zfs_share_replication.sh + install -d -m 755 opt/hc/lib/platform/exadata/check_exadata_zfs_share_usage.sh ${pkgdir}/opt/hc/lib/platform/exadata/check_exadata_zfs_share_usage.sh + install -d -m 755 ${pkgdir}/etc/opt/hc + install -d -m 644 etc/opt/hc/check_exadata_zfs_logs.conf.dist ${pkgdir}/etc/opt/hc/check_exadata_zfs_logs.conf.dist + install -d -m 644 etc/opt/hc/check_exadata_zfs_services.conf.dist ${pkgdir}/etc/opt/hc/check_exadata_zfs_services.conf.dist + install -d -m 644 etc/opt/hc/check_exadata_zfs_share_replication.conf.dist ${pkgdir}/etc/opt/hc/check_exadata_zfs_share_replication.conf.dist + install -d -m 644 etc/opt/hc/check_exadata_zfs_share_usage.conf.dist ${pkgdir}/etc/opt/hc/check_exadata_zfs_share_usage.conf.dist + +} diff --git a/build/linux/ARCH/hc-display-csv/.install b/build/linux/ARCH/hc-display-csv/.install new file mode 100644 index 0000000..07bdf5d --- /dev/null +++ b/build/linux/ARCH/hc-display-csv/.install @@ -0,0 +1,33 @@ +# -- post-install -- +post_install() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-install script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-install script" +} + +# -- post-remove -- +post_remove() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-uninstall script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-uninstall script" +} diff --git a/build/linux/ARCH/hc-display-csv/PKGBUILD b/build/linux/ARCH/hc-display-csv/PKGBUILD new file mode 100644 index 0000000..70f1115 --- /dev/null +++ b/build/linux/ARCH/hc-display-csv/PKGBUILD @@ -0,0 +1,20 @@ +_pkgname="check_health" +pkgname="hc-display-csv" +pkgver="%BUILD_DATE%" +pkgrel=1 +pkgdesc="The KUDOS Health Checker (HC) for UNIX (CSV display core plugin)" +arch=("any") +url="https://github.com/patvdv/${_pkgname}" +license=('GPL3') +makedepends=('git') +depends=('hc-linux') +source=("${_pkgname}::git+${url}.git#branch=master") +install=".install" +sha256sums=('SKIP') + +package() { + cd "${srcdir}/${_pkgname}" + install -d -m 755 ${pkgdir}/opt/hc/lib + install -d -m 755 ${pkgdir}/opt/hc/lib/core + install -d -m 755 opt/hc/lib/core/display_csv.sh ${pkgdir}/opt/hc/lib/core/display_csv.sh +} diff --git a/build/linux/ARCH/hc-display-init/.install b/build/linux/ARCH/hc-display-init/.install new file mode 100644 index 0000000..07bdf5d --- /dev/null +++ b/build/linux/ARCH/hc-display-init/.install @@ -0,0 +1,33 @@ +# -- post-install -- +post_install() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-install script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-install script" +} + +# -- post-remove -- +post_remove() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-uninstall script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-uninstall script" +} diff --git a/build/linux/ARCH/hc-display-init/PKGBUILD b/build/linux/ARCH/hc-display-init/PKGBUILD new file mode 100644 index 0000000..02bbdeb --- /dev/null +++ b/build/linux/ARCH/hc-display-init/PKGBUILD @@ -0,0 +1,20 @@ +_pkgname="check_health" +pkgname="hc-display-init" +pkgver="%BUILD_DATE%" +pkgrel=1 +pkgdesc="The KUDOS Health Checker (HC) for UNIX (init display core plugin)" +arch=("any") +url="https://github.com/patvdv/${_pkgname}" +license=('GPL3') +makedepends=('git') +depends=('hc-linux') +source=("${_pkgname}::git+${url}.git#branch=master") +install=".install" +sha256sums=('SKIP') + +package() { + cd "${srcdir}/${_pkgname}" + install -d -m 755 ${pkgdir}/opt/hc/lib + install -d -m 755 ${pkgdir}/opt/hc/lib/core + install -d -m 755 opt/hc/lib/core/display_init.sh ${pkgdir}/opt/hc/lib/core/display_init.sh +} diff --git a/build/linux/ARCH/hc-display-json/.install b/build/linux/ARCH/hc-display-json/.install new file mode 100644 index 0000000..07bdf5d --- /dev/null +++ b/build/linux/ARCH/hc-display-json/.install @@ -0,0 +1,33 @@ +# -- post-install -- +post_install() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-install script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-install script" +} + +# -- post-remove -- +post_remove() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-uninstall script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-uninstall script" +} diff --git a/build/linux/ARCH/hc-display-json/PKGBUILD b/build/linux/ARCH/hc-display-json/PKGBUILD new file mode 100644 index 0000000..2b453c5 --- /dev/null +++ b/build/linux/ARCH/hc-display-json/PKGBUILD @@ -0,0 +1,20 @@ +_pkgname="check_health" +pkgname="hc-display-json" +pkgver="%BUILD_DATE%" +pkgrel=1 +pkgdesc="The KUDOS Health Checker (HC) for UNIX (JSON display core plugin)" +arch=("any") +url="https://github.com/patvdv/${_pkgname}" +license=('GPL3') +makedepends=('git') +depends=('hc-linux') +source=("${_pkgname}::git+${url}.git#branch=master") +install=".install" +sha256sums=('SKIP') + +package() { + cd "${srcdir}/${_pkgname}" + install -d -m 755 ${pkgdir}/opt/hc/lib + install -d -m 755 ${pkgdir}/opt/hc/lib/core + install -d -m 755 opt/hc/lib/core/display_json.sh ${pkgdir}/opt/hc/lib/core/display_json.sh +} diff --git a/build/linux/ARCH/hc-display-terse/.install b/build/linux/ARCH/hc-display-terse/.install new file mode 100644 index 0000000..07bdf5d --- /dev/null +++ b/build/linux/ARCH/hc-display-terse/.install @@ -0,0 +1,33 @@ +# -- post-install -- +post_install() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-install script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-install script" +} + +# -- post-remove -- +post_remove() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-uninstall script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-uninstall script" +} diff --git a/build/linux/ARCH/hc-display-terse/PKGBUILD b/build/linux/ARCH/hc-display-terse/PKGBUILD new file mode 100644 index 0000000..2529a17 --- /dev/null +++ b/build/linux/ARCH/hc-display-terse/PKGBUILD @@ -0,0 +1,20 @@ +_pkgname="check_health" +pkgname="hc-display-terse" +pkgver="%BUILD_DATE%" +pkgrel=1 +pkgdesc="The KUDOS Health Checker (HC) for UNIX (terse display core plugin)" +arch=("any") +url="https://github.com/patvdv/${_pkgname}" +license=('GPL3') +makedepends=('git') +depends=('hc-linux') +source=("${_pkgname}::git+${url}.git#branch=master") +install=".install" +sha256sums=('SKIP') + +package() { + cd "${srcdir}/${_pkgname}" + install -d -m 755 ${pkgdir}/opt/hc/lib + install -d -m 755 ${pkgdir}/opt/hc/lib/core + install -d -m 755 opt/hc/lib/core/display_terse.sh ${pkgdir}/opt/hc/lib/core/display_terse.sh +} diff --git a/build/linux/ARCH/hc-display-zenoss/.install b/build/linux/ARCH/hc-display-zenoss/.install new file mode 100644 index 0000000..07bdf5d --- /dev/null +++ b/build/linux/ARCH/hc-display-zenoss/.install @@ -0,0 +1,33 @@ +# -- post-install -- +post_install() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-install script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-install script" +} + +# -- post-remove -- +post_remove() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-uninstall script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-uninstall script" +} diff --git a/build/linux/ARCH/hc-display-zenoss/PKGBUILD b/build/linux/ARCH/hc-display-zenoss/PKGBUILD new file mode 100644 index 0000000..9d7620c --- /dev/null +++ b/build/linux/ARCH/hc-display-zenoss/PKGBUILD @@ -0,0 +1,20 @@ +_pkgname="check_health" +pkgname="hc-display-zenoss" +pkgver="%BUILD_DATE%" +pkgrel=1 +pkgdesc="The KUDOS Health Checker (HC) for UNIX (ZENOSS display core plugin)" +arch=("any") +url="https://github.com/patvdv/${_pkgname}" +license=('GPL3') +makedepends=('git') +depends=('hc-linux') +source=("${_pkgname}::git+${url}.git#branch=master") +install=".install" +sha256sums=('SKIP') + +package() { + cd "${srcdir}/${_pkgname}" + install -d -m 755 ${pkgdir}/opt/hc/lib + install -d -m 755 ${pkgdir}/opt/hc/lib/core + install -d -m 755 opt/hc/lib/core/display_zenoss.sh ${pkgdir}/opt/hc/lib/core/display_zenoss.sh +} diff --git a/build/linux/ARCH/hc-linux-platform/.install b/build/linux/ARCH/hc-linux-platform/.install new file mode 100644 index 0000000..07bdf5d --- /dev/null +++ b/build/linux/ARCH/hc-linux-platform/.install @@ -0,0 +1,33 @@ +# -- post-install -- +post_install() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-install script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-install script" +} + +# -- post-remove -- +post_remove() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-uninstall script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-uninstall script" +} diff --git a/build/linux/ARCH/hc-linux-platform/PKGBUILD b/build/linux/ARCH/hc-linux-platform/PKGBUILD new file mode 100644 index 0000000..6fce20b --- /dev/null +++ b/build/linux/ARCH/hc-linux-platform/PKGBUILD @@ -0,0 +1,73 @@ +_pkgname="check_health" +pkgname="hc-linux-platform" +pkgver="%BUILD_DATE%" +pkgrel=1 +pkgdesc="The KUDOS Health Checker (HC) for UNIX (platform plugins)" +arch=("any") +url="https://github.com/patvdv/${_pkgname}" +license=('GPL3') +makedepends=('git') +depends=('hc-linux') +source=("${_pkgname}::git+${url}.git#branch=master") +install=".install" +sha256sums=('SKIP') + +package() { + cd "${srcdir}/${_pkgname}" + install -d -m 755 ${pkgdir}/opt/hc/lib + install -d -m 755 ${pkgdir}/opt/hc/lib/platform + install -d -m 755 ${pkgdir}/opt/hc/lib/platform/linux + install -D -m 755 opt/hc/lib/platform/linux/check_linux_burp_backup.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_burp_backup.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_burp_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_burp_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_es_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_es_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_file_age.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_file_age.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_file_change.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_file_change.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_fs_mounts.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_fs_mounts.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_fs_usage.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_fs_usage.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_httpd_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_httpd_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_mysqld_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_mysqld_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_named_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_named_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_ntp_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_ntp_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_postfix_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_postfix_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_samba_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_samba_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_shorewall_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_shorewall_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_sshd_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_sshd_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_winbind_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_winbind_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_hpasmcli.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_hpasmcli.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_hpacucli.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_hpacucli.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_hplog.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_hplog.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_hpssacli.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_hpssacli.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_process_limits.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_process_limits.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_root_crontab.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_root_crontab.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_sg_cluster_config.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_sg_cluster_config.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_sg_cluster_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_sg_cluster_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_sg_package_config.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_sg_package_config.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_sg_package_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_sg_package_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_sg_qs_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_sg_qs_status.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_vz_ct_counters.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_vz_ct_counters.sh + install -D -m 755 opt/hc/lib/platform/linux/check_linux_vz_ct_status.sh ${pkgdir}/opt/hc/lib/platform/linux/check_linux_vz_ct_status.sh + install -d -m 755 ${pkgdir}/etc/opt/hc + install -D -m 644 etc/opt/hc/check_linux_burp_backup.conf.dist ${pkgdir}/etc/opt/hc/check_linux_burp_backup.conf.dist + install -D -m 644 etc/opt/hc/check_linux_es_status.conf.dist ${pkgdir}/etc/opt/hc/check_linux_es_status.conf.dist + install -D -m 644 etc/opt/hc/check_linux_file_age.conf.dist ${pkgdir}/etc/opt/hc/check_linux_file_age.conf.dist + install -D -m 644 etc/opt/hc/check_linux_file_change.conf.dist ${pkgdir}/etc/opt/hc/check_linux_file_change.conf.dist + install -D -m 644 etc/opt/hc/check_linux_fs_usage.conf.dist ${pkgdir}/etc/opt/hc/check_linux_fs_usage.conf.dist + install -D -m 644 etc/opt/hc/check_linux_hpasmcli.conf.dist ${pkgdir}/etc/opt/hc/check_linux_hpasmcli.conf.dist + install -D -m 644 etc/opt/hc/check_linux_hpacucli.conf.dist ${pkgdir}/etc/opt/hc/check_linux_hpacucli.conf.dist + install -D -m 644 etc/opt/hc/check_linux_hplog.conf.dist ${pkgdir}/etc/opt/hc/check_linux_hplog.conf.dist + install -D -m 644 etc/opt/hc/check_linux_hpssacli.conf.dist ${pkgdir}/etc/opt/hc/check_linux_hpssacli.conf.dist + install -D -m 644 etc/opt/hc/check_linux_mysqld_status.conf.dist ${pkgdir}/etc/opt/hc/check_linux_mysqld_status.conf.dist + install -D -m 644 etc/opt/hc/check_linux_ntp_status.conf.dist ${pkgdir}/etc/opt/hc/check_linux_ntp_status.conf.dist + install -D -m 644 etc/opt/hc/check_linux_process_limits.conf.dist ${pkgdir}/etc/opt/hc/check_linux_process_limits.conf.dist + install -D -m 644 etc/opt/hc/check_linux_root_crontab.conf.dist ${pkgdir}/etc/opt/hc/check_linux_root_crontab.conf.dist + install -D -m 644 etc/opt/hc/check_linux_sg_cluster_config.conf.dist ${pkgdir}/etc/opt/hc/check_linux_sg_cluster_config.conf.dist + install -D -m 644 etc/opt/hc/check_linux_sg_cluster_status.conf.dist ${pkgdir}/etc/opt/hc/check_linux_sg_cluster_status.conf.dist + install -D -m 644 etc/opt/hc/check_linux_sg_package_config.conf.dist ${pkgdir}/etc/opt/hc/check_linux_sg_package_config.conf.dist + install -D -m 644 etc/opt/hc/check_linux_sg_package_status.conf.dist ${pkgdir}/etc/opt/hc/check_linux_sg_package_status.conf.dist + install -D -m 644 etc/opt/hc/check_linux_vz_ct_counters.conf.dist ${pkgdir}/etc/opt/hc/check_linux_vz_ct_counters.conf.dist + install -D -m 644 etc/opt/hc/check_linux_vz_ct_status.conf.dist ${pkgdir}/etc/opt/hc/check_linux_vz_ct_status.conf.dist + install -d -m 755 ${pkgdir}/etc/opt/hc/core + install -d -m 755 ${pkgdir}/etc/opt/hc/core/templates + install -D -m 644 etc/opt/hc/core/templates/mail_body.tpl-check_linux_fs_mounts_options ${pkgdir}/etc/opt/hc/core/templates + install -D -m 644 etc/opt/hc/core/templates/mail_body.tpl-check_linux_root_crontab ${pkgdir}/etc/opt/hc/core/templates +} diff --git a/build/linux/ARCH/hc-linux/.install b/build/linux/ARCH/hc-linux/.install index d4063cb..c99fce2 100644 --- a/build/linux/ARCH/hc-linux/.install +++ b/build/linux/ARCH/hc-linux/.install @@ -43,7 +43,7 @@ post_install() { echo "INFO: finished post-install script" } -# -- post-install -- +# -- post-remove -- post_remove() { # ------------------------- CONFIGURATION starts here ------------------------- # location of the HC scripts diff --git a/build/linux/ARCH/hc-linux/PKGBUILD b/build/linux/ARCH/hc-linux/PKGBUILD index 02a9950..caaa33b 100644 --- a/build/linux/ARCH/hc-linux/PKGBUILD +++ b/build/linux/ARCH/hc-linux/PKGBUILD @@ -12,28 +12,28 @@ install=".install" sha256sums=('SKIP') package() { - cd "${srcdir}/${_pkgname}" - install -d -m 755 ${pkgdir}/opt/hc - install -d -m 755 ${pkgdir}/opt/hc/bin - install -Dm 755 opt/hc/bin/check_health.sh ${pkgdir}/opt/hc/bin - install -d -m 755 ${pkgdir}/opt/hc/lib - install -d -m 755 ${pkgdir}/opt/hc/lib/core - install -Dm 755 opt/hc/lib/core/include_core.sh ${pkgdir}/opt/hc/lib/core - install -Dm 755 opt/hc/lib/core/include_data.sh ${pkgdir}/opt/hc/lib/core - install -Dm 755 opt/hc/lib/core/include_os.sh ${pkgdir}/opt/hc/lib/core - install -Dm 755 opt/hc/lib/core/notify_mail.sh ${pkgdir}/opt/hc/lib/core - install -Dm 755 opt/hc/lib/core/report_std.sh ${pkgdir}/opt/hc/lib/core - install -d -m 755 ${pkgdir}/etc/opt/hc - install -Dm 644 etc/opt/hc/check_host.conf.dist ${pkgdir}/etc/opt/hc - install -d -m 755 ${pkgdir}/etc/opt/hc/core - install -Dm 644 etc/opt/hc/core/check_health.conf.dist ${pkgdir}/etc/opt/hc/core - install -d -m 755 ${pkgdir}/etc/opt/hc/core/providers - install -d -m 755 ${pkgdir}/etc/opt/hc/core/templates - install -Dm 644 etc/opt/hc/core/templates/mail_info.tpl ${pkgdir}/etc/opt/hc/core/templates - install -Dm 644 etc/opt/hc/core/templates/mail_header.tpl ${pkgdir}/etc/opt/hc/core/templates - install -Dm 644 etc/opt/hc/core/templates/mail_body.tpl ${pkgdir}/etc/opt/hc/core/templates - install -Dm 644 etc/opt/hc/core/templates/mail_footer.tpl ${pkgdir}/etc/opt/hc/core/templates - install -d -m 755 ${pkgdir}/var/opt/hc - install -d -m 755 ${pkgdir}/etc/logrotate.d - install -Dm 644 etc/logrotate.d/check_health ${pkgdir}/etc/logrotate.d/check_health + cd "${srcdir}/${_pkgname}" + install -d -m 755 ${pkgdir}/opt/hc + install -d -m 755 ${pkgdir}/opt/hc/bin + install -D -m 755 opt/hc/bin/check_health.sh ${pkgdir}/opt/hc/bin + install -d -m 755 ${pkgdir}/opt/hc/lib + install -d -m 755 ${pkgdir}/opt/hc/lib/core + install -D -m 755 opt/hc/lib/core/include_core.sh ${pkgdir}/opt/hc/lib/core + install -D -m 755 opt/hc/lib/core/include_data.sh ${pkgdir}/opt/hc/lib/core + install -D -m 755 opt/hc/lib/core/include_os.sh ${pkgdir}/opt/hc/lib/core + install -D -m 755 opt/hc/lib/core/notify_mail.sh ${pkgdir}/opt/hc/lib/core + install -D -m 755 opt/hc/lib/core/report_std.sh ${pkgdir}/opt/hc/lib/core + install -d -m 755 ${pkgdir}/etc/opt/hc + install -D -m 644 etc/opt/hc/check_host.conf.dist ${pkgdir}/etc/opt/hc + install -d -m 755 ${pkgdir}/etc/opt/hc/core + install -D -m 644 etc/opt/hc/core/check_health.conf.dist ${pkgdir}/etc/opt/hc/core + install -d -m 755 ${pkgdir}/etc/opt/hc/core/providers + install -d -m 755 ${pkgdir}/etc/opt/hc/core/templates + install -D -m 644 etc/opt/hc/core/templates/mail_info.tpl ${pkgdir}/etc/opt/hc/core/templates + install -D -m 644 etc/opt/hc/core/templates/mail_header.tpl ${pkgdir}/etc/opt/hc/core/templates + install -D -m 644 etc/opt/hc/core/templates/mail_body.tpl ${pkgdir}/etc/opt/hc/core/templates + install -D -m 644 etc/opt/hc/core/templates/mail_footer.tpl ${pkgdir}/etc/opt/hc/core/templates + install -d -m 755 ${pkgdir}/var/opt/hc + install -d -m 755 ${pkgdir}/etc/logrotate.d + install -D -m 644 etc/logrotate.d/check_health ${pkgdir}/etc/logrotate.d/check_health } diff --git a/build/linux/ARCH/hc-notify-eif/.install b/build/linux/ARCH/hc-notify-eif/.install new file mode 100644 index 0000000..07bdf5d --- /dev/null +++ b/build/linux/ARCH/hc-notify-eif/.install @@ -0,0 +1,33 @@ +# -- post-install -- +post_install() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-install script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-install script" +} + +# -- post-remove -- +post_remove() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-uninstall script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-uninstall script" +} diff --git a/build/linux/ARCH/hc-notify-eif/PKGBUILD b/build/linux/ARCH/hc-notify-eif/PKGBUILD new file mode 100644 index 0000000..7b97cc5 --- /dev/null +++ b/build/linux/ARCH/hc-notify-eif/PKGBUILD @@ -0,0 +1,24 @@ +_pkgname="check_health" +pkgname="hc-notify-eif" +pkgver="%BUILD_DATE%" +pkgrel=1 +pkgdesc="The KUDOS Health Checker (HC) for UNIX (EIF notify core plugin)" +arch=("any") +url="https://github.com/patvdv/${_pkgname}" +license=('GPL3') +makedepends=('git') +depends=('hc-linux') +source=("${_pkgname}::git+${url}.git#branch=master") +install=".install" +sha256sums=('SKIP') + +package() { + cd "${srcdir}/${_pkgname}" + install -d -m 755 ${pkgdir}/opt/hc/lib + install -d -m 755 ${pkgdir}/opt/hc/lib/core + install -d -m 755 opt/hc/lib/core/notify_eif.sh ${pkgdir}/opt/hc/lib/core/notify_eif.sh + install -d -m 755 ${pkgdir}/etc/opt/hc + install -d -m 755 ${pkgdir}/etc/opt/hc/core/providers + install -d -m 755 ${pkgdir}/etc/opt/hc/core/providers + install -d -m 644 etc/opt/hc/core/providers/notify_eif.conf.dist ${pkgdir}/etc/opt/hc/core/providers/notify_eif.conf.dist +} diff --git a/build/linux/ARCH/hc-notify-sms/.install b/build/linux/ARCH/hc-notify-sms/.install new file mode 100644 index 0000000..07bdf5d --- /dev/null +++ b/build/linux/ARCH/hc-notify-sms/.install @@ -0,0 +1,33 @@ +# -- post-install -- +post_install() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-install script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-install script" +} + +# -- post-remove -- +post_remove() { + # ------------------------- CONFIGURATION starts here ------------------------- + # location of check_health.sh + HC_BIN="/opt/hc/bin/check_health.sh" + PATH="$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin" + # ------------------------- CONFIGURATION ends here --------------------------- + echo "INFO: starting post-uninstall script ..." + # refresh symbolic FPATH links + if [[ -x ${HC_BIN} ]] + then + ${HC_BIN} --fix-symlinks + (( $? == 0 )) || echo "WARN: updating symlinks failed" + fi + echo "INFO: finished post-uninstall script" +} diff --git a/build/linux/ARCH/hc-notify-sms/PKGBUILD b/build/linux/ARCH/hc-notify-sms/PKGBUILD new file mode 100644 index 0000000..b00dbda --- /dev/null +++ b/build/linux/ARCH/hc-notify-sms/PKGBUILD @@ -0,0 +1,24 @@ +_pkgname="check_health" +pkgname="hc-notify-sms" +pkgver="%BUILD_DATE%" +pkgrel=1 +pkgdesc="The KUDOS Health Checker (HC) for UNIX (SMS notify core plugin)" +arch=("any") +url="https://github.com/patvdv/${_pkgname}" +license=('GPL3') +makedepends=('git') +depends=('hc-linux') +source=("${_pkgname}::git+${url}.git#branch=master") +install=".install" +sha256sums=('SKIP') + +package() { + cd "${srcdir}/${_pkgname}" + install -d -m 755 ${pkgdir}/opt/hc/lib + install -d -m 755 ${pkgdir}/opt/hc/lib/core + install -d -m 755 opt/hc/lib/core/notify_sms.sh ${pkgdir}/opt/hc/lib/core/notify_sms.sh + install -d -m 755 ${pkgdir}/etc/opt/hc + install -d -m 755 ${pkgdir}/etc/opt/hc/core + install -d -m 755 ${pkgdir}/etc/opt/hc/core/providers + install -d -m 644 etc/opt/hc/core/providers/notify_sms.conf.dist ${pkgdir}/etc/opt/hc/core/providers/notify_sms.conf.dist +} diff --git a/build/linux/DEBIAN/hc-display-init/control b/build/linux/DEBIAN/hc-display-init/control index 699d4cd..6d8033d 100644 --- a/build/linux/DEBIAN/hc-display-init/control +++ b/build/linux/DEBIAN/hc-display-init/control @@ -7,4 +7,4 @@ Installed-Size: 50 Depends: hc-linux Section: tools Priority: extra -Description: The KUDOS Health Checker (HC) for UNIX (INIT display core plugin). +Description: The KUDOS Health Checker (HC) for UNIX (init display core plugin). diff --git a/build/linux/DEBIAN/hc-display-terse/control b/build/linux/DEBIAN/hc-display-terse/control index b9249f8..677bfe4 100644 --- a/build/linux/DEBIAN/hc-display-terse/control +++ b/build/linux/DEBIAN/hc-display-terse/control @@ -7,4 +7,4 @@ Installed-Size: 50 Depends: hc-linux Section: tools Priority: extra -Description: The KUDOS Health Checker (HC) for UNIX (Terse display core plugin). +Description: The KUDOS Health Checker (HC) for UNIX (terse display core plugin). diff --git a/build/linux/SPECS/hc-notify-sms.spec b/build/linux/SPECS/hc-notify-sms.spec index dcfa256..8073e58 100644 --- a/build/linux/SPECS/hc-notify-sms.spec +++ b/build/linux/SPECS/hc-notify-sms.spec @@ -28,7 +28,7 @@ install -d -m 755 $RPM_BUILD_ROOT/opt/hc/lib install -d -m 755 $RPM_BUILD_ROOT/opt/hc/lib/core cp ../SOURCES/opt/hc/lib/core/notify_sms.sh $RPM_BUILD_ROOT/opt/hc/lib/core/notify_sms.sh install -d -m 755 $RPM_BUILD_ROOT/etc/opt/hc -install -d -m 755 $RPM_BUILD_ROOT/etc/opt/hc/core/providers +install -d -m 755 $RPM_BUILD_ROOT/etc/opt/hc/core install -d -m 755 $RPM_BUILD_ROOT/etc/opt/hc/core/providers cp ../SOURCES/etc/opt/hc/core/providers/notify_sms.conf.dist $RPM_BUILD_ROOT/etc/opt/hc/core/providers/notify_sms.conf.dist