-
Notifications
You must be signed in to change notification settings - Fork 1
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 #476 from antonfischl1980/www-apps/Thruk-3.20.2
[ bump-ebuilds ] www-apps/Thruk-3.20.2
- Loading branch information
Showing
2 changed files
with
95 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
DIST Thruk-3.14.2.tar.gz 25163279 BLAKE2B b49058ea95da4ca8f567806bae06b54cfe848f36b6fef7ee993a01a973e2ed3468937808a7958fd1da51621d7eeeef0f333304e421aeccfaf9a9984a1bb5f21d SHA512 674467d02c1039eb04eda2646bf8ce54a04c537302f1d85d040851c57b5a2bdf60518ee95b05462e63e21f63c1591452b4534ad619fed70f7e017e766e293f2b | ||
DIST Thruk-3.16.tar.gz 25244082 BLAKE2B a0d805c76827e93f4ff3e08443ea2f2ba6998ff45bc6e833ea977b2b88cfae14c62d2d84f3e258e97aef3862a75e34952b7f8a225671e0e27c679920d71fe815 SHA512 0f4410c1a0c0e4865a1f32e825e0fc7235290d19ec15ea3fb64ba6a0364bd91e890939e9b61a61c3e4f540823842a775609a2cab15bea001f6a12eec2298d186 | ||
DIST Thruk-3.18.tar.gz 27717800 BLAKE2B e74d56e3cbf292a50d526869720caaa503faa5e6fdd28a7733dc828e4ff00a61ee18a8cd5c3ad0074f67fefe8921cb620461c4cb51cf7b4c4da1786083142fa0 SHA512 8b3c88c9c9c22b7b8e0fb183e16d57a97923e91ad75a1720cac13fbc7d1b781078023bf19e696717b36510e9772bbb24d1a67d3ccef749154600a6b64eeea269 | ||
DIST Thruk-3.20.2.tar.gz 28303321 BLAKE2B 01027aa6822fdc87acc45a27bc8ff4b08437fa2c444623f32777503b3c3fed38eb794b8dfa0cbedeee998ddf5c3d9e6dbdca827dc3b40ec87f901ff8da8a8313 SHA512 1509af40fa719efa0c19849dfd55cc4673d8a35accf64913bad8171c368090e58a2e3d150121bf5c94168e50cfcf312a3e485bf1f211f6375d526387e6bb4f96 | ||
DIST Thruk-3.20.tar.gz 28286182 BLAKE2B 7fb0e4bc1ed3d167348ce0d5eceabac0971577ed7be4ac821f3b9b5377fbf9e8b2f762b0cde3df6bc148c9f9448162dd2a915af7d2cf735f4e7b925d5a30a352 SHA512 2c9c96e6fc18f162540720644da8b728b4eeac9e1f290510ba179092c9e862eee8110681102b62e0f9e1c407efce278a033ef8af001d7429d48b8b5c68146963 |
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,94 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
DESCRIPTION="multibackend monitoring webinterface for Nagios/Icinga and others" | ||
HOMEPAGE="https://www.thruk.org" | ||
SRC_URI="https://github.com/sni/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
LICENSE="GPL-1" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
|
||
PATCHES=( | ||
"${FILESDIR}/01-threads.patch" | ||
"${FILESDIR}/3.0-themes-precompiled.patch" | ||
) | ||
|
||
DEPEND=" | ||
dev-perl/Cpanel-JSON-XS | ||
dev-perl/Date-Calc | ||
dev-perl/forks | ||
dev-perl/thruk_libs | ||
www-apache/mod_fcgid | ||
www-client/phantomjs-bin | ||
www-servers/apache | ||
" | ||
RDEPEND="${DEPEND}" | ||
BDEPEND=" | ||
dev-perl/Module-Install | ||
" | ||
|
||
src_configure() { | ||
econf \ | ||
--sysconfdir="${EPREFIX}"/etc/"${PN}" \ | ||
--datadir="${EPREFIX}"/usr/share/"${PN}" \ | ||
--localstatedir="${EPREFIX}"/var/lib/"${PN}" \ | ||
--with-initdir="${EPREFIX}"/usr/share/"${PN}"/etc/init.d/ \ | ||
--with-tempdir="${EPREFIX}"/usr/share/"${PN}"/tmp/ \ | ||
--with-logrotatedir="${EPREFIX}"/etc/logrotate.d \ | ||
--with-logdir="${EPREFIX}"/var/log/"${PN}" \ | ||
--with-thruk-user=apache \ | ||
--with-thruk-group=apache | ||
} | ||
|
||
src_install() { | ||
default | ||
|
||
mv "${D}/etc/Thruk/thruk_local.conf" "${D}/etc/Thruk/thruk_local.conf.example" | ||
|
||
insinto /etc/apache2/vhosts.d/ | ||
newins "${FILESDIR}/apache_thruk.conf.example" thruk.conf.example | ||
|
||
insinto /etc/logrotate.d/ | ||
newins "${FILESDIR}/thruk-base.lograte" thruk-base | ||
|
||
keepdir /var/log/"${PN}" | ||
fowners apache:apache /var/log/Thruk/ | ||
keepdir /usr/share/"${PN}"/var/ | ||
|
||
exeinto /usr/share/"${PN}"/bin/ | ||
doexe script/*.pl | ||
doexe script/*.sh | ||
doexe script/[cdegnrt]* | ||
|
||
keepdir /usr/share/Thruk/tmp | ||
fowners apache:apache /usr/share/Thruk/tmp | ||
|
||
keepdir /etc/Thruk/panorama/ | ||
fowners apache:apache /etc/Thruk/panorama/ | ||
keepdir /var/lib/Thruk/ | ||
fowners apache:apache /var/lib/Thruk/ | ||
keepdir /var/lib/Thruk/sessions/ | ||
fowners apache:apache /var/lib/Thruk/sessions/ | ||
keepdir /var/lib/Thruk/users/ | ||
fowners apache:apache /var/lib/Thruk/users/ | ||
} | ||
|
||
pkg_preinst(){ | ||
if [ "$(grep -L '^APACHE2_OPTS=.*-DFCGID' "${EROOT}/etc/conf.d/apache2"|wc -l)" -gt 0 ]; then | ||
# Probably the first time we are installed | ||
# set some more sane default settings in /etc/conf.d/apache2 | ||
|
||
mkdir -p "${D}/etc/conf.d/" | ||
sed -E ' | ||
s#^(APACHE2_OPTS\s*=\s*")([^"]+)(")#\1\2 -D FCGID\3# | ||
' < "${EROOT}/etc/conf.d/apache2" > "${D}/etc/conf.d/apache2" | ||
fi | ||
|
||
if [ ! -r "${EROOT}/etc/Thruk/thruk_local.conf" ]; then | ||
# Probably the first time we are installed | ||
cp "${D}/etc/Thruk/thruk_local.conf.example" "${D}/etc/Thruk/thruk_local.conf" | ||
fi | ||
} |