-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from bodsch/feature/icinga-2.13.8
update for icinga-2.13.8
- Loading branch information
Showing
7 changed files
with
346 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: Make Repository | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- debug | ||
- feature/** | ||
schedule: | ||
- cron: "20 23 * * 0" | ||
|
||
jobs: | ||
pkgbuild: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Makepkg Build and Check | ||
id: makepkg | ||
uses: Pinghigh/[email protected] | ||
with: | ||
makepkgArgs: "--skippgpcheck --noconfirm" | ||
|
||
- name: Print Package Files | ||
run: | | ||
echo "Successfully created the following package archive" | ||
echo "Package: ${{ steps.makepkg.outputs.pkgfile0 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/v*.tar.gz | ||
/*.pkg.tar.xz | ||
/*.pkg.tar.zst | ||
/*.log | ||
/src/ | ||
/pkg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,52 +2,76 @@ | |
# Contributor: Malte Rabenseifner <[email protected]> | ||
# Contributor: bebehei <[email protected]> | ||
|
||
pkgname='icinga2' | ||
pkgver=2.11.0 | ||
pkgrel=1 | ||
pkgname=icinga2 | ||
pkgver=2.13.8 | ||
pkgrel=2 | ||
|
||
pkgdesc="An open source host, service and network monitoring program" | ||
license=('GPL') | ||
arch=('i686' 'x86_64') | ||
url="http://www.icinga.org" | ||
depends=('boost-libs' 'libedit' 'libsystemd' 'openssl' 'yajl') | ||
depends=('boost-libs' 'libedit' 'openssl' 'yajl' 'bison' 'flex') | ||
optdepends=('monitoring-plugins: plugins needed for icinga checks' | ||
'libmariadbclient: for MySQL support' | ||
'postgresql-libs: for PostgreSQL support') | ||
makedepends=('boost' 'cmake' 'libmariadbclient' 'postgresql-libs' 'systemd') | ||
|
||
makedepends=('boost' 'cmake' 'libmariadbclient' 'postgresql-libs') | ||
|
||
replaces=('icinga2-common') | ||
backup=(etc/default/icinga2 | ||
etc/icinga2/features-available/api.conf | ||
etc/icinga2/features-available/checker.conf | ||
etc/icinga2/features-available/command.conf | ||
etc/icinga2/features-available/compatlog.conf | ||
etc/icinga2/features-available/debuglog.conf | ||
etc/icinga2/features-available/elasticsearch.conf | ||
etc/icinga2/features-available/gelf.conf | ||
etc/icinga2/features-available/graphite.conf | ||
etc/icinga2/features-available/ido-mysql.conf | ||
etc/icinga2/features-available/ido-pgsql.conf | ||
etc/icinga2/features-available/influxdb.conf | ||
etc/icinga2/features-available/livestatus.conf | ||
etc/icinga2/features-available/mainlog.conf | ||
etc/icinga2/features-available/notification.conf | ||
etc/icinga2/features-available/opentsdb.conf | ||
etc/icinga2/features-available/perfdata.conf | ||
etc/icinga2/features-available/statusdata.conf | ||
etc/icinga2/features-available/syslog.conf | ||
etc/icinga2/constants.conf | ||
etc/icinga2/icinga2.conf | ||
etc/icinga2/scripts/mail-host-notification.sh | ||
etc/icinga2/scripts/mail-service-notification.sh | ||
etc/icinga2/zones.conf | ||
etc/logrotate.d/icinga2) | ||
|
||
backup=( | ||
etc/conf.d/icinga2 | ||
etc/init.d/icinga2 | ||
etc/icinga2/features-available/api.conf | ||
etc/icinga2/features-available/checker.conf | ||
etc/icinga2/features-available/command.conf | ||
etc/icinga2/features-available/compatlog.conf | ||
etc/icinga2/features-available/debuglog.conf | ||
etc/icinga2/features-available/elasticsearch.conf | ||
etc/icinga2/features-available/gelf.conf | ||
etc/icinga2/features-available/graphite.conf | ||
etc/icinga2/features-available/icingadb.conf | ||
etc/icinga2/features-available/ido-mysql.conf | ||
etc/icinga2/features-available/ido-pgsql.conf | ||
etc/icinga2/features-available/influxdb.conf | ||
etc/icinga2/features-available/influxdb2.conf | ||
etc/icinga2/features-available/livestatus.conf | ||
etc/icinga2/features-available/mainlog.conf | ||
etc/icinga2/features-available/notification.conf | ||
etc/icinga2/features-available/opentsdb.conf | ||
etc/icinga2/features-available/perfdata.conf | ||
etc/icinga2/features-available/statusdata.conf | ||
etc/icinga2/features-available/syslog.conf | ||
etc/icinga2/constants.conf | ||
etc/icinga2/icinga2.conf | ||
etc/icinga2/scripts/mail-host-notification.sh | ||
etc/icinga2/scripts/mail-service-notification.sh | ||
etc/icinga2/zones.conf | ||
etc/logrotate.d/icinga2 | ||
) | ||
install='icinga2.install' | ||
changelog="icinga2.changelog" | ||
source=("https://github.com/Icinga/$pkgname/archive/v$pkgver.tar.gz" | ||
"$pkgname.tmpfiles" | ||
"$pkgname.sysusers") | ||
sha256sums=('f1702a598aed458cce44668526db8d655a68f270e408f10b859eaac175ccdb51' | ||
'1302b333f49ead14f8808a379535971501d3a0c1ba02a7bf7b4406b7d27c754c' | ||
'2f946a33ea50a3c4400a81acd778e6411ffe5e2257a98004288b84a64f382810') | ||
|
||
source=( | ||
"${pkgname}-${pkgver}-${CARCH}.tar.gz::https://github.com/Icinga/$pkgname/archive/v$pkgver.tar.gz" | ||
"$pkgname.tmpfiles" | ||
"$pkgname.sysusers" | ||
"openrc_$pkgname" | ||
) | ||
|
||
sha512sum=( | ||
"c16ee7d4876a712da19aaf8c2e85093bd3a4e60bdb29471a33d1e5df3df43c0e9b3afab59f5bbf2b99d06f6c501d52a2759a4b7783f877f3a5c713f43fe683a5" | ||
"51811add3f83df870f4b18ad97a6a9ccaf5be7ab4c0614b0d85cfccf5dc3e3debd7df42ecfe08c00a1b4d25e5b4326214f6a9c079fbf2886fc9e5a4c3b8ebbba" | ||
"875843000bf40cedffadee9ec0691d88173610befd653da06ea3828e2b1c5c36ddcb308bdba053f72c9311f8f023be044abb9dc41a712381cdf62e0e8434dd2e" | ||
"17fd0f63d9fe6f7e947d5f7485c2115dacdc9f2208931d162cb1b4882e33e027ce51d5c67241154c347d4d87f8c67d5f641cfa8d1f687de51d4225fab761cea1" | ||
) | ||
|
||
sha256sums=( | ||
'0b1974eff321141ccc7b6b7bad52070a81d8679674570ebdd2525e6f8443a4e2' | ||
'1302b333f49ead14f8808a379535971501d3a0c1ba02a7bf7b4406b7d27c754c' | ||
'2f946a33ea50a3c4400a81acd778e6411ffe5e2257a98004288b84a64f382810' | ||
'1495238a2248fe2690ce7b186c96b68a28868b76276d2d37e5ae2f1e25cd6dcd' | ||
) | ||
|
||
build() { | ||
mkdir -p "$srcdir/$pkgname-$pkgver/build" | ||
|
@@ -60,9 +84,11 @@ build() { | |
-DCMAKE_INSTALL_SBINDIR=/usr/bin \ | ||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \ | ||
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \ | ||
-DICINGA2_SYSCONFIGFILE=/etc/default/icinga2 \ | ||
-DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2 \ | ||
-DICINGA2_PLUGINDIR=/usr/lib/monitoring-plugins \ | ||
-DUSE_SYSTEMD=ON \ | ||
-DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=OFF \ | ||
-DICINGA2_VERSION=$pkgver-$pkgrel \ | ||
-DUSE_SYSTEMD=OFF \ | ||
-DLOGROTATE_HAS_SU=OFF | ||
|
||
make | ||
|
@@ -88,6 +114,9 @@ package() { | |
install -Dm644 "$srcdir/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" | ||
install -Dm644 "$srcdir/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" | ||
|
||
# install openrc start-stop script | ||
sudo install -Dm755 "$srcdir/../openrc_$pkgname" "/etc/init.d/$pkgname" | ||
|
||
# install syntax highlighting for vim and nano | ||
cd "$srcdir/$pkgname-$pkgver" | ||
install -Dm644 tools/syntax/vim/ftdetect/icinga2.vim "$pkgdir/usr/share/vim/vimfiles/ftdetect/icinga2.vim" | ||
|
@@ -100,6 +129,7 @@ package() { | |
rm "$pkgdir/etc/icinga2/features-enabled/checker.conf" | ||
rm "$pkgdir/etc/icinga2/features-enabled/mainlog.conf" | ||
rm "$pkgdir/etc/icinga2/features-enabled/notification.conf" | ||
|
||
# ensure that nothing it left in features enables. make sure to keep the list | ||
# above in sync with post_install. rmdir && mkdir seems to be the easiest way | ||
# to check if the directory was actually empty. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.