parent
428f2bee3e
commit
b1d9a14db9
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
Wed, 06 Mar 2019 05:08:41 +0000
|
Wed, 06 Mar 2019 09:08:49 +0000
|
||||||
|
@ -1 +1 @@
|
|||||||
Wed, 06 Mar 2019 05:08:41 +0000
|
Wed, 06 Mar 2019 09:08:49 +0000
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,14 @@
|
|||||||
|
DEFINED_PHASES=compile configure install postinst preinst prepare prerm setup
|
||||||
|
DEPEND=snmp? ( net-analyzer/net-snmp ) ldap? ( net-nds/openldap =dev-libs/cyrus-sasl-2* net-libs/gnutls ) mysql? ( >=virtual/mysql-5.0.3 ) sqlite? ( >=dev-db/sqlite-3.3.5 ) postgres? ( >=dev-db/postgresql-8.1:* ) oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 ) xmpp? ( dev-libs/iksemel ) libxml2? ( dev-libs/libxml2 ) curl? ( net-misc/curl ) openipmi? ( sys-libs/openipmi ) ssh? ( net-libs/libssh2 ) java? ( virtual/jdk:* ) odbc? ( dev-db/unixODBC ) server? ( sys-libs/zlib ) proxy? ( sys-libs/zlib ) ssl? ( dev-libs/openssl:=[-bindist] ) static? ( ldap? ( net-nds/openldap[static-libs] =dev-libs/cyrus-sasl-2*[static-libs] net-libs/gnutls[static-libs] ) mysql? ( >=virtual/mysql-5.0.3[static-libs] ) sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] ) postgres? ( >=dev-db/postgresql-8.1:*[static-libs] ) libxml2? ( dev-libs/libxml2[static-libs] ) curl? ( net-misc/curl[static-libs] ) ssh? ( net-libs/libssh2[static-libs] ) odbc? ( dev-db/unixODBC[static-libs] ) ) virtual/pkgconfig java? ( >=dev-java/java-config-2.2.0-r3 ) virtual/pkgconfig
|
||||||
|
DESCRIPTION=ZABBIX is software for monitoring of your applications, network and servers
|
||||||
|
EAPI=6
|
||||||
|
HOMEPAGE=https://www.zabbix.com/
|
||||||
|
IUSE=+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static elibc_FreeBSD java
|
||||||
|
KEYWORDS=~amd64 ~x86
|
||||||
|
LICENSE=GPL-2
|
||||||
|
RDEPEND=snmp? ( net-analyzer/net-snmp ) ldap? ( net-nds/openldap =dev-libs/cyrus-sasl-2* net-libs/gnutls ) mysql? ( >=virtual/mysql-5.0.3 ) sqlite? ( >=dev-db/sqlite-3.3.5 ) postgres? ( >=dev-db/postgresql-8.1:* ) oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 ) xmpp? ( dev-libs/iksemel ) libxml2? ( dev-libs/libxml2 ) curl? ( net-misc/curl ) openipmi? ( sys-libs/openipmi ) ssh? ( net-libs/libssh2 ) java? ( virtual/jdk:* ) odbc? ( dev-db/unixODBC ) server? ( sys-libs/zlib ) proxy? ( sys-libs/zlib ) ssl? ( dev-libs/openssl:=[-bindist] ) proxy? ( net-analyzer/fping[suid] ) server? ( net-analyzer/fping[suid] app-admin/webapp-config dev-libs/libpcre dev-libs/libevent ) java? ( >=virtual/jre-1.4 dev-java/slf4j-api ) frontend? ( >=dev-lang/php-5.4.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode] || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] ) mysql? ( dev-lang/php[mysqli] ) odbc? ( dev-lang/php[odbc] ) oracle? ( dev-lang/php[oci8-instant-client] ) postgres? ( dev-lang/php[postgres] ) sqlite? ( dev-lang/php[sqlite] ) media-libs/gd[png] app-admin/webapp-config ) java? ( >=dev-java/java-config-2.2.0-r3 )
|
||||||
|
REQUIRED_USE=|| ( agent frontend proxy server ) proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) ) server? ( ^^ ( mysql oracle postgres odbc ) ) static? ( !oracle !snmp )
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=https://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/4.0.5/zabbix-4.0.5.tar.gz
|
||||||
|
_eclasses_=desktop b1d22ac8bdd4679ab79c71aca235009d epatch a1bf4756dba418a7238f3be0cb010c54 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 6e6c2737b59a4b982de6fb3ecefd87f8 flag-o-matic a09389deba2c0a7108b581e02c7cecbf java-pkg-opt-2 77d2e22d0de7640f817d20e861c0ff3f java-utils-2 99ea75c9f08fd38989951c554dfa56ea ltprune 2729691420b6deeda2a90b1f1183fb55 multilib b2f01ad412baf81650c23fcf0975fa33 preserve-libs ef207dc62baddfddfd39a164d9797648 systemd 71fd8d2065d102753fb9e4d20eaf3e9f toolchain-funcs f164325a2cdb5b3ea39311d483988861 user 8bd74731cafdcdad8f7a63637302e073 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf versionator 2352c3fc97241f6a02042773c8287748 webapp 16783e418aca3ffa461d68310bf7ab12
|
||||||
|
_md5_=a0e895f29751fb3d65437259cc7c758e
|
Binary file not shown.
@ -0,0 +1,13 @@
|
|||||||
|
DEFINED_PHASES=compile install postinst postrm preinst prepare setup test unpack
|
||||||
|
DEPEND=app-arch/xz-utils dev-lang/perl
|
||||||
|
DESCRIPTION=Linux system headers
|
||||||
|
EAPI=6
|
||||||
|
HOMEPAGE=https://www.kernel.org/ https://www.gentoo.org/
|
||||||
|
IUSE=headers-only
|
||||||
|
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux
|
||||||
|
LICENSE=GPL-2
|
||||||
|
RESTRICT=binchecks strip
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=mirror://gentoo/gentoo-headers-base-5.0.tar.xz https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-base-5.0.tar.xz mirror://gentoo/gentoo-headers-5.0-1.tar.xz https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-5.0-1.tar.xz
|
||||||
|
_eclasses_=eapi7-ver 756b3f27d8e46131d5cf3c51bd876446 estack 43ddf5aaffa7a8d0482df54d25a66a1f kernel-2 b2fdd65b5edb72d87dedaa82df19553c multilib b2f01ad412baf81650c23fcf0975fa33 python-any-r1 4900ae970f827a22d33d41bd8b8f9ace python-utils-r1 12114a2a9aab35b93efc037a196b3234 toolchain-funcs f164325a2cdb5b3ea39311d483988861
|
||||||
|
_md5_=bb0c368ac4cfa198a1fbf11e51cf048b
|
@ -1 +1 @@
|
|||||||
Wed, 06 Mar 2019 05:08:41 +0000
|
Wed, 06 Mar 2019 09:08:49 +0000
|
||||||
|
@ -1 +1 @@
|
|||||||
Wed Mar 6 05:08:41 UTC 2019
|
Wed Mar 6 09:08:49 UTC 2019
|
||||||
|
@ -1 +1 @@
|
|||||||
Wed, 06 Mar 2019 05:30:01 +0000
|
Wed, 06 Mar 2019 09:30:01 +0000
|
||||||
|
@ -1 +1 @@
|
|||||||
341485b8198fa38731c76a4a36957e49abf0e452 1551834907 2019-03-06T01:15:07+00:00
|
f367d7068bf27111199ad548d98a4141822e71ec 1551858707 2019-03-06T07:51:47+00:00
|
||||||
|
@ -1 +1 @@
|
|||||||
1551848701 Wed 06 Mar 2019 05:05:01 AM UTC
|
1551863102 Wed 06 Mar 2019 09:05:02 AM UTC
|
||||||
|
@ -1 +1 @@
|
|||||||
Wed, 06 Mar 2019 05:08:41 +0000
|
Wed, 06 Mar 2019 09:08:49 +0000
|
||||||
|
Binary file not shown.
@ -0,0 +1,333 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
# needed to make webapp-config dep optional
|
||||||
|
WEBAPP_OPTIONAL="yes"
|
||||||
|
inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
|
||||||
|
HOMEPAGE="https://www.zabbix.com/"
|
||||||
|
MY_P=${P/_/}
|
||||||
|
MY_PV=${PV/_/}
|
||||||
|
SRC_URI="https://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/${PV}/${P}.tar.gz"
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
WEBAPP_MANUAL_SLOT="yes"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
|
||||||
|
REQUIRED_USE="|| ( agent frontend proxy server )
|
||||||
|
proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
|
||||||
|
server? ( ^^ ( mysql oracle postgres odbc ) )
|
||||||
|
static? ( !oracle !snmp )"
|
||||||
|
|
||||||
|
COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
|
||||||
|
ldap? (
|
||||||
|
net-nds/openldap
|
||||||
|
=dev-libs/cyrus-sasl-2*
|
||||||
|
net-libs/gnutls
|
||||||
|
)
|
||||||
|
mysql? ( >=virtual/mysql-5.0.3 )
|
||||||
|
sqlite? ( >=dev-db/sqlite-3.3.5 )
|
||||||
|
postgres? ( >=dev-db/postgresql-8.1:* )
|
||||||
|
oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
|
||||||
|
xmpp? ( dev-libs/iksemel )
|
||||||
|
libxml2? ( dev-libs/libxml2 )
|
||||||
|
curl? ( net-misc/curl )
|
||||||
|
openipmi? ( sys-libs/openipmi )
|
||||||
|
ssh? ( net-libs/libssh2 )
|
||||||
|
java? ( virtual/jdk:* )
|
||||||
|
odbc? ( dev-db/unixODBC )
|
||||||
|
server? ( sys-libs/zlib )
|
||||||
|
proxy? ( sys-libs/zlib )
|
||||||
|
ssl? ( dev-libs/openssl:=[-bindist] )"
|
||||||
|
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
proxy? ( net-analyzer/fping[suid] )
|
||||||
|
server? ( net-analyzer/fping[suid]
|
||||||
|
app-admin/webapp-config
|
||||||
|
dev-libs/libpcre
|
||||||
|
dev-libs/libevent )
|
||||||
|
java? (
|
||||||
|
>=virtual/jre-1.4
|
||||||
|
dev-java/slf4j-api
|
||||||
|
)
|
||||||
|
frontend? (
|
||||||
|
>=dev-lang/php-5.4.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
|
||||||
|
|| ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
|
||||||
|
mysql? ( dev-lang/php[mysqli] )
|
||||||
|
odbc? ( dev-lang/php[odbc] )
|
||||||
|
oracle? ( dev-lang/php[oci8-instant-client] )
|
||||||
|
postgres? ( dev-lang/php[postgres] )
|
||||||
|
sqlite? ( dev-lang/php[sqlite] )
|
||||||
|
media-libs/gd[png]
|
||||||
|
app-admin/webapp-config )"
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
static? (
|
||||||
|
ldap? (
|
||||||
|
net-nds/openldap[static-libs]
|
||||||
|
=dev-libs/cyrus-sasl-2*[static-libs]
|
||||||
|
net-libs/gnutls[static-libs]
|
||||||
|
)
|
||||||
|
mysql? ( >=virtual/mysql-5.0.3[static-libs] )
|
||||||
|
sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
|
||||||
|
postgres? ( >=dev-db/postgresql-8.1:*[static-libs] )
|
||||||
|
libxml2? ( dev-libs/libxml2[static-libs] )
|
||||||
|
curl? ( net-misc/curl[static-libs] )
|
||||||
|
ssh? ( net-libs/libssh2[static-libs] )
|
||||||
|
odbc? ( dev-db/unixODBC[static-libs] )
|
||||||
|
)
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
ZABBIXJAVA_BASE="opt/zabbix_java"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use oracle; then
|
||||||
|
if [ -z "${ORACLE_HOME}" ]; then
|
||||||
|
eerror
|
||||||
|
eerror "The environment variable ORACLE_HOME must be set"
|
||||||
|
eerror "and point to the correct location."
|
||||||
|
eerror "It looks like you don't have Oracle installed."
|
||||||
|
eerror
|
||||||
|
die "Environment variable ORACLE_HOME is not set"
|
||||||
|
fi
|
||||||
|
if has_version 'dev-db/oracle-instantclient-basic'; then
|
||||||
|
ewarn
|
||||||
|
ewarn "Please ensure you have a full install of the Oracle client."
|
||||||
|
ewarn "dev-db/oracle-instantclient* is NOT sufficient."
|
||||||
|
ewarn
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use frontend; then
|
||||||
|
webapp_pkg_setup
|
||||||
|
fi
|
||||||
|
|
||||||
|
enewgroup zabbix
|
||||||
|
enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
|
||||||
|
}
|
||||||
|
|
||||||
|
java_prepare() {
|
||||||
|
cd "${S}/src/zabbix_java/lib"
|
||||||
|
rm -v *.jar || die
|
||||||
|
|
||||||
|
java-pkg_jar-from slf4j-api
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
eapply -p1 "${FILESDIR}/4.0/patches/zbx401-modulepathfix.patch"
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
$(use_enable server) \
|
||||||
|
$(use_enable proxy) \
|
||||||
|
$(use_enable agent) \
|
||||||
|
$(use_enable ipv6) \
|
||||||
|
$(use_enable static) \
|
||||||
|
$(use_enable java) \
|
||||||
|
$(use_with ldap) \
|
||||||
|
$(use_with snmp net-snmp) \
|
||||||
|
$(use_with mysql) \
|
||||||
|
$(use_with postgres postgresql) \
|
||||||
|
$(use_with oracle) \
|
||||||
|
$(use_with sqlite sqlite3) \
|
||||||
|
$(use_with xmpp jabber) \
|
||||||
|
$(use_with curl libcurl) \
|
||||||
|
$(use_with openipmi openipmi) \
|
||||||
|
$(use_with ssh ssh2) \
|
||||||
|
$(use_with libxml2) \
|
||||||
|
$(use_with odbc unixodbc) \
|
||||||
|
$(use_with ssl openssl) \
|
||||||
|
|| die "econf failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
|
||||||
|
emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodir \
|
||||||
|
/etc/zabbix \
|
||||||
|
/var/lib/zabbix \
|
||||||
|
/var/lib/zabbix/home \
|
||||||
|
/var/lib/zabbix/scripts \
|
||||||
|
/var/lib/zabbix/alertscripts \
|
||||||
|
/var/lib/zabbix/externalscripts \
|
||||||
|
/var/log/zabbix
|
||||||
|
|
||||||
|
keepdir \
|
||||||
|
/etc/zabbix \
|
||||||
|
/var/lib/zabbix \
|
||||||
|
/var/lib/zabbix/home \
|
||||||
|
/var/lib/zabbix/scripts \
|
||||||
|
/var/lib/zabbix/alertscripts \
|
||||||
|
/var/lib/zabbix/externalscripts \
|
||||||
|
/var/log/zabbix
|
||||||
|
|
||||||
|
if use server; then
|
||||||
|
insinto /etc/zabbix
|
||||||
|
doins "${FILESDIR}/3.0"/zabbix_server.conf
|
||||||
|
doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
|
||||||
|
dosbin src/zabbix_server/zabbix_server
|
||||||
|
fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
|
||||||
|
fperms 0640 /etc/zabbix/zabbix_server.conf
|
||||||
|
dodir /usr/share/zabbix
|
||||||
|
/bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
|
||||||
|
systemd_dounit "${FILESDIR}/zabbix-server.service"
|
||||||
|
systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use proxy; then
|
||||||
|
doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
|
||||||
|
dosbin src/zabbix_proxy/zabbix_proxy
|
||||||
|
insinto /etc/zabbix
|
||||||
|
doins "${FILESDIR}/3.0"/zabbix_proxy.conf
|
||||||
|
dodir /usr/share/zabbix
|
||||||
|
/bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
|
||||||
|
systemd_dounit "${FILESDIR}/zabbix-proxy.service"
|
||||||
|
systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use agent; then
|
||||||
|
insinto /etc/zabbix
|
||||||
|
doins "${FILESDIR}/3.0"/zabbix_agentd.conf
|
||||||
|
doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
|
||||||
|
dosbin src/zabbix_agent/zabbix_agentd
|
||||||
|
dobin \
|
||||||
|
src/zabbix_sender/zabbix_sender \
|
||||||
|
src/zabbix_get/zabbix_get
|
||||||
|
fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
|
||||||
|
fperms 0640 /etc/zabbix/zabbix_agentd.conf
|
||||||
|
systemd_dounit "${FILESDIR}/zabbix-agentd.service"
|
||||||
|
systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
fowners zabbix:zabbix \
|
||||||
|
/etc/zabbix \
|
||||||
|
/var/lib/zabbix \
|
||||||
|
/var/lib/zabbix/home \
|
||||||
|
/var/lib/zabbix/scripts \
|
||||||
|
/var/lib/zabbix/alertscripts \
|
||||||
|
/var/lib/zabbix/externalscripts \
|
||||||
|
/var/log/zabbix
|
||||||
|
fperms 0750 \
|
||||||
|
/etc/zabbix \
|
||||||
|
/var/lib/zabbix \
|
||||||
|
/var/lib/zabbix/home \
|
||||||
|
/var/lib/zabbix/scripts \
|
||||||
|
/var/lib/zabbix/alertscripts \
|
||||||
|
/var/lib/zabbix/externalscripts \
|
||||||
|
/var/log/zabbix
|
||||||
|
|
||||||
|
dodoc README INSTALL NEWS ChangeLog \
|
||||||
|
conf/zabbix_agentd.conf \
|
||||||
|
conf/zabbix_proxy.conf \
|
||||||
|
conf/zabbix_agentd/userparameter_examples.conf \
|
||||||
|
conf/zabbix_agentd/userparameter_mysql.conf \
|
||||||
|
conf/zabbix_server.conf
|
||||||
|
|
||||||
|
if use frontend; then
|
||||||
|
webapp_src_preinst
|
||||||
|
cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
|
||||||
|
webapp_configfile \
|
||||||
|
"${MY_HTDOCSDIR}"/include/db.inc.php \
|
||||||
|
"${MY_HTDOCSDIR}"/include/config.inc.php
|
||||||
|
webapp_src_install
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use java; then
|
||||||
|
dodir \
|
||||||
|
/${ZABBIXJAVA_BASE} \
|
||||||
|
/${ZABBIXJAVA_BASE}/bin \
|
||||||
|
/${ZABBIXJAVA_BASE}/lib
|
||||||
|
keepdir /${ZABBIXJAVA_BASE}
|
||||||
|
exeinto /${ZABBIXJAVA_BASE}/bin
|
||||||
|
doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
|
||||||
|
exeinto /${ZABBIXJAVA_BASE}/lib
|
||||||
|
doexe \
|
||||||
|
src/zabbix_java/lib/logback-classic-0.9.27.jar \
|
||||||
|
src/zabbix_java/lib/logback-console.xml \
|
||||||
|
src/zabbix_java/lib/logback-core-0.9.27.jar \
|
||||||
|
src/zabbix_java/lib/logback.xml \
|
||||||
|
src/zabbix_java/lib/android-json-4.3_r3.1.jar \
|
||||||
|
src/zabbix_java/lib/slf4j-api-1.6.1.jar
|
||||||
|
fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
|
||||||
|
doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
|
||||||
|
doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if use server || use proxy ; then
|
||||||
|
elog
|
||||||
|
elog "You may need to configure your database for Zabbix,"
|
||||||
|
elog "if you have not already done so. "
|
||||||
|
elog
|
||||||
|
|
||||||
|
zabbix_homedir=$(egethome zabbix)
|
||||||
|
if [ -n "${zabbix_homedir}" ] && \
|
||||||
|
[ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
|
||||||
|
ewarn
|
||||||
|
ewarn "The user 'zabbix' should have his homedir changed"
|
||||||
|
ewarn "to /var/lib/zabbix/home if you want to use"
|
||||||
|
ewarn "custom alert scripts."
|
||||||
|
ewarn
|
||||||
|
ewarn "A real homedir might be needed for configfiles"
|
||||||
|
ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
|
||||||
|
ewarn "using sendxmpp for Jabber alerts)."
|
||||||
|
ewarn
|
||||||
|
ewarn "To change the homedir use:"
|
||||||
|
ewarn " usermod -d /var/lib/zabbix/home zabbix"
|
||||||
|
ewarn
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use server; then
|
||||||
|
elog
|
||||||
|
elog "For distributed monitoring you have to run:"
|
||||||
|
elog
|
||||||
|
elog "zabbix_server -n <nodeid>"
|
||||||
|
elog
|
||||||
|
elog "This will convert database data for use with Node ID"
|
||||||
|
elog "and also adds a local node."
|
||||||
|
elog
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog "--"
|
||||||
|
elog
|
||||||
|
elog "You may need to add these lines to /etc/services:"
|
||||||
|
elog
|
||||||
|
elog "zabbix-agent 10050/tcp Zabbix Agent"
|
||||||
|
elog "zabbix-agent 10050/udp Zabbix Agent"
|
||||||
|
elog "zabbix-trapper 10051/tcp Zabbix Trapper"
|
||||||
|
elog "zabbix-trapper 10051/udp Zabbix Trapper"
|
||||||
|
elog
|
||||||
|
|
||||||
|
if use server || use proxy ; then
|
||||||
|
# check for fping
|
||||||
|
fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
|
||||||
|
case "${fping_perms}" in
|
||||||
|
4[157][157][157])
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
ewarn
|
||||||
|
ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
|
||||||
|
ewarn "you have to make /usr/sbin/fping setuid root and executable"
|
||||||
|
ewarn "by everyone. Run the following command to fix it:"
|
||||||
|
ewarn
|
||||||
|
ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
|
||||||
|
ewarn
|
||||||
|
ewarn "Please be aware that this might impose a security risk,"
|
||||||
|
ewarn "depending on the code quality of fping."
|
||||||
|
ewarn
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
ETYPE="headers"
|
||||||
|
H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa"
|
||||||
|
inherit kernel-2
|
||||||
|
detect_version
|
||||||
|
|
||||||
|
PATCH_VER="1"
|
||||||
|
SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz
|
||||||
|
https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-base-${PV}.tar.xz
|
||||||
|
${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
|
||||||
|
${PATCH_VER:+https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
|
||||||
|
"
|
||||||
|
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
DEPEND="app-arch/xz-utils
|
||||||
|
dev-lang/perl"
|
||||||
|
RDEPEND=""
|
||||||
|
|
||||||
|
S=${WORKDIR}/gentoo-headers-base-${PV}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ${A}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
[[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}"/${PV}/*.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
kernel-2_src_install
|
||||||
|
|
||||||
|
# hrm, build system sucks
|
||||||
|
find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
|
||||||
|
find "${ED}" -depth -type d -delete 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# Make sure no uapi/ include paths are used by accident.
|
||||||
|
egrep -r \
|
||||||
|
-e '# *include.*["<]uapi/' \
|
||||||
|
"${D}" && die "#include uapi/xxx detected"
|
||||||
|
|
||||||
|
einfo "Possible unescaped attribute/type usage"
|
||||||
|
egrep -r \
|
||||||
|
-e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
|
||||||
|
-e '\<([us](8|16|32|64))\>' \
|
||||||
|
.
|
||||||
|
|
||||||
|
einfo "Missing linux/types.h include"
|
||||||
|
egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
|
||||||
|
|
||||||
|
emake ARCH=$(tc-arch-kernel) headers_check
|
||||||
|
}
|
Loading…
Reference in new issue