parent
02d8feb38e
commit
72d4deaaa8
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST TeamSpeak3-Client-linux_amd64-3.2.1.run 76215644 BLAKE2B 81e3aa54f88182ff79113d994a2ef4d9e6d3ba38078879a19f21bca6637cf1d2f7bf7cf66a15edf957bc25413760f67d343db7fbbb8aa678e1aa55e8ae48d75c SHA512 b77d77daf8806bd48580abcc4721a6dbe5e30f55ed0ececc57215405d6607c3457d7ab628d4cb607d78c6f206f7093745842692176ca199bd95578f8b6fa81a8
|
||||
DIST TeamSpeak3-Client-linux_x86-3.2.1.run 75958520 BLAKE2B 2cdc92e740c3951d434f9545da670892b5f16c27fcf1c20b5fb9feb0d2bdbebabda08f2c8216b12a02a4248e685a006ef8f711ec7eb9f27e18550dc8f0e5422b SHA512 761210985b0c2f6674ae7da5bceb57783f7bba0827799fd291e951716ac7490aa3ee88d4030b985b67d5397353b459bceef42e6b41467513440ffeeaaa265d54
|
||||
DIST TeamSpeak3-Client-linux_amd64-3.2.2.run 76227220 BLAKE2B 86a50064e01a496dd68559a3fa92003bf674cb59e714a45e6d12b2e6c2b33988b6ee7b76f474b35f1c08ae17fe430e8882c271e1751381df74c4dd5f7d552c42 SHA512 3edc003d721494e914fa74ae3d2666c795c5beb7feae7cc3b379d06447acb3e0941d9c5e2495e8bec8c1c1f5e25b5b31767ea214d198b2e320fc6a7925fdc541
|
||||
DIST TeamSpeak3-Client-linux_x86-3.2.2.run 75976893 BLAKE2B 0d0396f2fdd0d61c5e1fc1daec9978e6f4ebb82511b80c97bbc86d97bcbf3237e17064666212d8ba2650dc173cef8774acc38027241247c233c14e41ed697807 SHA512 3ca1a8602a9df3ee7669d3f226a44354a92ef5b3f52b720ac7a91dbd50331c609a46a1ae83d39c82dea8f6fc0a5f32245525ab601f7fd329521478ef29909027
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
Sun, 23 Sep 2018 06:08:29 +0000
|
||||
Sun, 23 Sep 2018 09:38:28 +0000
|
||||
|
@ -1 +1 @@
|
||||
Sun, 23 Sep 2018 06:08:29 +0000
|
||||
Sun, 23 Sep 2018 09:38:28 +0000
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=install postinst postrm prepare unpack
|
||||
DESCRIPTION=A client software for quality voice communication via the internet
|
||||
EAPI=6
|
||||
HOMEPAGE=https://www.teamspeak.com/
|
||||
IUSE=alsa pulseaudio
|
||||
KEYWORDS=-* ~amd64 ~x86
|
||||
LICENSE=teamspeak3
|
||||
RDEPEND=app-arch/snappy:= <dev-libs/openssl-1.1:0= dev-libs/quazip dev-qt/qtcore:5 dev-qt/qtgui:5[accessibility,dbus,xcb] dev-qt/qtnetwork:5 dev-qt/qtsql:5[sqlite] dev-qt/qtsvg:5 dev-qt/qtwebchannel:5 dev-qt/qtwebengine:5[geolocation,widgets] dev-qt/qtwidgets:5 net-libs/libsrtp:= sys-libs/libcxx[libcxxabi] sys-libs/zlib:= virtual/udev alsa? ( media-libs/alsa-lib ) pulseaudio? ( media-sound/pulseaudio )
|
||||
REQUIRED_USE=|| ( alsa pulseaudio )
|
||||
RESTRICT=mirror strip
|
||||
SLOT=0
|
||||
SRC_URI=amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/3.2.1/TeamSpeak3-Client-linux_amd64-3.2.1.run ) x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/3.2.1/TeamSpeak3-Client-linux_x86-3.2.1.run )
|
||||
_eclasses_=desktop b1d22ac8bdd4679ab79c71aca235009d unpacker ee2f5086cd7e7b747b061f58db14d89e xdg-utils 89bb9f083a2590d9b447fd0b78a96186
|
||||
_md5_=4e4e2197e4f9c394863bf34219a92f9b
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=install postinst postrm prepare unpack
|
||||
DESCRIPTION=A client software for quality voice communication via the internet
|
||||
EAPI=6
|
||||
HOMEPAGE=https://www.teamspeak.com/
|
||||
IUSE=alsa pulseaudio
|
||||
KEYWORDS=-* ~amd64 ~x86
|
||||
LICENSE=teamspeak3
|
||||
RDEPEND=app-arch/snappy:0/1 <dev-libs/openssl-1.1:0 dev-libs/quazip dev-qt/qtcore:5 dev-qt/qtgui:5[accessibility,dbus,xcb] dev-qt/qtnetwork:5 dev-qt/qtsql:5[sqlite] dev-qt/qtsvg:5 dev-qt/qtwebchannel:5 dev-qt/qtwebengine:5[geolocation,widgets] dev-qt/qtwidgets:5 net-libs/libsrtp:0 sys-libs/libcxx[libcxxabi] sys-libs/zlib:0/1 virtual/udev alsa? ( media-libs/alsa-lib ) pulseaudio? ( media-sound/pulseaudio )
|
||||
REQUIRED_USE=|| ( alsa pulseaudio )
|
||||
RESTRICT=mirror strip
|
||||
SLOT=0
|
||||
SRC_URI=amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/3.2.2/TeamSpeak3-Client-linux_amd64-3.2.2.run ) x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/3.2.2/TeamSpeak3-Client-linux_x86-3.2.2.run )
|
||||
_eclasses_=desktop b1d22ac8bdd4679ab79c71aca235009d unpacker ee2f5086cd7e7b747b061f58db14d89e xdg-utils 89bb9f083a2590d9b447fd0b78a96186
|
||||
_md5_=edb7dd2ce2b2650e32e1bffd31125729
|
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:* ) 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 ) 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:*[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:* ) 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 ) ssl? ( dev-libs/openssl:=[-bindist] ) proxy? ( net-analyzer/fping ) server? ( net-analyzer/fping app-admin/webapp-config ) java? ( >=virtual/jre-1.4 dev-java/slf4j-api ) frontend? ( >=dev-lang/php-5.3.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 sqlite odbc ) ) static? ( !oracle !snmp )
|
||||
SLOT=0
|
||||
SRC_URI=https://prdownloads.sourceforge.net/zabbix/zabbix-3.0.22.tar.gz
|
||||
_eclasses_=desktop b1d22ac8bdd4679ab79c71aca235009d epatch a1bf4756dba418a7238f3be0cb010c54 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 6e6c2737b59a4b982de6fb3ecefd87f8 flag-o-matic 55aaa148741116aa54ad0d80e361818e java-pkg-opt-2 77d2e22d0de7640f817d20e861c0ff3f java-utils-2 0ee72667014428e01a01df2345244cf3 ltprune 08f9e1d9ee0af8f5d9a7854efbcd8c0e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 systemd 47c677ae1d7b69031f11f630ac09f0d1 toolchain-funcs e4a9360924c5ce9f52e61342cde58512 user 8bc2845510e2109af75e3eeac607ec81 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf versionator 2352c3fc97241f6a02042773c8287748 webapp 6ae2395d7f341093c36057cb4f69101a
|
||||
_md5_=dcbe574e092a74d99b0d6a54fa0c5857
|
@ -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:* ) 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 ) 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:*[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:* ) 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 ) ssl? ( dev-libs/openssl:=[-bindist] ) proxy? ( net-analyzer/fping[suid] ) server? ( net-analyzer/fping[suid] app-admin/webapp-config dev-libs/libevent ) java? ( >=virtual/jre-1.4 dev-java/slf4j-api ) frontend? ( >=dev-lang/php-5.3.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://prdownloads.sourceforge.net/zabbix/zabbix-3.4.14.tar.gz
|
||||
_eclasses_=desktop b1d22ac8bdd4679ab79c71aca235009d epatch a1bf4756dba418a7238f3be0cb010c54 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 6e6c2737b59a4b982de6fb3ecefd87f8 flag-o-matic 55aaa148741116aa54ad0d80e361818e java-pkg-opt-2 77d2e22d0de7640f817d20e861c0ff3f java-utils-2 0ee72667014428e01a01df2345244cf3 ltprune 08f9e1d9ee0af8f5d9a7854efbcd8c0e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 systemd 47c677ae1d7b69031f11f630ac09f0d1 toolchain-funcs e4a9360924c5ce9f52e61342cde58512 user 8bc2845510e2109af75e3eeac607ec81 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf versionator 2352c3fc97241f6a02042773c8287748 webapp 6ae2395d7f341093c36057cb4f69101a
|
||||
_md5_=a6732ca4a7e3096b55dc6a361ee97ff8
|
@ -1 +1 @@
|
||||
Sun, 23 Sep 2018 06:08:29 +0000
|
||||
Sun, 23 Sep 2018 09:38:28 +0000
|
||||
|
@ -1 +1 @@
|
||||
Sun Sep 23 06:08:29 UTC 2018
|
||||
Sun Sep 23 09:38:28 UTC 2018
|
||||
|
@ -1 +1 @@
|
||||
Sun, 23 Sep 2018 06:30:01 +0000
|
||||
Sun, 23 Sep 2018 10:00:01 +0000
|
||||
|
@ -1 +1 @@
|
||||
467e51993c34f0d1794baea5ecca4a298db3439d 1537682648 2018-09-23T06:04:08+00:00
|
||||
a3275e3d96000ecc0b9dc5bed0fa8fc8d680e3a4 1537692341 2018-09-23T08:45:41+00:00
|
||||
|
@ -1 +1 @@
|
||||
1537682701 Sun 23 Sep 2018 06:05:01 AM UTC
|
||||
1537695301 Sun 23 Sep 2018 09:35:01 AM UTC
|
||||
|
@ -1 +1 @@
|
||||
Sun, 23 Sep 2018 06:08:29 +0000
|
||||
Sun, 23 Sep 2018 09:38:28 +0000
|
||||
|
Binary file not shown.
@ -0,0 +1,331 @@
|
||||
# Copyright 1999-2018 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://prdownloads.sourceforge.net/zabbix/${MY_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 sqlite 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:* )
|
||||
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 )
|
||||
ssl? ( dev-libs/openssl:=[-bindist] )"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
proxy? ( net-analyzer/fping )
|
||||
server? ( net-analyzer/fping
|
||||
app-admin/webapp-config )
|
||||
java? (
|
||||
>=virtual/jre-1.4
|
||||
dev-java/slf4j-api
|
||||
)
|
||||
frontend? (
|
||||
>=dev-lang/php-5.3.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:*[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() {
|
||||
default
|
||||
}
|
||||
|
||||
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
|
||||
exeinto /${ZABBIXJAVA_BASE}/
|
||||
doexe \
|
||||
src/zabbix_java/settings.sh \
|
||||
src/zabbix_java/startup.sh \
|
||||
src/zabbix_java/shutdown.sh
|
||||
fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
|
||||
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
|
||||
}
|
@ -0,0 +1,329 @@
|
||||
# Copyright 1999-2018 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://prdownloads.sourceforge.net/zabbix/${MY_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:* )
|
||||
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 )
|
||||
ssl? ( dev-libs/openssl:=[-bindist] )"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
proxy? ( net-analyzer/fping[suid] )
|
||||
server? ( net-analyzer/fping[suid]
|
||||
app-admin/webapp-config
|
||||
dev-libs/libevent )
|
||||
java? (
|
||||
>=virtual/jre-1.4
|
||||
dev-java/slf4j-api
|
||||
)
|
||||
frontend? (
|
||||
>=dev-lang/php-5.3.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:*[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() {
|
||||
default
|
||||
}
|
||||
|
||||
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.
Loading…
Reference in new issue