Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/zabbix/
Date: Thu, 25 Jan 2018 12:02:14
Message-Id: 1516881521.89fa5af394bce43648732b55ed17b33a37f26d60.patrick@gentoo
1 commit: 89fa5af394bce43648732b55ed17b33a37f26d60
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 25 11:58:41 2018 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 25 11:58:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89fa5af3
7
8 net-analyzer/zabbix: Remove old
9
10 Package-Manager: Portage-2.3.20, Repoman-2.3.6
11
12 net-analyzer/zabbix/Manifest | 22 --
13 net-analyzer/zabbix/zabbix-2.2.17.ebuild | 341 -------------------------------
14 net-analyzer/zabbix/zabbix-2.2.18.ebuild | 341 -------------------------------
15 net-analyzer/zabbix/zabbix-2.2.19.ebuild | 341 -------------------------------
16 net-analyzer/zabbix/zabbix-2.2.20.ebuild | 341 -------------------------------
17 net-analyzer/zabbix/zabbix-3.0.10.ebuild | 331 ------------------------------
18 net-analyzer/zabbix/zabbix-3.0.11.ebuild | 331 ------------------------------
19 net-analyzer/zabbix/zabbix-3.0.12.ebuild | 331 ------------------------------
20 net-analyzer/zabbix/zabbix-3.0.13.ebuild | 331 ------------------------------
21 net-analyzer/zabbix/zabbix-3.0.6.ebuild | 331 ------------------------------
22 net-analyzer/zabbix/zabbix-3.0.8.ebuild | 331 ------------------------------
23 net-analyzer/zabbix/zabbix-3.0.9.ebuild | 331 ------------------------------
24 net-analyzer/zabbix/zabbix-3.2.2.ebuild | 328 -----------------------------
25 net-analyzer/zabbix/zabbix-3.2.3.ebuild | 328 -----------------------------
26 net-analyzer/zabbix/zabbix-3.2.4.ebuild | 328 -----------------------------
27 net-analyzer/zabbix/zabbix-3.2.5.ebuild | 328 -----------------------------
28 net-analyzer/zabbix/zabbix-3.2.6.ebuild | 328 -----------------------------
29 net-analyzer/zabbix/zabbix-3.2.7.ebuild | 328 -----------------------------
30 net-analyzer/zabbix/zabbix-3.2.8.ebuild | 328 -----------------------------
31 net-analyzer/zabbix/zabbix-3.4.1.ebuild | 329 -----------------------------
32 net-analyzer/zabbix/zabbix-3.4.2.ebuild | 329 -----------------------------
33 net-analyzer/zabbix/zabbix-3.4.3.ebuild | 329 -----------------------------
34 net-analyzer/zabbix/zabbix-3.4.4.ebuild | 329 -----------------------------
35 23 files changed, 7315 deletions(-)
36
37 diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest
38 index 291a8f50503..bef20354f37 100644
39 --- a/net-analyzer/zabbix/Manifest
40 +++ b/net-analyzer/zabbix/Manifest
41 @@ -1,29 +1,7 @@
42 DIST zabbix-2.2.16.tar.gz 15498413 BLAKE2B fc634ca5124525b3143bb736b53b5040c8f1fd45ecfcf3cc2bdf7e625d54b0fcfa3690ce5d766e987d320d9ccbf7f430957f532c31f180a0a037334d6eb5b51a SHA512 5d92c17e86608359fff220416d5eed2d4ac10edfe56f4162f4b7660c472cf6f609ba01034d76e5b7164c22d55a1fc5be753f5d0e0ce7ac71d00a6f68dca14afd
43 -DIST zabbix-2.2.17.tar.gz 15494053 BLAKE2B c55ea5a2641838067308a4b93609c2e5b67e3872e51bce91c1d1e3b99fc2a64adfc2200b80544e6034a803af57307508e5d4e19c630a022dc980baeeacbfa004 SHA512 1abd60d05443cdb7b7ecdeca4d0b97414b249fe8be8c3ceaca137722af93e77101151bde59faaac4a3b61b8256bab68b0d1416192d8f72480703575794068a1f
44 -DIST zabbix-2.2.18.tar.gz 15495920 BLAKE2B bf3f452f3110841b4718fd5a7118063f7d143e493c89563c489186ffcf7981dd96a02094938a605403a19d668dfd13e42248850d54b0d945e350ac5aa092584a SHA512 3e24827b2739aefa12e3d189b856d836b85a1fa45928343c08620ce1ef16c664a8ad806d051f5cffed10837a326245dd5617034f83cdd00432b81eb05be40491
45 -DIST zabbix-2.2.19.tar.gz 15497840 BLAKE2B d56946296791948531555663e05135a3ad3576263873e83b4afac33e3069524559ef0a29fd435b8dfc11e72b60f27cfc7279caaf4802b8414203a112e3e4b0ba SHA512 f9a35093cd63fe433ae67a01d526e65387455cc0c82b33d4015ad428991289f711857e089c169fc46fad51697e3a07a2b310026789099e6f42fa88f2f573c560
46 -DIST zabbix-2.2.20.tar.gz 15503661 BLAKE2B 1303daf261694abba39e2ce86f532b09ddb422cf69a3db68c7f43055a891b03e0fa72b26890793867146e3f36b0b0b8ce7eb9faa7bcd217c02d9b8767dcce527 SHA512 ca63237c1eece870c2f54a1c35c5165062d0e875e9aa05ce9654657de59e52a131b2ddc1f94dbfb1e2d3f4e6f202e4d6424ba97de06fa008fc15ff859ab8e0c6
47 DIST zabbix-2.2.21.tar.gz 15489747 BLAKE2B e00fe140977f0ce995497954a15ff647c813c048a706e536a12010a649d3467d6c63343c3c0d11b1900f91f8fcc5bb235f9e4a030362c93ad3c1c31e68699f54 SHA512 29e3cba0663e7160dce5141cc389959571e5e298206baed26209facab206cc4f66611d48d76306a53925a2096db6f0bed1753435ec1be20bd8db53862cb902a4
48 -DIST zabbix-3.0.10.tar.gz 15573988 BLAKE2B 81ab75246bf4a05fa4ee5cf1d6ebdeafe2351fa8f59f979a87c930c06712cd4499f1ae55d8107d0d6ee4b6bb664310901eccea87a3cfb39bb48e8f2c4133c28e SHA512 cb5602a6fdb78f4f5e3b6b0193e707497e8c04a7558da8345e2e9130f3058be670a48d501b36bca87d10a1964188ae81eb6cd83a573499086ce1f2152dfa9936
49 -DIST zabbix-3.0.11.tar.gz 15642949 BLAKE2B e4fea226b551db0e84998d2a1bd3b1c81a799028dda91057257bf2a8ec1351fec2a8565ece8a9db6e502b541dfada65beb1dc7ca08c6307c9c082560b8a163e6 SHA512 880b69677833ed636c866fec731d84540a0269975c767bbcb834ca0bb22b8b881095b80b359e30e965282935650e6533d0e930bb6c21b2f6245d57a0e6e73ec6
50 -DIST zabbix-3.0.12.tar.gz 15647628 BLAKE2B 01a21b0c3779d97428dc355884bd1cd8e0b1ab299aa3ba9d7049db76a8b8ad8b3a87035b8f24b247db4afb205350bb8fae55e3ff9859df6198f427656dfbd283 SHA512 2aea3def2a5a656afde9728c18cc92a201a3d04203f163d3e67c3cb283bb23b94eb3c4d98b1905343080b0740b9670a2efd10f60229f26bb0c9b82c368b3fabd
51 -DIST zabbix-3.0.13.tar.gz 15648338 BLAKE2B cd0a6530d74c0d3b49d034643779ba9d23e85243c0d226d5792d06cc698b85cbc87643035454952be7496ef5a524101106e177851c88912f6519f0f76ddc264d SHA512 824fba8d4a31919af358d6085e366a4d758c7fd12486a40de79595dff628467d1a46fa84d0af287ab06ad22da7dc855c5cce1a44b5033b0981cac0ca02686acc
52 DIST zabbix-3.0.14.tar.gz 15643983 BLAKE2B 129bcde3318c049932ad24d6b20fcd3cdf3a0a0f246aadb81663265eb31550fd5966745486e4e863236801d41e6cefec3bdc82eca024be94bc2437f44b2d81a1 SHA512 b024de610b86bd45fc0be655e8275daf53b1de813e13a1e78cfad149b1191a7f118862646f5ded43938bc489ff0b0f325de36d4b2c076ce6fe768ee4234eb944
53 -DIST zabbix-3.0.6.tar.gz 15513412 BLAKE2B f478c608f5196c98bf7e646d5125047fa6a89ae3339f5e937141d1f9e105ebbb294172e2bec971e046b7c7e5c05dba640655314a1cc8631e83d1b661fd137c2b SHA512 ccffc58f3555bea62011bad272e8a3085d1723d8cb200e00a3e657696104c3fd055b8b963a26d9c726ef45a5381c7f9625498e99b756a3dd97b147d8b7884d1f
54 -DIST zabbix-3.0.8.tar.gz 15514547 BLAKE2B 72c57038e762662605ff850666d6f7bcb417b9ec696fd623cb8d9918171a29d2bcc76d1603808580d9fa94394c4a25e90535eabc8f2e86265a819baaad48dd3c SHA512 9f5fec7f3888f34ad9659a5d34d5fc089efc86a5fcf78f8cabf6704fbf95fd52a8caaab6f4291cb76d15cc2d69c986c95346fbe4fdfdc407c5506f3b8946aa1a
55 -DIST zabbix-3.0.9.tar.gz 15516440 BLAKE2B 4689a1d5ec2fbf5085fceda2bdf2507e46105bcb9fff8e8da9158abd18bf487b56775637837f259e6eda533d4648104c8a856c9b3260f808efae0566e4080d63 SHA512 f34d0fde48e64dfb6bea152ab6c63eb28be66e3647cc781d430b56b13bc91ac9f194ac80d264b2e837f8fceb929e0ebeda0221bf8363eb0a66e53461088a4ef9
56 DIST zabbix-3.2.10.tar.gz 16089723 BLAKE2B c69b8b00781198b8e4845f94e5a42e3910950954bd240703165be15630788f22e486a2ebbd941902eb92b06b42bc7923869f7b885fcc7248508d9e535ad23170 SHA512 6413247ea0f47f410eadd970599dc4a0bfef4202b6f88bcb1636d1fad270a2d5545a90870052af5445a5219dab3b58867c23f3afaddb5d78e200fecbd987e545
57 DIST zabbix-3.2.11.tar.gz 16099820 BLAKE2B 7038679ecc9ae1b6684d65b3dd0019865e587c82e5a3ffe55610c057f8516ebe34978101065ac31628e6fd54077877c447d64cb1d169e0ad7402e727c7e65d76 SHA512 a14e0af4b183c8deb524c8965700c2988c0c131844f7fbc748aa8d1703b9dad73c2cf6d77663799fbd455adf58fdd1ce8dc5fd6404a9269c1a42160ad0e33e6e
58 -DIST zabbix-3.2.2.tar.gz 15915015 BLAKE2B 1cfac6134da5464a1c7e850a62c9cd012496df449f18303177bcc807f9adb4bb812d063a691e41a9b993363510e954f05f82db52ce2998a83d4d981951e75f7f SHA512 1f6cb6344d24ed91c49fa116d6862cfd78caab9cd3297329369dd2df5cf9c83fda67bc9faa1a59f2b605bfeda73a69a3e29653fca320eda1b67f4d0931bfdb9b
59 -DIST zabbix-3.2.3.tar.gz 15922416 BLAKE2B 2f25b47b85332736eeaf2593b0c3ca674d5f777056e34cb2c51d3205e2ff93c2beb7c7e21352e662791a5d26f98000c027f4d8ff5f1b9a4aabd9cf6aff935ca2 SHA512 5a704282765fa66d1aa53ae546d3a49a35050d6830a25a3a9ad64d73f8aff48b31e8d13f37d147c8d6244bb0f2dab21bceb5d022f1c3ffa726c10edc6e7bd1f6
60 -DIST zabbix-3.2.4.tar.gz 15924840 BLAKE2B 95ceba99a7766aeedb0c9acc988875bcbb48927cd5112c4583c3f67c7d12779cb3354f6564f64ee79973b6fc335f7dd4b05d2e663a9197d9e548000e9a1487e2 SHA512 62e532bcf6a5ab82b1f943e28d46d1e64782758a405680d2c1a54e9c1092a340a50987045acbbad2b57439e3c2640d8a11fe1a29a234764859befa6a7fd779d1
61 -DIST zabbix-3.2.5.tar.gz 15931390 BLAKE2B 2059a443e5d93b76006f440a5d0f6a20d6346df76b5bfb1bc3e7293c26762fe3fd2144f84cb76d2982d0212b780c99a1eafbcd498ba8f6a7b4f12a240287ab58 SHA512 313eda7d26d4fe443440ff20f355a51ee0a14d7dbce2aef7ce21f95543588eb69f111dc4b19e17024f82e629bcb8fdf5739dace6f05517aee744f4e68518ea37
62 -DIST zabbix-3.2.6.tar.gz 16008047 BLAKE2B a1230707d749873a55ac384814498bbf5e5eeba9ae7d7c7ddaa2471c17b119cbda6a4b3885745e31e9f4fed0b7d02f5ace76d624093d8ca9e244d52dabab806e SHA512 48e70a7e33ec8c29967f099d27f240b2e8b02554b43a47387d02b5450367efcb0d2f1c60557194f6b1d4a9755d2c9c69a478627e57624521152b1c1ea0264844
63 -DIST zabbix-3.2.7.tar.gz 16016367 BLAKE2B 1e18c46af65c84555f97f3c51f95debb3eeef72709dcdbe514d5c3d10dd626c9229b2ecb61672d2bf3ee966e6b1767b2996ae998531087ff1770a90a253d5ba6 SHA512 f60c82829c076a7f8b9d2f0c7dc91f7b65594ac4dcfaa08b19a61b730d8d21afc161636f793416613a47220535334fb675bb105738b130677c729fc0e31cd3e3
64 -DIST zabbix-3.2.8.tar.gz 16092939 BLAKE2B 05fea67513d7e56b3f75e7fb5a0d39d3bc46789f7d12b46db623300fa5bf438ae0ec39ac2a9da8157e607c619a57471fd457f29b90de2b679fa73fd94844bc42 SHA512 ba4356218c41c7bdf580906d58589ffd71baa357b26ae12f414bfa47592d61a8dc4de900f4ab24377475d5ece3723526eb170d678ea6083f0dce5ca0c4e594da
65 DIST zabbix-3.2.9.tar.gz 16098846 BLAKE2B a8d7ab803cab075889bbaee10806c1f35be42a91c78e1ee62e8fa458987865401d2fb677d4ebf42267e13acb38b8689bb6d232fbc3247ffba3f06f5e8c3cd692 SHA512 e8d82d4cadd8f6d5124de5d1b93f4768086c9543bfea676f321df86a76e001400330ea3650d3c295b25fa76858a205dac49caa97d61af30cc31fac544025d347
66 -DIST zabbix-3.4.1.tar.gz 17010519 BLAKE2B 54d2b576905d6b420fcbd8f31b5bd00d8f4c9c971368d792aa2d4fda3dd5e276454436fa815806cd9789caaedbc1de2a5573f0f6348b6f6c9978401da2e946eb SHA512 e3ce49cbbb6ada1d12fa80ff366b9e819b8d7b8c60474698457f8250682614af0d2e5de6c2f6a9e34ab10bb8fd01eac51d8365489606b6d0aefc103c5780ebce
67 -DIST zabbix-3.4.2.tar.gz 17113290 BLAKE2B d0458a035bf3dec7707eebc40752c31a9e85314c69242fa8b2c935310cbb806f9c449f6e78508fe9b9d36a89eab514edcb6b948991ca3f270b6ada016fefb8f7 SHA512 42feff59e1e1dd5d69a66cc857e9076b9a6f1410b5796a719cb660ea97ccd2544fe87f3cfabc27590cc53a321d24a7977daa320be1fdff31653b3650602dd385
68 -DIST zabbix-3.4.3.tar.gz 17130788 BLAKE2B 9f90242a4c86719e5a76e0057aec6f61481ae9fcd635034634251eb6ba317ab1c180dab7a88e33045429828cf392b57fdc5674d116a46f1a959c2652db77c9fd SHA512 338f4c367d906252ad762ffff60652f6f3d8f0027684e1562fbf26a4628002b72671dd6a2a3547c1681277a9cdef544d671b89edac886e96914a0b3850e639a8
69 -DIST zabbix-3.4.4.tar.gz 17132537 BLAKE2B c91a8248edc9d42c8a924fafa9a38903d8eb1c3f9c7f90dd188f615c0ca06859c8bfe902b3099d18fbd23bf19fb68313e71bf9cc20831debf2af523018aadc06 SHA512 2d9724ded1e3388c24ce9defbbe1ccd4804a925175ae76bc352a86332cfde3a692b4f447d6809a0d8394ffe51ad1a2fa3cff4459e850a6e8f7b1596811c441a2
70 DIST zabbix-3.4.5.tar.gz 17170228 BLAKE2B bd799a3ad25256421bc2a8458019237da17e78d2dd5253485cebbc40df785e550e7cf15fcf8925a225c118e38e9aaad3f7532f909ba3eaff3a175136033ae81a SHA512 e77c8693d687c9f1e3c160f2f41161b5e4ac663f0db69f4bff424da4ba607815ad0148448c6f80a2b9357ad7472016610f4beed173e40c6fcf661874d75c69a4
71
72 diff --git a/net-analyzer/zabbix/zabbix-2.2.17.ebuild b/net-analyzer/zabbix/zabbix-2.2.17.ebuild
73 deleted file mode 100644
74 index 6a201569afd..00000000000
75 --- a/net-analyzer/zabbix/zabbix-2.2.17.ebuild
76 +++ /dev/null
77 @@ -1,341 +0,0 @@
78 -# Copyright 1999-2017 Gentoo Foundation
79 -# Distributed under the terms of the GNU General Public License v2
80 -
81 -EAPI="6"
82 -
83 -# needed to make webapp-config dep optional
84 -WEBAPP_OPTIONAL="yes"
85 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
86 -
87 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
88 -HOMEPAGE="http://www.zabbix.com/"
89 -MY_P=${P/_/}
90 -MY_PV=${PV/_/}
91 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
92 -LICENSE="GPL-2"
93 -SLOT="0"
94 -WEBAPP_MANUAL_SLOT="yes"
95 -KEYWORDS="~amd64 ~x86"
96 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
97 -REQUIRED_USE="|| ( agent frontend proxy server )
98 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
99 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
100 - static? ( !oracle !snmp )"
101 -
102 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
103 - ldap? (
104 - net-nds/openldap
105 - =dev-libs/cyrus-sasl-2*
106 - net-libs/gnutls
107 - )
108 - mysql? ( >=virtual/mysql-5.0.3 )
109 - sqlite? ( >=dev-db/sqlite-3.3.5 )
110 - postgres? ( dev-db/postgresql:* )
111 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
112 - xmpp? ( dev-libs/iksemel )
113 - libxml2? ( dev-libs/libxml2 )
114 - curl? ( net-misc/curl )
115 - openipmi? ( sys-libs/openipmi )
116 - ssh? ( net-libs/libssh2 )
117 - java? ( virtual/jdk:* )
118 - odbc? ( dev-db/unixODBC )"
119 -
120 -RDEPEND="${COMMON_DEPEND}
121 - proxy? ( net-analyzer/fping )
122 - server? ( net-analyzer/fping
123 - app-admin/webapp-config )
124 - java? (
125 - >=virtual/jre-1.4
126 - dev-java/slf4j-api
127 - )
128 - frontend? (
129 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
130 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
131 - mysql? ( dev-lang/php[mysqli] )
132 - odbc? ( dev-lang/php[odbc] )
133 - oracle? ( dev-lang/php[oci8-instant-client] )
134 - postgres? ( dev-lang/php[postgres] )
135 - sqlite? ( dev-lang/php[sqlite] )
136 - media-libs/gd[png]
137 - app-admin/webapp-config )"
138 -DEPEND="${COMMON_DEPEND}
139 - static? (
140 - ldap? (
141 - net-nds/openldap[static-libs]
142 - =dev-libs/cyrus-sasl-2*[static-libs]
143 - net-libs/gnutls[static-libs]
144 - )
145 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
146 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
147 - postgres? ( dev-db/postgresql:*[static-libs] )
148 - libxml2? ( dev-libs/libxml2[static-libs] )
149 - curl? ( net-misc/curl[static-libs] )
150 - ssh? ( net-libs/libssh2[static-libs] )
151 - odbc? ( dev-db/unixODBC[static-libs] )
152 - )
153 - virtual/pkgconfig"
154 -
155 -S=${WORKDIR}/${MY_P}
156 -
157 -ZABBIXJAVA_BASE="opt/zabbix_java"
158 -
159 -pkg_setup() {
160 - if use oracle; then
161 - if [ -z "${ORACLE_HOME}" ]; then
162 - eerror
163 - eerror "The environment variable ORACLE_HOME must be set"
164 - eerror "and point to the correct location."
165 - eerror "It looks like you don't have Oracle installed."
166 - eerror
167 - die "Environment variable ORACLE_HOME is not set"
168 - fi
169 - if has_version 'dev-db/oracle-instantclient-basic'; then
170 - ewarn
171 - ewarn "Please ensure you have a full install of the Oracle client."
172 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
173 - ewarn
174 - fi
175 - fi
176 -
177 - if use frontend; then
178 - webapp_pkg_setup
179 - fi
180 -
181 - enewgroup zabbix
182 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
183 -}
184 -
185 -java_prepare() {
186 - cd "${S}/src/zabbix_java/lib"
187 - rm -v *.jar || die
188 -
189 - java-pkg_jar-from slf4j-api
190 -}
191 -
192 -src_prepare() {
193 - default
194 -}
195 -
196 -src_configure() {
197 - econf \
198 - $(use_enable server) \
199 - $(use_enable proxy) \
200 - $(use_enable agent) \
201 - $(use_enable ipv6) \
202 - $(use_enable static) \
203 - $(use_enable java) \
204 - $(use_with ldap) \
205 - $(use_with snmp net-snmp) \
206 - $(use_with mysql) \
207 - $(use_with postgres postgresql) \
208 - $(use_with oracle) \
209 - $(use_with sqlite sqlite3) \
210 - $(use_with xmpp jabber) \
211 - $(use_with curl libcurl) \
212 - $(use_with openipmi openipmi) \
213 - $(use_with ssh ssh2) \
214 - $(use_with libxml2) \
215 - $(use_with odbc unixodbc) \
216 - || die "econf failed"
217 -}
218 -
219 -src_compile() {
220 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
221 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
222 - fi
223 -}
224 -
225 -src_install() {
226 - dodir \
227 - /etc/zabbix \
228 - /var/lib/zabbix \
229 - /var/lib/zabbix/home \
230 - /var/lib/zabbix/scripts \
231 - /var/lib/zabbix/alertscripts \
232 - /var/lib/zabbix/externalscripts \
233 - /var/log/zabbix
234 -
235 - keepdir \
236 - /etc/zabbix \
237 - /var/lib/zabbix \
238 - /var/lib/zabbix/home \
239 - /var/lib/zabbix/scripts \
240 - /var/lib/zabbix/alertscripts \
241 - /var/lib/zabbix/externalscripts \
242 - /var/log/zabbix
243 -
244 - if use server; then
245 - insinto /etc/zabbix
246 - doins "${FILESDIR}/2.2"/zabbix_server.conf
247 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-server
248 - dosbin src/zabbix_server/zabbix_server
249 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
250 - fperms 0640 /etc/zabbix/zabbix_server.conf
251 - dodir /usr/share/zabbix
252 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
253 - systemd_dounit "${FILESDIR}/zabbix-server.service"
254 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
255 - fi
256 -
257 - if use proxy; then
258 - doinitd \
259 - "${FILESDIR}/2.2"/init.d/zabbix-proxy
260 - dosbin \
261 - src/zabbix_proxy/zabbix_proxy
262 - insinto /etc/zabbix
263 - doins \
264 - "${FILESDIR}/2.2"/zabbix_proxy.conf
265 - dodir /usr/share/zabbix
266 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
267 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
268 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
269 - fi
270 -
271 - if use agent; then
272 - insinto /etc/zabbix
273 - doins \
274 - "${FILESDIR}/2.2"/zabbix_agent.conf \
275 - "${FILESDIR}/2.2"/zabbix_agentd.conf
276 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-agentd
277 - dosbin \
278 - src/zabbix_agent/zabbix_agent \
279 - src/zabbix_agent/zabbix_agentd
280 - dobin \
281 - src/zabbix_sender/zabbix_sender \
282 - src/zabbix_get/zabbix_get
283 - fowners zabbix:zabbix \
284 - /etc/zabbix/zabbix_agent.conf \
285 - /etc/zabbix/zabbix_agentd.conf
286 - fperms 0640 \
287 - /etc/zabbix/zabbix_agent.conf \
288 - /etc/zabbix/zabbix_agentd.conf
289 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
290 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
291 - fi
292 -
293 - fowners zabbix:zabbix \
294 - /etc/zabbix \
295 - /var/lib/zabbix \
296 - /var/lib/zabbix/home \
297 - /var/lib/zabbix/scripts \
298 - /var/lib/zabbix/alertscripts \
299 - /var/lib/zabbix/externalscripts \
300 - /var/log/zabbix
301 - fperms 0750 \
302 - /etc/zabbix \
303 - /var/lib/zabbix \
304 - /var/lib/zabbix/home \
305 - /var/lib/zabbix/scripts \
306 - /var/lib/zabbix/alertscripts \
307 - /var/lib/zabbix/externalscripts \
308 - /var/log/zabbix
309 -
310 - dodoc README INSTALL NEWS ChangeLog \
311 - conf/zabbix_agent.conf \
312 - conf/zabbix_agentd.conf \
313 - conf/zabbix_proxy.conf \
314 - conf/zabbix_agentd/userparameter_examples.conf \
315 - conf/zabbix_agentd/userparameter_mysql.conf \
316 - conf/zabbix_server.conf
317 -
318 - if use frontend; then
319 - webapp_src_preinst
320 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
321 - webapp_configfile \
322 - "${MY_HTDOCSDIR}"/include/db.inc.php \
323 - "${MY_HTDOCSDIR}"/include/config.inc.php
324 - webapp_src_install
325 - fi
326 -
327 - if use java; then
328 - dodir \
329 - /${ZABBIXJAVA_BASE} \
330 - /${ZABBIXJAVA_BASE}/bin \
331 - /${ZABBIXJAVA_BASE}/lib
332 - keepdir /${ZABBIXJAVA_BASE}
333 - exeinto /${ZABBIXJAVA_BASE}/bin
334 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
335 - exeinto /${ZABBIXJAVA_BASE}/lib
336 - doexe \
337 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
338 - src/zabbix_java/lib/logback-console.xml \
339 - src/zabbix_java/lib/logback-core-0.9.27.jar \
340 - src/zabbix_java/lib/logback.xml \
341 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
342 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
343 - exeinto /${ZABBIXJAVA_BASE}/
344 - doexe \
345 - src/zabbix_java/settings.sh \
346 - src/zabbix_java/startup.sh \
347 - src/zabbix_java/shutdown.sh
348 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
349 - fi
350 -}
351 -
352 -pkg_postinst() {
353 - if use server || use proxy ; then
354 - elog
355 - elog "You may need to configure your database for Zabbix,"
356 - elog "if you have not already done so. "
357 - elog
358 -
359 - zabbix_homedir=$(egethome zabbix)
360 - if [ -n "${zabbix_homedir}" ] && \
361 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
362 - ewarn
363 - ewarn "The user 'zabbix' should have his homedir changed"
364 - ewarn "to /var/lib/zabbix/home if you want to use"
365 - ewarn "custom alert scripts."
366 - ewarn
367 - ewarn "A real homedir might be needed for configfiles"
368 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
369 - ewarn "using sendxmpp for Jabber alerts)."
370 - ewarn
371 - ewarn "To change the homedir use:"
372 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
373 - ewarn
374 - fi
375 - fi
376 -
377 - if use server; then
378 - elog
379 - elog "For distributed monitoring you have to run:"
380 - elog
381 - elog "zabbix_server -n <nodeid>"
382 - elog
383 - elog "This will convert database data for use with Node ID"
384 - elog "and also adds a local node."
385 - elog
386 - fi
387 -
388 - elog "--"
389 - elog
390 - elog "You may need to add these lines to /etc/services:"
391 - elog
392 - elog "zabbix-agent 10050/tcp Zabbix Agent"
393 - elog "zabbix-agent 10050/udp Zabbix Agent"
394 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
395 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
396 - elog
397 -
398 - if use server || use proxy ; then
399 - # check for fping
400 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
401 - case "${fping_perms}" in
402 - 4[157][157][157])
403 - ;;
404 - *)
405 - ewarn
406 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
407 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
408 - ewarn "by everyone. Run the following command to fix it:"
409 - ewarn
410 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
411 - ewarn
412 - ewarn "Please be aware that this might impose a security risk,"
413 - ewarn "depending on the code quality of fping."
414 - ewarn
415 - ;;
416 - esac
417 - fi
418 -}
419
420 diff --git a/net-analyzer/zabbix/zabbix-2.2.18.ebuild b/net-analyzer/zabbix/zabbix-2.2.18.ebuild
421 deleted file mode 100644
422 index 6a201569afd..00000000000
423 --- a/net-analyzer/zabbix/zabbix-2.2.18.ebuild
424 +++ /dev/null
425 @@ -1,341 +0,0 @@
426 -# Copyright 1999-2017 Gentoo Foundation
427 -# Distributed under the terms of the GNU General Public License v2
428 -
429 -EAPI="6"
430 -
431 -# needed to make webapp-config dep optional
432 -WEBAPP_OPTIONAL="yes"
433 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
434 -
435 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
436 -HOMEPAGE="http://www.zabbix.com/"
437 -MY_P=${P/_/}
438 -MY_PV=${PV/_/}
439 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
440 -LICENSE="GPL-2"
441 -SLOT="0"
442 -WEBAPP_MANUAL_SLOT="yes"
443 -KEYWORDS="~amd64 ~x86"
444 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
445 -REQUIRED_USE="|| ( agent frontend proxy server )
446 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
447 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
448 - static? ( !oracle !snmp )"
449 -
450 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
451 - ldap? (
452 - net-nds/openldap
453 - =dev-libs/cyrus-sasl-2*
454 - net-libs/gnutls
455 - )
456 - mysql? ( >=virtual/mysql-5.0.3 )
457 - sqlite? ( >=dev-db/sqlite-3.3.5 )
458 - postgres? ( dev-db/postgresql:* )
459 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
460 - xmpp? ( dev-libs/iksemel )
461 - libxml2? ( dev-libs/libxml2 )
462 - curl? ( net-misc/curl )
463 - openipmi? ( sys-libs/openipmi )
464 - ssh? ( net-libs/libssh2 )
465 - java? ( virtual/jdk:* )
466 - odbc? ( dev-db/unixODBC )"
467 -
468 -RDEPEND="${COMMON_DEPEND}
469 - proxy? ( net-analyzer/fping )
470 - server? ( net-analyzer/fping
471 - app-admin/webapp-config )
472 - java? (
473 - >=virtual/jre-1.4
474 - dev-java/slf4j-api
475 - )
476 - frontend? (
477 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
478 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
479 - mysql? ( dev-lang/php[mysqli] )
480 - odbc? ( dev-lang/php[odbc] )
481 - oracle? ( dev-lang/php[oci8-instant-client] )
482 - postgres? ( dev-lang/php[postgres] )
483 - sqlite? ( dev-lang/php[sqlite] )
484 - media-libs/gd[png]
485 - app-admin/webapp-config )"
486 -DEPEND="${COMMON_DEPEND}
487 - static? (
488 - ldap? (
489 - net-nds/openldap[static-libs]
490 - =dev-libs/cyrus-sasl-2*[static-libs]
491 - net-libs/gnutls[static-libs]
492 - )
493 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
494 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
495 - postgres? ( dev-db/postgresql:*[static-libs] )
496 - libxml2? ( dev-libs/libxml2[static-libs] )
497 - curl? ( net-misc/curl[static-libs] )
498 - ssh? ( net-libs/libssh2[static-libs] )
499 - odbc? ( dev-db/unixODBC[static-libs] )
500 - )
501 - virtual/pkgconfig"
502 -
503 -S=${WORKDIR}/${MY_P}
504 -
505 -ZABBIXJAVA_BASE="opt/zabbix_java"
506 -
507 -pkg_setup() {
508 - if use oracle; then
509 - if [ -z "${ORACLE_HOME}" ]; then
510 - eerror
511 - eerror "The environment variable ORACLE_HOME must be set"
512 - eerror "and point to the correct location."
513 - eerror "It looks like you don't have Oracle installed."
514 - eerror
515 - die "Environment variable ORACLE_HOME is not set"
516 - fi
517 - if has_version 'dev-db/oracle-instantclient-basic'; then
518 - ewarn
519 - ewarn "Please ensure you have a full install of the Oracle client."
520 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
521 - ewarn
522 - fi
523 - fi
524 -
525 - if use frontend; then
526 - webapp_pkg_setup
527 - fi
528 -
529 - enewgroup zabbix
530 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
531 -}
532 -
533 -java_prepare() {
534 - cd "${S}/src/zabbix_java/lib"
535 - rm -v *.jar || die
536 -
537 - java-pkg_jar-from slf4j-api
538 -}
539 -
540 -src_prepare() {
541 - default
542 -}
543 -
544 -src_configure() {
545 - econf \
546 - $(use_enable server) \
547 - $(use_enable proxy) \
548 - $(use_enable agent) \
549 - $(use_enable ipv6) \
550 - $(use_enable static) \
551 - $(use_enable java) \
552 - $(use_with ldap) \
553 - $(use_with snmp net-snmp) \
554 - $(use_with mysql) \
555 - $(use_with postgres postgresql) \
556 - $(use_with oracle) \
557 - $(use_with sqlite sqlite3) \
558 - $(use_with xmpp jabber) \
559 - $(use_with curl libcurl) \
560 - $(use_with openipmi openipmi) \
561 - $(use_with ssh ssh2) \
562 - $(use_with libxml2) \
563 - $(use_with odbc unixodbc) \
564 - || die "econf failed"
565 -}
566 -
567 -src_compile() {
568 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
569 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
570 - fi
571 -}
572 -
573 -src_install() {
574 - dodir \
575 - /etc/zabbix \
576 - /var/lib/zabbix \
577 - /var/lib/zabbix/home \
578 - /var/lib/zabbix/scripts \
579 - /var/lib/zabbix/alertscripts \
580 - /var/lib/zabbix/externalscripts \
581 - /var/log/zabbix
582 -
583 - keepdir \
584 - /etc/zabbix \
585 - /var/lib/zabbix \
586 - /var/lib/zabbix/home \
587 - /var/lib/zabbix/scripts \
588 - /var/lib/zabbix/alertscripts \
589 - /var/lib/zabbix/externalscripts \
590 - /var/log/zabbix
591 -
592 - if use server; then
593 - insinto /etc/zabbix
594 - doins "${FILESDIR}/2.2"/zabbix_server.conf
595 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-server
596 - dosbin src/zabbix_server/zabbix_server
597 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
598 - fperms 0640 /etc/zabbix/zabbix_server.conf
599 - dodir /usr/share/zabbix
600 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
601 - systemd_dounit "${FILESDIR}/zabbix-server.service"
602 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
603 - fi
604 -
605 - if use proxy; then
606 - doinitd \
607 - "${FILESDIR}/2.2"/init.d/zabbix-proxy
608 - dosbin \
609 - src/zabbix_proxy/zabbix_proxy
610 - insinto /etc/zabbix
611 - doins \
612 - "${FILESDIR}/2.2"/zabbix_proxy.conf
613 - dodir /usr/share/zabbix
614 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
615 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
616 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
617 - fi
618 -
619 - if use agent; then
620 - insinto /etc/zabbix
621 - doins \
622 - "${FILESDIR}/2.2"/zabbix_agent.conf \
623 - "${FILESDIR}/2.2"/zabbix_agentd.conf
624 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-agentd
625 - dosbin \
626 - src/zabbix_agent/zabbix_agent \
627 - src/zabbix_agent/zabbix_agentd
628 - dobin \
629 - src/zabbix_sender/zabbix_sender \
630 - src/zabbix_get/zabbix_get
631 - fowners zabbix:zabbix \
632 - /etc/zabbix/zabbix_agent.conf \
633 - /etc/zabbix/zabbix_agentd.conf
634 - fperms 0640 \
635 - /etc/zabbix/zabbix_agent.conf \
636 - /etc/zabbix/zabbix_agentd.conf
637 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
638 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
639 - fi
640 -
641 - fowners zabbix:zabbix \
642 - /etc/zabbix \
643 - /var/lib/zabbix \
644 - /var/lib/zabbix/home \
645 - /var/lib/zabbix/scripts \
646 - /var/lib/zabbix/alertscripts \
647 - /var/lib/zabbix/externalscripts \
648 - /var/log/zabbix
649 - fperms 0750 \
650 - /etc/zabbix \
651 - /var/lib/zabbix \
652 - /var/lib/zabbix/home \
653 - /var/lib/zabbix/scripts \
654 - /var/lib/zabbix/alertscripts \
655 - /var/lib/zabbix/externalscripts \
656 - /var/log/zabbix
657 -
658 - dodoc README INSTALL NEWS ChangeLog \
659 - conf/zabbix_agent.conf \
660 - conf/zabbix_agentd.conf \
661 - conf/zabbix_proxy.conf \
662 - conf/zabbix_agentd/userparameter_examples.conf \
663 - conf/zabbix_agentd/userparameter_mysql.conf \
664 - conf/zabbix_server.conf
665 -
666 - if use frontend; then
667 - webapp_src_preinst
668 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
669 - webapp_configfile \
670 - "${MY_HTDOCSDIR}"/include/db.inc.php \
671 - "${MY_HTDOCSDIR}"/include/config.inc.php
672 - webapp_src_install
673 - fi
674 -
675 - if use java; then
676 - dodir \
677 - /${ZABBIXJAVA_BASE} \
678 - /${ZABBIXJAVA_BASE}/bin \
679 - /${ZABBIXJAVA_BASE}/lib
680 - keepdir /${ZABBIXJAVA_BASE}
681 - exeinto /${ZABBIXJAVA_BASE}/bin
682 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
683 - exeinto /${ZABBIXJAVA_BASE}/lib
684 - doexe \
685 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
686 - src/zabbix_java/lib/logback-console.xml \
687 - src/zabbix_java/lib/logback-core-0.9.27.jar \
688 - src/zabbix_java/lib/logback.xml \
689 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
690 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
691 - exeinto /${ZABBIXJAVA_BASE}/
692 - doexe \
693 - src/zabbix_java/settings.sh \
694 - src/zabbix_java/startup.sh \
695 - src/zabbix_java/shutdown.sh
696 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
697 - fi
698 -}
699 -
700 -pkg_postinst() {
701 - if use server || use proxy ; then
702 - elog
703 - elog "You may need to configure your database for Zabbix,"
704 - elog "if you have not already done so. "
705 - elog
706 -
707 - zabbix_homedir=$(egethome zabbix)
708 - if [ -n "${zabbix_homedir}" ] && \
709 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
710 - ewarn
711 - ewarn "The user 'zabbix' should have his homedir changed"
712 - ewarn "to /var/lib/zabbix/home if you want to use"
713 - ewarn "custom alert scripts."
714 - ewarn
715 - ewarn "A real homedir might be needed for configfiles"
716 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
717 - ewarn "using sendxmpp for Jabber alerts)."
718 - ewarn
719 - ewarn "To change the homedir use:"
720 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
721 - ewarn
722 - fi
723 - fi
724 -
725 - if use server; then
726 - elog
727 - elog "For distributed monitoring you have to run:"
728 - elog
729 - elog "zabbix_server -n <nodeid>"
730 - elog
731 - elog "This will convert database data for use with Node ID"
732 - elog "and also adds a local node."
733 - elog
734 - fi
735 -
736 - elog "--"
737 - elog
738 - elog "You may need to add these lines to /etc/services:"
739 - elog
740 - elog "zabbix-agent 10050/tcp Zabbix Agent"
741 - elog "zabbix-agent 10050/udp Zabbix Agent"
742 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
743 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
744 - elog
745 -
746 - if use server || use proxy ; then
747 - # check for fping
748 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
749 - case "${fping_perms}" in
750 - 4[157][157][157])
751 - ;;
752 - *)
753 - ewarn
754 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
755 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
756 - ewarn "by everyone. Run the following command to fix it:"
757 - ewarn
758 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
759 - ewarn
760 - ewarn "Please be aware that this might impose a security risk,"
761 - ewarn "depending on the code quality of fping."
762 - ewarn
763 - ;;
764 - esac
765 - fi
766 -}
767
768 diff --git a/net-analyzer/zabbix/zabbix-2.2.19.ebuild b/net-analyzer/zabbix/zabbix-2.2.19.ebuild
769 deleted file mode 100644
770 index 6a201569afd..00000000000
771 --- a/net-analyzer/zabbix/zabbix-2.2.19.ebuild
772 +++ /dev/null
773 @@ -1,341 +0,0 @@
774 -# Copyright 1999-2017 Gentoo Foundation
775 -# Distributed under the terms of the GNU General Public License v2
776 -
777 -EAPI="6"
778 -
779 -# needed to make webapp-config dep optional
780 -WEBAPP_OPTIONAL="yes"
781 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
782 -
783 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
784 -HOMEPAGE="http://www.zabbix.com/"
785 -MY_P=${P/_/}
786 -MY_PV=${PV/_/}
787 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
788 -LICENSE="GPL-2"
789 -SLOT="0"
790 -WEBAPP_MANUAL_SLOT="yes"
791 -KEYWORDS="~amd64 ~x86"
792 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
793 -REQUIRED_USE="|| ( agent frontend proxy server )
794 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
795 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
796 - static? ( !oracle !snmp )"
797 -
798 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
799 - ldap? (
800 - net-nds/openldap
801 - =dev-libs/cyrus-sasl-2*
802 - net-libs/gnutls
803 - )
804 - mysql? ( >=virtual/mysql-5.0.3 )
805 - sqlite? ( >=dev-db/sqlite-3.3.5 )
806 - postgres? ( dev-db/postgresql:* )
807 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
808 - xmpp? ( dev-libs/iksemel )
809 - libxml2? ( dev-libs/libxml2 )
810 - curl? ( net-misc/curl )
811 - openipmi? ( sys-libs/openipmi )
812 - ssh? ( net-libs/libssh2 )
813 - java? ( virtual/jdk:* )
814 - odbc? ( dev-db/unixODBC )"
815 -
816 -RDEPEND="${COMMON_DEPEND}
817 - proxy? ( net-analyzer/fping )
818 - server? ( net-analyzer/fping
819 - app-admin/webapp-config )
820 - java? (
821 - >=virtual/jre-1.4
822 - dev-java/slf4j-api
823 - )
824 - frontend? (
825 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
826 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
827 - mysql? ( dev-lang/php[mysqli] )
828 - odbc? ( dev-lang/php[odbc] )
829 - oracle? ( dev-lang/php[oci8-instant-client] )
830 - postgres? ( dev-lang/php[postgres] )
831 - sqlite? ( dev-lang/php[sqlite] )
832 - media-libs/gd[png]
833 - app-admin/webapp-config )"
834 -DEPEND="${COMMON_DEPEND}
835 - static? (
836 - ldap? (
837 - net-nds/openldap[static-libs]
838 - =dev-libs/cyrus-sasl-2*[static-libs]
839 - net-libs/gnutls[static-libs]
840 - )
841 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
842 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
843 - postgres? ( dev-db/postgresql:*[static-libs] )
844 - libxml2? ( dev-libs/libxml2[static-libs] )
845 - curl? ( net-misc/curl[static-libs] )
846 - ssh? ( net-libs/libssh2[static-libs] )
847 - odbc? ( dev-db/unixODBC[static-libs] )
848 - )
849 - virtual/pkgconfig"
850 -
851 -S=${WORKDIR}/${MY_P}
852 -
853 -ZABBIXJAVA_BASE="opt/zabbix_java"
854 -
855 -pkg_setup() {
856 - if use oracle; then
857 - if [ -z "${ORACLE_HOME}" ]; then
858 - eerror
859 - eerror "The environment variable ORACLE_HOME must be set"
860 - eerror "and point to the correct location."
861 - eerror "It looks like you don't have Oracle installed."
862 - eerror
863 - die "Environment variable ORACLE_HOME is not set"
864 - fi
865 - if has_version 'dev-db/oracle-instantclient-basic'; then
866 - ewarn
867 - ewarn "Please ensure you have a full install of the Oracle client."
868 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
869 - ewarn
870 - fi
871 - fi
872 -
873 - if use frontend; then
874 - webapp_pkg_setup
875 - fi
876 -
877 - enewgroup zabbix
878 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
879 -}
880 -
881 -java_prepare() {
882 - cd "${S}/src/zabbix_java/lib"
883 - rm -v *.jar || die
884 -
885 - java-pkg_jar-from slf4j-api
886 -}
887 -
888 -src_prepare() {
889 - default
890 -}
891 -
892 -src_configure() {
893 - econf \
894 - $(use_enable server) \
895 - $(use_enable proxy) \
896 - $(use_enable agent) \
897 - $(use_enable ipv6) \
898 - $(use_enable static) \
899 - $(use_enable java) \
900 - $(use_with ldap) \
901 - $(use_with snmp net-snmp) \
902 - $(use_with mysql) \
903 - $(use_with postgres postgresql) \
904 - $(use_with oracle) \
905 - $(use_with sqlite sqlite3) \
906 - $(use_with xmpp jabber) \
907 - $(use_with curl libcurl) \
908 - $(use_with openipmi openipmi) \
909 - $(use_with ssh ssh2) \
910 - $(use_with libxml2) \
911 - $(use_with odbc unixodbc) \
912 - || die "econf failed"
913 -}
914 -
915 -src_compile() {
916 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
917 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
918 - fi
919 -}
920 -
921 -src_install() {
922 - dodir \
923 - /etc/zabbix \
924 - /var/lib/zabbix \
925 - /var/lib/zabbix/home \
926 - /var/lib/zabbix/scripts \
927 - /var/lib/zabbix/alertscripts \
928 - /var/lib/zabbix/externalscripts \
929 - /var/log/zabbix
930 -
931 - keepdir \
932 - /etc/zabbix \
933 - /var/lib/zabbix \
934 - /var/lib/zabbix/home \
935 - /var/lib/zabbix/scripts \
936 - /var/lib/zabbix/alertscripts \
937 - /var/lib/zabbix/externalscripts \
938 - /var/log/zabbix
939 -
940 - if use server; then
941 - insinto /etc/zabbix
942 - doins "${FILESDIR}/2.2"/zabbix_server.conf
943 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-server
944 - dosbin src/zabbix_server/zabbix_server
945 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
946 - fperms 0640 /etc/zabbix/zabbix_server.conf
947 - dodir /usr/share/zabbix
948 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
949 - systemd_dounit "${FILESDIR}/zabbix-server.service"
950 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
951 - fi
952 -
953 - if use proxy; then
954 - doinitd \
955 - "${FILESDIR}/2.2"/init.d/zabbix-proxy
956 - dosbin \
957 - src/zabbix_proxy/zabbix_proxy
958 - insinto /etc/zabbix
959 - doins \
960 - "${FILESDIR}/2.2"/zabbix_proxy.conf
961 - dodir /usr/share/zabbix
962 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
963 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
964 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
965 - fi
966 -
967 - if use agent; then
968 - insinto /etc/zabbix
969 - doins \
970 - "${FILESDIR}/2.2"/zabbix_agent.conf \
971 - "${FILESDIR}/2.2"/zabbix_agentd.conf
972 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-agentd
973 - dosbin \
974 - src/zabbix_agent/zabbix_agent \
975 - src/zabbix_agent/zabbix_agentd
976 - dobin \
977 - src/zabbix_sender/zabbix_sender \
978 - src/zabbix_get/zabbix_get
979 - fowners zabbix:zabbix \
980 - /etc/zabbix/zabbix_agent.conf \
981 - /etc/zabbix/zabbix_agentd.conf
982 - fperms 0640 \
983 - /etc/zabbix/zabbix_agent.conf \
984 - /etc/zabbix/zabbix_agentd.conf
985 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
986 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
987 - fi
988 -
989 - fowners zabbix:zabbix \
990 - /etc/zabbix \
991 - /var/lib/zabbix \
992 - /var/lib/zabbix/home \
993 - /var/lib/zabbix/scripts \
994 - /var/lib/zabbix/alertscripts \
995 - /var/lib/zabbix/externalscripts \
996 - /var/log/zabbix
997 - fperms 0750 \
998 - /etc/zabbix \
999 - /var/lib/zabbix \
1000 - /var/lib/zabbix/home \
1001 - /var/lib/zabbix/scripts \
1002 - /var/lib/zabbix/alertscripts \
1003 - /var/lib/zabbix/externalscripts \
1004 - /var/log/zabbix
1005 -
1006 - dodoc README INSTALL NEWS ChangeLog \
1007 - conf/zabbix_agent.conf \
1008 - conf/zabbix_agentd.conf \
1009 - conf/zabbix_proxy.conf \
1010 - conf/zabbix_agentd/userparameter_examples.conf \
1011 - conf/zabbix_agentd/userparameter_mysql.conf \
1012 - conf/zabbix_server.conf
1013 -
1014 - if use frontend; then
1015 - webapp_src_preinst
1016 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
1017 - webapp_configfile \
1018 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1019 - "${MY_HTDOCSDIR}"/include/config.inc.php
1020 - webapp_src_install
1021 - fi
1022 -
1023 - if use java; then
1024 - dodir \
1025 - /${ZABBIXJAVA_BASE} \
1026 - /${ZABBIXJAVA_BASE}/bin \
1027 - /${ZABBIXJAVA_BASE}/lib
1028 - keepdir /${ZABBIXJAVA_BASE}
1029 - exeinto /${ZABBIXJAVA_BASE}/bin
1030 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
1031 - exeinto /${ZABBIXJAVA_BASE}/lib
1032 - doexe \
1033 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
1034 - src/zabbix_java/lib/logback-console.xml \
1035 - src/zabbix_java/lib/logback-core-0.9.27.jar \
1036 - src/zabbix_java/lib/logback.xml \
1037 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1038 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
1039 - exeinto /${ZABBIXJAVA_BASE}/
1040 - doexe \
1041 - src/zabbix_java/settings.sh \
1042 - src/zabbix_java/startup.sh \
1043 - src/zabbix_java/shutdown.sh
1044 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
1045 - fi
1046 -}
1047 -
1048 -pkg_postinst() {
1049 - if use server || use proxy ; then
1050 - elog
1051 - elog "You may need to configure your database for Zabbix,"
1052 - elog "if you have not already done so. "
1053 - elog
1054 -
1055 - zabbix_homedir=$(egethome zabbix)
1056 - if [ -n "${zabbix_homedir}" ] && \
1057 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1058 - ewarn
1059 - ewarn "The user 'zabbix' should have his homedir changed"
1060 - ewarn "to /var/lib/zabbix/home if you want to use"
1061 - ewarn "custom alert scripts."
1062 - ewarn
1063 - ewarn "A real homedir might be needed for configfiles"
1064 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
1065 - ewarn "using sendxmpp for Jabber alerts)."
1066 - ewarn
1067 - ewarn "To change the homedir use:"
1068 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1069 - ewarn
1070 - fi
1071 - fi
1072 -
1073 - if use server; then
1074 - elog
1075 - elog "For distributed monitoring you have to run:"
1076 - elog
1077 - elog "zabbix_server -n <nodeid>"
1078 - elog
1079 - elog "This will convert database data for use with Node ID"
1080 - elog "and also adds a local node."
1081 - elog
1082 - fi
1083 -
1084 - elog "--"
1085 - elog
1086 - elog "You may need to add these lines to /etc/services:"
1087 - elog
1088 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1089 - elog "zabbix-agent 10050/udp Zabbix Agent"
1090 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1091 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1092 - elog
1093 -
1094 - if use server || use proxy ; then
1095 - # check for fping
1096 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1097 - case "${fping_perms}" in
1098 - 4[157][157][157])
1099 - ;;
1100 - *)
1101 - ewarn
1102 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1103 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1104 - ewarn "by everyone. Run the following command to fix it:"
1105 - ewarn
1106 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1107 - ewarn
1108 - ewarn "Please be aware that this might impose a security risk,"
1109 - ewarn "depending on the code quality of fping."
1110 - ewarn
1111 - ;;
1112 - esac
1113 - fi
1114 -}
1115
1116 diff --git a/net-analyzer/zabbix/zabbix-2.2.20.ebuild b/net-analyzer/zabbix/zabbix-2.2.20.ebuild
1117 deleted file mode 100644
1118 index 6a201569afd..00000000000
1119 --- a/net-analyzer/zabbix/zabbix-2.2.20.ebuild
1120 +++ /dev/null
1121 @@ -1,341 +0,0 @@
1122 -# Copyright 1999-2017 Gentoo Foundation
1123 -# Distributed under the terms of the GNU General Public License v2
1124 -
1125 -EAPI="6"
1126 -
1127 -# needed to make webapp-config dep optional
1128 -WEBAPP_OPTIONAL="yes"
1129 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
1130 -
1131 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1132 -HOMEPAGE="http://www.zabbix.com/"
1133 -MY_P=${P/_/}
1134 -MY_PV=${PV/_/}
1135 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
1136 -LICENSE="GPL-2"
1137 -SLOT="0"
1138 -WEBAPP_MANUAL_SLOT="yes"
1139 -KEYWORDS="~amd64 ~x86"
1140 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
1141 -REQUIRED_USE="|| ( agent frontend proxy server )
1142 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1143 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1144 - static? ( !oracle !snmp )"
1145 -
1146 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
1147 - ldap? (
1148 - net-nds/openldap
1149 - =dev-libs/cyrus-sasl-2*
1150 - net-libs/gnutls
1151 - )
1152 - mysql? ( >=virtual/mysql-5.0.3 )
1153 - sqlite? ( >=dev-db/sqlite-3.3.5 )
1154 - postgres? ( dev-db/postgresql:* )
1155 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
1156 - xmpp? ( dev-libs/iksemel )
1157 - libxml2? ( dev-libs/libxml2 )
1158 - curl? ( net-misc/curl )
1159 - openipmi? ( sys-libs/openipmi )
1160 - ssh? ( net-libs/libssh2 )
1161 - java? ( virtual/jdk:* )
1162 - odbc? ( dev-db/unixODBC )"
1163 -
1164 -RDEPEND="${COMMON_DEPEND}
1165 - proxy? ( net-analyzer/fping )
1166 - server? ( net-analyzer/fping
1167 - app-admin/webapp-config )
1168 - java? (
1169 - >=virtual/jre-1.4
1170 - dev-java/slf4j-api
1171 - )
1172 - frontend? (
1173 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1174 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
1175 - mysql? ( dev-lang/php[mysqli] )
1176 - odbc? ( dev-lang/php[odbc] )
1177 - oracle? ( dev-lang/php[oci8-instant-client] )
1178 - postgres? ( dev-lang/php[postgres] )
1179 - sqlite? ( dev-lang/php[sqlite] )
1180 - media-libs/gd[png]
1181 - app-admin/webapp-config )"
1182 -DEPEND="${COMMON_DEPEND}
1183 - static? (
1184 - ldap? (
1185 - net-nds/openldap[static-libs]
1186 - =dev-libs/cyrus-sasl-2*[static-libs]
1187 - net-libs/gnutls[static-libs]
1188 - )
1189 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
1190 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
1191 - postgres? ( dev-db/postgresql:*[static-libs] )
1192 - libxml2? ( dev-libs/libxml2[static-libs] )
1193 - curl? ( net-misc/curl[static-libs] )
1194 - ssh? ( net-libs/libssh2[static-libs] )
1195 - odbc? ( dev-db/unixODBC[static-libs] )
1196 - )
1197 - virtual/pkgconfig"
1198 -
1199 -S=${WORKDIR}/${MY_P}
1200 -
1201 -ZABBIXJAVA_BASE="opt/zabbix_java"
1202 -
1203 -pkg_setup() {
1204 - if use oracle; then
1205 - if [ -z "${ORACLE_HOME}" ]; then
1206 - eerror
1207 - eerror "The environment variable ORACLE_HOME must be set"
1208 - eerror "and point to the correct location."
1209 - eerror "It looks like you don't have Oracle installed."
1210 - eerror
1211 - die "Environment variable ORACLE_HOME is not set"
1212 - fi
1213 - if has_version 'dev-db/oracle-instantclient-basic'; then
1214 - ewarn
1215 - ewarn "Please ensure you have a full install of the Oracle client."
1216 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
1217 - ewarn
1218 - fi
1219 - fi
1220 -
1221 - if use frontend; then
1222 - webapp_pkg_setup
1223 - fi
1224 -
1225 - enewgroup zabbix
1226 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
1227 -}
1228 -
1229 -java_prepare() {
1230 - cd "${S}/src/zabbix_java/lib"
1231 - rm -v *.jar || die
1232 -
1233 - java-pkg_jar-from slf4j-api
1234 -}
1235 -
1236 -src_prepare() {
1237 - default
1238 -}
1239 -
1240 -src_configure() {
1241 - econf \
1242 - $(use_enable server) \
1243 - $(use_enable proxy) \
1244 - $(use_enable agent) \
1245 - $(use_enable ipv6) \
1246 - $(use_enable static) \
1247 - $(use_enable java) \
1248 - $(use_with ldap) \
1249 - $(use_with snmp net-snmp) \
1250 - $(use_with mysql) \
1251 - $(use_with postgres postgresql) \
1252 - $(use_with oracle) \
1253 - $(use_with sqlite sqlite3) \
1254 - $(use_with xmpp jabber) \
1255 - $(use_with curl libcurl) \
1256 - $(use_with openipmi openipmi) \
1257 - $(use_with ssh ssh2) \
1258 - $(use_with libxml2) \
1259 - $(use_with odbc unixodbc) \
1260 - || die "econf failed"
1261 -}
1262 -
1263 -src_compile() {
1264 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1265 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
1266 - fi
1267 -}
1268 -
1269 -src_install() {
1270 - dodir \
1271 - /etc/zabbix \
1272 - /var/lib/zabbix \
1273 - /var/lib/zabbix/home \
1274 - /var/lib/zabbix/scripts \
1275 - /var/lib/zabbix/alertscripts \
1276 - /var/lib/zabbix/externalscripts \
1277 - /var/log/zabbix
1278 -
1279 - keepdir \
1280 - /etc/zabbix \
1281 - /var/lib/zabbix \
1282 - /var/lib/zabbix/home \
1283 - /var/lib/zabbix/scripts \
1284 - /var/lib/zabbix/alertscripts \
1285 - /var/lib/zabbix/externalscripts \
1286 - /var/log/zabbix
1287 -
1288 - if use server; then
1289 - insinto /etc/zabbix
1290 - doins "${FILESDIR}/2.2"/zabbix_server.conf
1291 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-server
1292 - dosbin src/zabbix_server/zabbix_server
1293 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
1294 - fperms 0640 /etc/zabbix/zabbix_server.conf
1295 - dodir /usr/share/zabbix
1296 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1297 - systemd_dounit "${FILESDIR}/zabbix-server.service"
1298 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
1299 - fi
1300 -
1301 - if use proxy; then
1302 - doinitd \
1303 - "${FILESDIR}/2.2"/init.d/zabbix-proxy
1304 - dosbin \
1305 - src/zabbix_proxy/zabbix_proxy
1306 - insinto /etc/zabbix
1307 - doins \
1308 - "${FILESDIR}/2.2"/zabbix_proxy.conf
1309 - dodir /usr/share/zabbix
1310 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1311 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
1312 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
1313 - fi
1314 -
1315 - if use agent; then
1316 - insinto /etc/zabbix
1317 - doins \
1318 - "${FILESDIR}/2.2"/zabbix_agent.conf \
1319 - "${FILESDIR}/2.2"/zabbix_agentd.conf
1320 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-agentd
1321 - dosbin \
1322 - src/zabbix_agent/zabbix_agent \
1323 - src/zabbix_agent/zabbix_agentd
1324 - dobin \
1325 - src/zabbix_sender/zabbix_sender \
1326 - src/zabbix_get/zabbix_get
1327 - fowners zabbix:zabbix \
1328 - /etc/zabbix/zabbix_agent.conf \
1329 - /etc/zabbix/zabbix_agentd.conf
1330 - fperms 0640 \
1331 - /etc/zabbix/zabbix_agent.conf \
1332 - /etc/zabbix/zabbix_agentd.conf
1333 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
1334 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
1335 - fi
1336 -
1337 - fowners zabbix:zabbix \
1338 - /etc/zabbix \
1339 - /var/lib/zabbix \
1340 - /var/lib/zabbix/home \
1341 - /var/lib/zabbix/scripts \
1342 - /var/lib/zabbix/alertscripts \
1343 - /var/lib/zabbix/externalscripts \
1344 - /var/log/zabbix
1345 - fperms 0750 \
1346 - /etc/zabbix \
1347 - /var/lib/zabbix \
1348 - /var/lib/zabbix/home \
1349 - /var/lib/zabbix/scripts \
1350 - /var/lib/zabbix/alertscripts \
1351 - /var/lib/zabbix/externalscripts \
1352 - /var/log/zabbix
1353 -
1354 - dodoc README INSTALL NEWS ChangeLog \
1355 - conf/zabbix_agent.conf \
1356 - conf/zabbix_agentd.conf \
1357 - conf/zabbix_proxy.conf \
1358 - conf/zabbix_agentd/userparameter_examples.conf \
1359 - conf/zabbix_agentd/userparameter_mysql.conf \
1360 - conf/zabbix_server.conf
1361 -
1362 - if use frontend; then
1363 - webapp_src_preinst
1364 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
1365 - webapp_configfile \
1366 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1367 - "${MY_HTDOCSDIR}"/include/config.inc.php
1368 - webapp_src_install
1369 - fi
1370 -
1371 - if use java; then
1372 - dodir \
1373 - /${ZABBIXJAVA_BASE} \
1374 - /${ZABBIXJAVA_BASE}/bin \
1375 - /${ZABBIXJAVA_BASE}/lib
1376 - keepdir /${ZABBIXJAVA_BASE}
1377 - exeinto /${ZABBIXJAVA_BASE}/bin
1378 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
1379 - exeinto /${ZABBIXJAVA_BASE}/lib
1380 - doexe \
1381 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
1382 - src/zabbix_java/lib/logback-console.xml \
1383 - src/zabbix_java/lib/logback-core-0.9.27.jar \
1384 - src/zabbix_java/lib/logback.xml \
1385 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1386 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
1387 - exeinto /${ZABBIXJAVA_BASE}/
1388 - doexe \
1389 - src/zabbix_java/settings.sh \
1390 - src/zabbix_java/startup.sh \
1391 - src/zabbix_java/shutdown.sh
1392 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
1393 - fi
1394 -}
1395 -
1396 -pkg_postinst() {
1397 - if use server || use proxy ; then
1398 - elog
1399 - elog "You may need to configure your database for Zabbix,"
1400 - elog "if you have not already done so. "
1401 - elog
1402 -
1403 - zabbix_homedir=$(egethome zabbix)
1404 - if [ -n "${zabbix_homedir}" ] && \
1405 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1406 - ewarn
1407 - ewarn "The user 'zabbix' should have his homedir changed"
1408 - ewarn "to /var/lib/zabbix/home if you want to use"
1409 - ewarn "custom alert scripts."
1410 - ewarn
1411 - ewarn "A real homedir might be needed for configfiles"
1412 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
1413 - ewarn "using sendxmpp for Jabber alerts)."
1414 - ewarn
1415 - ewarn "To change the homedir use:"
1416 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1417 - ewarn
1418 - fi
1419 - fi
1420 -
1421 - if use server; then
1422 - elog
1423 - elog "For distributed monitoring you have to run:"
1424 - elog
1425 - elog "zabbix_server -n <nodeid>"
1426 - elog
1427 - elog "This will convert database data for use with Node ID"
1428 - elog "and also adds a local node."
1429 - elog
1430 - fi
1431 -
1432 - elog "--"
1433 - elog
1434 - elog "You may need to add these lines to /etc/services:"
1435 - elog
1436 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1437 - elog "zabbix-agent 10050/udp Zabbix Agent"
1438 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1439 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1440 - elog
1441 -
1442 - if use server || use proxy ; then
1443 - # check for fping
1444 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1445 - case "${fping_perms}" in
1446 - 4[157][157][157])
1447 - ;;
1448 - *)
1449 - ewarn
1450 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1451 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1452 - ewarn "by everyone. Run the following command to fix it:"
1453 - ewarn
1454 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1455 - ewarn
1456 - ewarn "Please be aware that this might impose a security risk,"
1457 - ewarn "depending on the code quality of fping."
1458 - ewarn
1459 - ;;
1460 - esac
1461 - fi
1462 -}
1463
1464 diff --git a/net-analyzer/zabbix/zabbix-3.0.10.ebuild b/net-analyzer/zabbix/zabbix-3.0.10.ebuild
1465 deleted file mode 100644
1466 index 13448bdf670..00000000000
1467 --- a/net-analyzer/zabbix/zabbix-3.0.10.ebuild
1468 +++ /dev/null
1469 @@ -1,331 +0,0 @@
1470 -# Copyright 1999-2017 Gentoo Foundation
1471 -# Distributed under the terms of the GNU General Public License v2
1472 -
1473 -EAPI="6"
1474 -
1475 -# needed to make webapp-config dep optional
1476 -WEBAPP_OPTIONAL="yes"
1477 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
1478 -
1479 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1480 -HOMEPAGE="http://www.zabbix.com/"
1481 -MY_P=${P/_/}
1482 -MY_PV=${PV/_/}
1483 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
1484 -LICENSE="GPL-2"
1485 -SLOT="0"
1486 -WEBAPP_MANUAL_SLOT="yes"
1487 -KEYWORDS="~amd64 ~x86"
1488 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
1489 -REQUIRED_USE="|| ( agent frontend proxy server )
1490 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1491 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1492 - static? ( !oracle !snmp )"
1493 -
1494 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
1495 - ldap? (
1496 - net-nds/openldap
1497 - =dev-libs/cyrus-sasl-2*
1498 - net-libs/gnutls
1499 - )
1500 - mysql? ( >=virtual/mysql-5.0.3 )
1501 - sqlite? ( >=dev-db/sqlite-3.3.5 )
1502 - postgres? ( dev-db/postgresql:* )
1503 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
1504 - xmpp? ( dev-libs/iksemel )
1505 - libxml2? ( dev-libs/libxml2 )
1506 - curl? ( net-misc/curl )
1507 - openipmi? ( sys-libs/openipmi )
1508 - ssh? ( net-libs/libssh2 )
1509 - java? ( virtual/jdk:* )
1510 - odbc? ( dev-db/unixODBC )
1511 - ssl? ( dev-libs/openssl:=[-bindist] )"
1512 -
1513 -RDEPEND="${COMMON_DEPEND}
1514 - proxy? ( net-analyzer/fping )
1515 - server? ( net-analyzer/fping
1516 - app-admin/webapp-config )
1517 - java? (
1518 - >=virtual/jre-1.4
1519 - dev-java/slf4j-api
1520 - )
1521 - frontend? (
1522 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1523 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
1524 - mysql? ( dev-lang/php[mysqli] )
1525 - odbc? ( dev-lang/php[odbc] )
1526 - oracle? ( dev-lang/php[oci8-instant-client] )
1527 - postgres? ( dev-lang/php[postgres] )
1528 - sqlite? ( dev-lang/php[sqlite] )
1529 - media-libs/gd[png]
1530 - app-admin/webapp-config )"
1531 -DEPEND="${COMMON_DEPEND}
1532 - static? (
1533 - ldap? (
1534 - net-nds/openldap[static-libs]
1535 - =dev-libs/cyrus-sasl-2*[static-libs]
1536 - net-libs/gnutls[static-libs]
1537 - )
1538 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
1539 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
1540 - postgres? ( dev-db/postgresql:*[static-libs] )
1541 - libxml2? ( dev-libs/libxml2[static-libs] )
1542 - curl? ( net-misc/curl[static-libs] )
1543 - ssh? ( net-libs/libssh2[static-libs] )
1544 - odbc? ( dev-db/unixODBC[static-libs] )
1545 - )
1546 - virtual/pkgconfig"
1547 -
1548 -S=${WORKDIR}/${MY_P}
1549 -
1550 -ZABBIXJAVA_BASE="opt/zabbix_java"
1551 -
1552 -pkg_setup() {
1553 - if use oracle; then
1554 - if [ -z "${ORACLE_HOME}" ]; then
1555 - eerror
1556 - eerror "The environment variable ORACLE_HOME must be set"
1557 - eerror "and point to the correct location."
1558 - eerror "It looks like you don't have Oracle installed."
1559 - eerror
1560 - die "Environment variable ORACLE_HOME is not set"
1561 - fi
1562 - if has_version 'dev-db/oracle-instantclient-basic'; then
1563 - ewarn
1564 - ewarn "Please ensure you have a full install of the Oracle client."
1565 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
1566 - ewarn
1567 - fi
1568 - fi
1569 -
1570 - if use frontend; then
1571 - webapp_pkg_setup
1572 - fi
1573 -
1574 - enewgroup zabbix
1575 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
1576 -}
1577 -
1578 -java_prepare() {
1579 - cd "${S}/src/zabbix_java/lib"
1580 - rm -v *.jar || die
1581 -
1582 - java-pkg_jar-from slf4j-api
1583 -}
1584 -
1585 -src_prepare() {
1586 - default
1587 -}
1588 -
1589 -src_configure() {
1590 - econf \
1591 - $(use_enable server) \
1592 - $(use_enable proxy) \
1593 - $(use_enable agent) \
1594 - $(use_enable ipv6) \
1595 - $(use_enable static) \
1596 - $(use_enable java) \
1597 - $(use_with ldap) \
1598 - $(use_with snmp net-snmp) \
1599 - $(use_with mysql) \
1600 - $(use_with postgres postgresql) \
1601 - $(use_with oracle) \
1602 - $(use_with sqlite sqlite3) \
1603 - $(use_with xmpp jabber) \
1604 - $(use_with curl libcurl) \
1605 - $(use_with openipmi openipmi) \
1606 - $(use_with ssh ssh2) \
1607 - $(use_with libxml2) \
1608 - $(use_with odbc unixodbc) \
1609 - $(use_with ssl openssl) \
1610 - || die "econf failed"
1611 -}
1612 -
1613 -src_compile() {
1614 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1615 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
1616 - fi
1617 -}
1618 -
1619 -src_install() {
1620 - dodir \
1621 - /etc/zabbix \
1622 - /var/lib/zabbix \
1623 - /var/lib/zabbix/home \
1624 - /var/lib/zabbix/scripts \
1625 - /var/lib/zabbix/alertscripts \
1626 - /var/lib/zabbix/externalscripts \
1627 - /var/log/zabbix
1628 -
1629 - keepdir \
1630 - /etc/zabbix \
1631 - /var/lib/zabbix \
1632 - /var/lib/zabbix/home \
1633 - /var/lib/zabbix/scripts \
1634 - /var/lib/zabbix/alertscripts \
1635 - /var/lib/zabbix/externalscripts \
1636 - /var/log/zabbix
1637 -
1638 - if use server; then
1639 - insinto /etc/zabbix
1640 - doins "${FILESDIR}/3.0"/zabbix_server.conf
1641 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
1642 - dosbin src/zabbix_server/zabbix_server
1643 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
1644 - fperms 0640 /etc/zabbix/zabbix_server.conf
1645 - dodir /usr/share/zabbix
1646 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1647 - systemd_dounit "${FILESDIR}/zabbix-server.service"
1648 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
1649 - fi
1650 -
1651 - if use proxy; then
1652 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
1653 - dosbin src/zabbix_proxy/zabbix_proxy
1654 - insinto /etc/zabbix
1655 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
1656 - dodir /usr/share/zabbix
1657 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1658 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
1659 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
1660 - fi
1661 -
1662 - if use agent; then
1663 - insinto /etc/zabbix
1664 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
1665 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
1666 - dosbin src/zabbix_agent/zabbix_agentd
1667 - dobin \
1668 - src/zabbix_sender/zabbix_sender \
1669 - src/zabbix_get/zabbix_get
1670 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
1671 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
1672 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
1673 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
1674 - fi
1675 -
1676 - fowners zabbix:zabbix \
1677 - /etc/zabbix \
1678 - /var/lib/zabbix \
1679 - /var/lib/zabbix/home \
1680 - /var/lib/zabbix/scripts \
1681 - /var/lib/zabbix/alertscripts \
1682 - /var/lib/zabbix/externalscripts \
1683 - /var/log/zabbix
1684 - fperms 0750 \
1685 - /etc/zabbix \
1686 - /var/lib/zabbix \
1687 - /var/lib/zabbix/home \
1688 - /var/lib/zabbix/scripts \
1689 - /var/lib/zabbix/alertscripts \
1690 - /var/lib/zabbix/externalscripts \
1691 - /var/log/zabbix
1692 -
1693 - dodoc README INSTALL NEWS ChangeLog \
1694 - conf/zabbix_agentd.conf \
1695 - conf/zabbix_proxy.conf \
1696 - conf/zabbix_agentd/userparameter_examples.conf \
1697 - conf/zabbix_agentd/userparameter_mysql.conf \
1698 - conf/zabbix_server.conf
1699 -
1700 - if use frontend; then
1701 - webapp_src_preinst
1702 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
1703 - webapp_configfile \
1704 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1705 - "${MY_HTDOCSDIR}"/include/config.inc.php
1706 - webapp_src_install
1707 - fi
1708 -
1709 - if use java; then
1710 - dodir \
1711 - /${ZABBIXJAVA_BASE} \
1712 - /${ZABBIXJAVA_BASE}/bin \
1713 - /${ZABBIXJAVA_BASE}/lib
1714 - keepdir /${ZABBIXJAVA_BASE}
1715 - exeinto /${ZABBIXJAVA_BASE}/bin
1716 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
1717 - exeinto /${ZABBIXJAVA_BASE}/lib
1718 - doexe \
1719 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
1720 - src/zabbix_java/lib/logback-console.xml \
1721 - src/zabbix_java/lib/logback-core-0.9.27.jar \
1722 - src/zabbix_java/lib/logback.xml \
1723 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1724 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
1725 - exeinto /${ZABBIXJAVA_BASE}/
1726 - doexe \
1727 - src/zabbix_java/settings.sh \
1728 - src/zabbix_java/startup.sh \
1729 - src/zabbix_java/shutdown.sh
1730 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
1731 - fi
1732 -}
1733 -
1734 -pkg_postinst() {
1735 - if use server || use proxy ; then
1736 - elog
1737 - elog "You may need to configure your database for Zabbix,"
1738 - elog "if you have not already done so. "
1739 - elog
1740 -
1741 - zabbix_homedir=$(egethome zabbix)
1742 - if [ -n "${zabbix_homedir}" ] && \
1743 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1744 - ewarn
1745 - ewarn "The user 'zabbix' should have his homedir changed"
1746 - ewarn "to /var/lib/zabbix/home if you want to use"
1747 - ewarn "custom alert scripts."
1748 - ewarn
1749 - ewarn "A real homedir might be needed for configfiles"
1750 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
1751 - ewarn "using sendxmpp for Jabber alerts)."
1752 - ewarn
1753 - ewarn "To change the homedir use:"
1754 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1755 - ewarn
1756 - fi
1757 - fi
1758 -
1759 - if use server; then
1760 - elog
1761 - elog "For distributed monitoring you have to run:"
1762 - elog
1763 - elog "zabbix_server -n <nodeid>"
1764 - elog
1765 - elog "This will convert database data for use with Node ID"
1766 - elog "and also adds a local node."
1767 - elog
1768 - fi
1769 -
1770 - elog "--"
1771 - elog
1772 - elog "You may need to add these lines to /etc/services:"
1773 - elog
1774 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1775 - elog "zabbix-agent 10050/udp Zabbix Agent"
1776 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1777 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1778 - elog
1779 -
1780 - if use server || use proxy ; then
1781 - # check for fping
1782 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1783 - case "${fping_perms}" in
1784 - 4[157][157][157])
1785 - ;;
1786 - *)
1787 - ewarn
1788 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1789 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1790 - ewarn "by everyone. Run the following command to fix it:"
1791 - ewarn
1792 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1793 - ewarn
1794 - ewarn "Please be aware that this might impose a security risk,"
1795 - ewarn "depending on the code quality of fping."
1796 - ewarn
1797 - ;;
1798 - esac
1799 - fi
1800 -}
1801
1802 diff --git a/net-analyzer/zabbix/zabbix-3.0.11.ebuild b/net-analyzer/zabbix/zabbix-3.0.11.ebuild
1803 deleted file mode 100644
1804 index 13448bdf670..00000000000
1805 --- a/net-analyzer/zabbix/zabbix-3.0.11.ebuild
1806 +++ /dev/null
1807 @@ -1,331 +0,0 @@
1808 -# Copyright 1999-2017 Gentoo Foundation
1809 -# Distributed under the terms of the GNU General Public License v2
1810 -
1811 -EAPI="6"
1812 -
1813 -# needed to make webapp-config dep optional
1814 -WEBAPP_OPTIONAL="yes"
1815 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
1816 -
1817 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1818 -HOMEPAGE="http://www.zabbix.com/"
1819 -MY_P=${P/_/}
1820 -MY_PV=${PV/_/}
1821 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
1822 -LICENSE="GPL-2"
1823 -SLOT="0"
1824 -WEBAPP_MANUAL_SLOT="yes"
1825 -KEYWORDS="~amd64 ~x86"
1826 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
1827 -REQUIRED_USE="|| ( agent frontend proxy server )
1828 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1829 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1830 - static? ( !oracle !snmp )"
1831 -
1832 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
1833 - ldap? (
1834 - net-nds/openldap
1835 - =dev-libs/cyrus-sasl-2*
1836 - net-libs/gnutls
1837 - )
1838 - mysql? ( >=virtual/mysql-5.0.3 )
1839 - sqlite? ( >=dev-db/sqlite-3.3.5 )
1840 - postgres? ( dev-db/postgresql:* )
1841 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
1842 - xmpp? ( dev-libs/iksemel )
1843 - libxml2? ( dev-libs/libxml2 )
1844 - curl? ( net-misc/curl )
1845 - openipmi? ( sys-libs/openipmi )
1846 - ssh? ( net-libs/libssh2 )
1847 - java? ( virtual/jdk:* )
1848 - odbc? ( dev-db/unixODBC )
1849 - ssl? ( dev-libs/openssl:=[-bindist] )"
1850 -
1851 -RDEPEND="${COMMON_DEPEND}
1852 - proxy? ( net-analyzer/fping )
1853 - server? ( net-analyzer/fping
1854 - app-admin/webapp-config )
1855 - java? (
1856 - >=virtual/jre-1.4
1857 - dev-java/slf4j-api
1858 - )
1859 - frontend? (
1860 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1861 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
1862 - mysql? ( dev-lang/php[mysqli] )
1863 - odbc? ( dev-lang/php[odbc] )
1864 - oracle? ( dev-lang/php[oci8-instant-client] )
1865 - postgres? ( dev-lang/php[postgres] )
1866 - sqlite? ( dev-lang/php[sqlite] )
1867 - media-libs/gd[png]
1868 - app-admin/webapp-config )"
1869 -DEPEND="${COMMON_DEPEND}
1870 - static? (
1871 - ldap? (
1872 - net-nds/openldap[static-libs]
1873 - =dev-libs/cyrus-sasl-2*[static-libs]
1874 - net-libs/gnutls[static-libs]
1875 - )
1876 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
1877 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
1878 - postgres? ( dev-db/postgresql:*[static-libs] )
1879 - libxml2? ( dev-libs/libxml2[static-libs] )
1880 - curl? ( net-misc/curl[static-libs] )
1881 - ssh? ( net-libs/libssh2[static-libs] )
1882 - odbc? ( dev-db/unixODBC[static-libs] )
1883 - )
1884 - virtual/pkgconfig"
1885 -
1886 -S=${WORKDIR}/${MY_P}
1887 -
1888 -ZABBIXJAVA_BASE="opt/zabbix_java"
1889 -
1890 -pkg_setup() {
1891 - if use oracle; then
1892 - if [ -z "${ORACLE_HOME}" ]; then
1893 - eerror
1894 - eerror "The environment variable ORACLE_HOME must be set"
1895 - eerror "and point to the correct location."
1896 - eerror "It looks like you don't have Oracle installed."
1897 - eerror
1898 - die "Environment variable ORACLE_HOME is not set"
1899 - fi
1900 - if has_version 'dev-db/oracle-instantclient-basic'; then
1901 - ewarn
1902 - ewarn "Please ensure you have a full install of the Oracle client."
1903 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
1904 - ewarn
1905 - fi
1906 - fi
1907 -
1908 - if use frontend; then
1909 - webapp_pkg_setup
1910 - fi
1911 -
1912 - enewgroup zabbix
1913 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
1914 -}
1915 -
1916 -java_prepare() {
1917 - cd "${S}/src/zabbix_java/lib"
1918 - rm -v *.jar || die
1919 -
1920 - java-pkg_jar-from slf4j-api
1921 -}
1922 -
1923 -src_prepare() {
1924 - default
1925 -}
1926 -
1927 -src_configure() {
1928 - econf \
1929 - $(use_enable server) \
1930 - $(use_enable proxy) \
1931 - $(use_enable agent) \
1932 - $(use_enable ipv6) \
1933 - $(use_enable static) \
1934 - $(use_enable java) \
1935 - $(use_with ldap) \
1936 - $(use_with snmp net-snmp) \
1937 - $(use_with mysql) \
1938 - $(use_with postgres postgresql) \
1939 - $(use_with oracle) \
1940 - $(use_with sqlite sqlite3) \
1941 - $(use_with xmpp jabber) \
1942 - $(use_with curl libcurl) \
1943 - $(use_with openipmi openipmi) \
1944 - $(use_with ssh ssh2) \
1945 - $(use_with libxml2) \
1946 - $(use_with odbc unixodbc) \
1947 - $(use_with ssl openssl) \
1948 - || die "econf failed"
1949 -}
1950 -
1951 -src_compile() {
1952 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1953 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
1954 - fi
1955 -}
1956 -
1957 -src_install() {
1958 - dodir \
1959 - /etc/zabbix \
1960 - /var/lib/zabbix \
1961 - /var/lib/zabbix/home \
1962 - /var/lib/zabbix/scripts \
1963 - /var/lib/zabbix/alertscripts \
1964 - /var/lib/zabbix/externalscripts \
1965 - /var/log/zabbix
1966 -
1967 - keepdir \
1968 - /etc/zabbix \
1969 - /var/lib/zabbix \
1970 - /var/lib/zabbix/home \
1971 - /var/lib/zabbix/scripts \
1972 - /var/lib/zabbix/alertscripts \
1973 - /var/lib/zabbix/externalscripts \
1974 - /var/log/zabbix
1975 -
1976 - if use server; then
1977 - insinto /etc/zabbix
1978 - doins "${FILESDIR}/3.0"/zabbix_server.conf
1979 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
1980 - dosbin src/zabbix_server/zabbix_server
1981 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
1982 - fperms 0640 /etc/zabbix/zabbix_server.conf
1983 - dodir /usr/share/zabbix
1984 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1985 - systemd_dounit "${FILESDIR}/zabbix-server.service"
1986 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
1987 - fi
1988 -
1989 - if use proxy; then
1990 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
1991 - dosbin src/zabbix_proxy/zabbix_proxy
1992 - insinto /etc/zabbix
1993 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
1994 - dodir /usr/share/zabbix
1995 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1996 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
1997 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
1998 - fi
1999 -
2000 - if use agent; then
2001 - insinto /etc/zabbix
2002 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
2003 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
2004 - dosbin src/zabbix_agent/zabbix_agentd
2005 - dobin \
2006 - src/zabbix_sender/zabbix_sender \
2007 - src/zabbix_get/zabbix_get
2008 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
2009 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
2010 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2011 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2012 - fi
2013 -
2014 - fowners zabbix:zabbix \
2015 - /etc/zabbix \
2016 - /var/lib/zabbix \
2017 - /var/lib/zabbix/home \
2018 - /var/lib/zabbix/scripts \
2019 - /var/lib/zabbix/alertscripts \
2020 - /var/lib/zabbix/externalscripts \
2021 - /var/log/zabbix
2022 - fperms 0750 \
2023 - /etc/zabbix \
2024 - /var/lib/zabbix \
2025 - /var/lib/zabbix/home \
2026 - /var/lib/zabbix/scripts \
2027 - /var/lib/zabbix/alertscripts \
2028 - /var/lib/zabbix/externalscripts \
2029 - /var/log/zabbix
2030 -
2031 - dodoc README INSTALL NEWS ChangeLog \
2032 - conf/zabbix_agentd.conf \
2033 - conf/zabbix_proxy.conf \
2034 - conf/zabbix_agentd/userparameter_examples.conf \
2035 - conf/zabbix_agentd/userparameter_mysql.conf \
2036 - conf/zabbix_server.conf
2037 -
2038 - if use frontend; then
2039 - webapp_src_preinst
2040 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2041 - webapp_configfile \
2042 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2043 - "${MY_HTDOCSDIR}"/include/config.inc.php
2044 - webapp_src_install
2045 - fi
2046 -
2047 - if use java; then
2048 - dodir \
2049 - /${ZABBIXJAVA_BASE} \
2050 - /${ZABBIXJAVA_BASE}/bin \
2051 - /${ZABBIXJAVA_BASE}/lib
2052 - keepdir /${ZABBIXJAVA_BASE}
2053 - exeinto /${ZABBIXJAVA_BASE}/bin
2054 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2055 - exeinto /${ZABBIXJAVA_BASE}/lib
2056 - doexe \
2057 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2058 - src/zabbix_java/lib/logback-console.xml \
2059 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2060 - src/zabbix_java/lib/logback.xml \
2061 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
2062 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
2063 - exeinto /${ZABBIXJAVA_BASE}/
2064 - doexe \
2065 - src/zabbix_java/settings.sh \
2066 - src/zabbix_java/startup.sh \
2067 - src/zabbix_java/shutdown.sh
2068 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
2069 - fi
2070 -}
2071 -
2072 -pkg_postinst() {
2073 - if use server || use proxy ; then
2074 - elog
2075 - elog "You may need to configure your database for Zabbix,"
2076 - elog "if you have not already done so. "
2077 - elog
2078 -
2079 - zabbix_homedir=$(egethome zabbix)
2080 - if [ -n "${zabbix_homedir}" ] && \
2081 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
2082 - ewarn
2083 - ewarn "The user 'zabbix' should have his homedir changed"
2084 - ewarn "to /var/lib/zabbix/home if you want to use"
2085 - ewarn "custom alert scripts."
2086 - ewarn
2087 - ewarn "A real homedir might be needed for configfiles"
2088 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
2089 - ewarn "using sendxmpp for Jabber alerts)."
2090 - ewarn
2091 - ewarn "To change the homedir use:"
2092 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
2093 - ewarn
2094 - fi
2095 - fi
2096 -
2097 - if use server; then
2098 - elog
2099 - elog "For distributed monitoring you have to run:"
2100 - elog
2101 - elog "zabbix_server -n <nodeid>"
2102 - elog
2103 - elog "This will convert database data for use with Node ID"
2104 - elog "and also adds a local node."
2105 - elog
2106 - fi
2107 -
2108 - elog "--"
2109 - elog
2110 - elog "You may need to add these lines to /etc/services:"
2111 - elog
2112 - elog "zabbix-agent 10050/tcp Zabbix Agent"
2113 - elog "zabbix-agent 10050/udp Zabbix Agent"
2114 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
2115 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
2116 - elog
2117 -
2118 - if use server || use proxy ; then
2119 - # check for fping
2120 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
2121 - case "${fping_perms}" in
2122 - 4[157][157][157])
2123 - ;;
2124 - *)
2125 - ewarn
2126 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
2127 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
2128 - ewarn "by everyone. Run the following command to fix it:"
2129 - ewarn
2130 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
2131 - ewarn
2132 - ewarn "Please be aware that this might impose a security risk,"
2133 - ewarn "depending on the code quality of fping."
2134 - ewarn
2135 - ;;
2136 - esac
2137 - fi
2138 -}
2139
2140 diff --git a/net-analyzer/zabbix/zabbix-3.0.12.ebuild b/net-analyzer/zabbix/zabbix-3.0.12.ebuild
2141 deleted file mode 100644
2142 index 13448bdf670..00000000000
2143 --- a/net-analyzer/zabbix/zabbix-3.0.12.ebuild
2144 +++ /dev/null
2145 @@ -1,331 +0,0 @@
2146 -# Copyright 1999-2017 Gentoo Foundation
2147 -# Distributed under the terms of the GNU General Public License v2
2148 -
2149 -EAPI="6"
2150 -
2151 -# needed to make webapp-config dep optional
2152 -WEBAPP_OPTIONAL="yes"
2153 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
2154 -
2155 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
2156 -HOMEPAGE="http://www.zabbix.com/"
2157 -MY_P=${P/_/}
2158 -MY_PV=${PV/_/}
2159 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
2160 -LICENSE="GPL-2"
2161 -SLOT="0"
2162 -WEBAPP_MANUAL_SLOT="yes"
2163 -KEYWORDS="~amd64 ~x86"
2164 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
2165 -REQUIRED_USE="|| ( agent frontend proxy server )
2166 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2167 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2168 - static? ( !oracle !snmp )"
2169 -
2170 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
2171 - ldap? (
2172 - net-nds/openldap
2173 - =dev-libs/cyrus-sasl-2*
2174 - net-libs/gnutls
2175 - )
2176 - mysql? ( >=virtual/mysql-5.0.3 )
2177 - sqlite? ( >=dev-db/sqlite-3.3.5 )
2178 - postgres? ( dev-db/postgresql:* )
2179 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
2180 - xmpp? ( dev-libs/iksemel )
2181 - libxml2? ( dev-libs/libxml2 )
2182 - curl? ( net-misc/curl )
2183 - openipmi? ( sys-libs/openipmi )
2184 - ssh? ( net-libs/libssh2 )
2185 - java? ( virtual/jdk:* )
2186 - odbc? ( dev-db/unixODBC )
2187 - ssl? ( dev-libs/openssl:=[-bindist] )"
2188 -
2189 -RDEPEND="${COMMON_DEPEND}
2190 - proxy? ( net-analyzer/fping )
2191 - server? ( net-analyzer/fping
2192 - app-admin/webapp-config )
2193 - java? (
2194 - >=virtual/jre-1.4
2195 - dev-java/slf4j-api
2196 - )
2197 - frontend? (
2198 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
2199 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
2200 - mysql? ( dev-lang/php[mysqli] )
2201 - odbc? ( dev-lang/php[odbc] )
2202 - oracle? ( dev-lang/php[oci8-instant-client] )
2203 - postgres? ( dev-lang/php[postgres] )
2204 - sqlite? ( dev-lang/php[sqlite] )
2205 - media-libs/gd[png]
2206 - app-admin/webapp-config )"
2207 -DEPEND="${COMMON_DEPEND}
2208 - static? (
2209 - ldap? (
2210 - net-nds/openldap[static-libs]
2211 - =dev-libs/cyrus-sasl-2*[static-libs]
2212 - net-libs/gnutls[static-libs]
2213 - )
2214 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
2215 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
2216 - postgres? ( dev-db/postgresql:*[static-libs] )
2217 - libxml2? ( dev-libs/libxml2[static-libs] )
2218 - curl? ( net-misc/curl[static-libs] )
2219 - ssh? ( net-libs/libssh2[static-libs] )
2220 - odbc? ( dev-db/unixODBC[static-libs] )
2221 - )
2222 - virtual/pkgconfig"
2223 -
2224 -S=${WORKDIR}/${MY_P}
2225 -
2226 -ZABBIXJAVA_BASE="opt/zabbix_java"
2227 -
2228 -pkg_setup() {
2229 - if use oracle; then
2230 - if [ -z "${ORACLE_HOME}" ]; then
2231 - eerror
2232 - eerror "The environment variable ORACLE_HOME must be set"
2233 - eerror "and point to the correct location."
2234 - eerror "It looks like you don't have Oracle installed."
2235 - eerror
2236 - die "Environment variable ORACLE_HOME is not set"
2237 - fi
2238 - if has_version 'dev-db/oracle-instantclient-basic'; then
2239 - ewarn
2240 - ewarn "Please ensure you have a full install of the Oracle client."
2241 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
2242 - ewarn
2243 - fi
2244 - fi
2245 -
2246 - if use frontend; then
2247 - webapp_pkg_setup
2248 - fi
2249 -
2250 - enewgroup zabbix
2251 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
2252 -}
2253 -
2254 -java_prepare() {
2255 - cd "${S}/src/zabbix_java/lib"
2256 - rm -v *.jar || die
2257 -
2258 - java-pkg_jar-from slf4j-api
2259 -}
2260 -
2261 -src_prepare() {
2262 - default
2263 -}
2264 -
2265 -src_configure() {
2266 - econf \
2267 - $(use_enable server) \
2268 - $(use_enable proxy) \
2269 - $(use_enable agent) \
2270 - $(use_enable ipv6) \
2271 - $(use_enable static) \
2272 - $(use_enable java) \
2273 - $(use_with ldap) \
2274 - $(use_with snmp net-snmp) \
2275 - $(use_with mysql) \
2276 - $(use_with postgres postgresql) \
2277 - $(use_with oracle) \
2278 - $(use_with sqlite sqlite3) \
2279 - $(use_with xmpp jabber) \
2280 - $(use_with curl libcurl) \
2281 - $(use_with openipmi openipmi) \
2282 - $(use_with ssh ssh2) \
2283 - $(use_with libxml2) \
2284 - $(use_with odbc unixodbc) \
2285 - $(use_with ssl openssl) \
2286 - || die "econf failed"
2287 -}
2288 -
2289 -src_compile() {
2290 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
2291 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
2292 - fi
2293 -}
2294 -
2295 -src_install() {
2296 - dodir \
2297 - /etc/zabbix \
2298 - /var/lib/zabbix \
2299 - /var/lib/zabbix/home \
2300 - /var/lib/zabbix/scripts \
2301 - /var/lib/zabbix/alertscripts \
2302 - /var/lib/zabbix/externalscripts \
2303 - /var/log/zabbix
2304 -
2305 - keepdir \
2306 - /etc/zabbix \
2307 - /var/lib/zabbix \
2308 - /var/lib/zabbix/home \
2309 - /var/lib/zabbix/scripts \
2310 - /var/lib/zabbix/alertscripts \
2311 - /var/lib/zabbix/externalscripts \
2312 - /var/log/zabbix
2313 -
2314 - if use server; then
2315 - insinto /etc/zabbix
2316 - doins "${FILESDIR}/3.0"/zabbix_server.conf
2317 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
2318 - dosbin src/zabbix_server/zabbix_server
2319 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
2320 - fperms 0640 /etc/zabbix/zabbix_server.conf
2321 - dodir /usr/share/zabbix
2322 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2323 - systemd_dounit "${FILESDIR}/zabbix-server.service"
2324 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
2325 - fi
2326 -
2327 - if use proxy; then
2328 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
2329 - dosbin src/zabbix_proxy/zabbix_proxy
2330 - insinto /etc/zabbix
2331 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
2332 - dodir /usr/share/zabbix
2333 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2334 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
2335 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
2336 - fi
2337 -
2338 - if use agent; then
2339 - insinto /etc/zabbix
2340 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
2341 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
2342 - dosbin src/zabbix_agent/zabbix_agentd
2343 - dobin \
2344 - src/zabbix_sender/zabbix_sender \
2345 - src/zabbix_get/zabbix_get
2346 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
2347 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
2348 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2349 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2350 - fi
2351 -
2352 - fowners zabbix:zabbix \
2353 - /etc/zabbix \
2354 - /var/lib/zabbix \
2355 - /var/lib/zabbix/home \
2356 - /var/lib/zabbix/scripts \
2357 - /var/lib/zabbix/alertscripts \
2358 - /var/lib/zabbix/externalscripts \
2359 - /var/log/zabbix
2360 - fperms 0750 \
2361 - /etc/zabbix \
2362 - /var/lib/zabbix \
2363 - /var/lib/zabbix/home \
2364 - /var/lib/zabbix/scripts \
2365 - /var/lib/zabbix/alertscripts \
2366 - /var/lib/zabbix/externalscripts \
2367 - /var/log/zabbix
2368 -
2369 - dodoc README INSTALL NEWS ChangeLog \
2370 - conf/zabbix_agentd.conf \
2371 - conf/zabbix_proxy.conf \
2372 - conf/zabbix_agentd/userparameter_examples.conf \
2373 - conf/zabbix_agentd/userparameter_mysql.conf \
2374 - conf/zabbix_server.conf
2375 -
2376 - if use frontend; then
2377 - webapp_src_preinst
2378 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2379 - webapp_configfile \
2380 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2381 - "${MY_HTDOCSDIR}"/include/config.inc.php
2382 - webapp_src_install
2383 - fi
2384 -
2385 - if use java; then
2386 - dodir \
2387 - /${ZABBIXJAVA_BASE} \
2388 - /${ZABBIXJAVA_BASE}/bin \
2389 - /${ZABBIXJAVA_BASE}/lib
2390 - keepdir /${ZABBIXJAVA_BASE}
2391 - exeinto /${ZABBIXJAVA_BASE}/bin
2392 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2393 - exeinto /${ZABBIXJAVA_BASE}/lib
2394 - doexe \
2395 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2396 - src/zabbix_java/lib/logback-console.xml \
2397 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2398 - src/zabbix_java/lib/logback.xml \
2399 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
2400 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
2401 - exeinto /${ZABBIXJAVA_BASE}/
2402 - doexe \
2403 - src/zabbix_java/settings.sh \
2404 - src/zabbix_java/startup.sh \
2405 - src/zabbix_java/shutdown.sh
2406 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
2407 - fi
2408 -}
2409 -
2410 -pkg_postinst() {
2411 - if use server || use proxy ; then
2412 - elog
2413 - elog "You may need to configure your database for Zabbix,"
2414 - elog "if you have not already done so. "
2415 - elog
2416 -
2417 - zabbix_homedir=$(egethome zabbix)
2418 - if [ -n "${zabbix_homedir}" ] && \
2419 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
2420 - ewarn
2421 - ewarn "The user 'zabbix' should have his homedir changed"
2422 - ewarn "to /var/lib/zabbix/home if you want to use"
2423 - ewarn "custom alert scripts."
2424 - ewarn
2425 - ewarn "A real homedir might be needed for configfiles"
2426 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
2427 - ewarn "using sendxmpp for Jabber alerts)."
2428 - ewarn
2429 - ewarn "To change the homedir use:"
2430 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
2431 - ewarn
2432 - fi
2433 - fi
2434 -
2435 - if use server; then
2436 - elog
2437 - elog "For distributed monitoring you have to run:"
2438 - elog
2439 - elog "zabbix_server -n <nodeid>"
2440 - elog
2441 - elog "This will convert database data for use with Node ID"
2442 - elog "and also adds a local node."
2443 - elog
2444 - fi
2445 -
2446 - elog "--"
2447 - elog
2448 - elog "You may need to add these lines to /etc/services:"
2449 - elog
2450 - elog "zabbix-agent 10050/tcp Zabbix Agent"
2451 - elog "zabbix-agent 10050/udp Zabbix Agent"
2452 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
2453 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
2454 - elog
2455 -
2456 - if use server || use proxy ; then
2457 - # check for fping
2458 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
2459 - case "${fping_perms}" in
2460 - 4[157][157][157])
2461 - ;;
2462 - *)
2463 - ewarn
2464 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
2465 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
2466 - ewarn "by everyone. Run the following command to fix it:"
2467 - ewarn
2468 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
2469 - ewarn
2470 - ewarn "Please be aware that this might impose a security risk,"
2471 - ewarn "depending on the code quality of fping."
2472 - ewarn
2473 - ;;
2474 - esac
2475 - fi
2476 -}
2477
2478 diff --git a/net-analyzer/zabbix/zabbix-3.0.13.ebuild b/net-analyzer/zabbix/zabbix-3.0.13.ebuild
2479 deleted file mode 100644
2480 index 13448bdf670..00000000000
2481 --- a/net-analyzer/zabbix/zabbix-3.0.13.ebuild
2482 +++ /dev/null
2483 @@ -1,331 +0,0 @@
2484 -# Copyright 1999-2017 Gentoo Foundation
2485 -# Distributed under the terms of the GNU General Public License v2
2486 -
2487 -EAPI="6"
2488 -
2489 -# needed to make webapp-config dep optional
2490 -WEBAPP_OPTIONAL="yes"
2491 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
2492 -
2493 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
2494 -HOMEPAGE="http://www.zabbix.com/"
2495 -MY_P=${P/_/}
2496 -MY_PV=${PV/_/}
2497 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
2498 -LICENSE="GPL-2"
2499 -SLOT="0"
2500 -WEBAPP_MANUAL_SLOT="yes"
2501 -KEYWORDS="~amd64 ~x86"
2502 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
2503 -REQUIRED_USE="|| ( agent frontend proxy server )
2504 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2505 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2506 - static? ( !oracle !snmp )"
2507 -
2508 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
2509 - ldap? (
2510 - net-nds/openldap
2511 - =dev-libs/cyrus-sasl-2*
2512 - net-libs/gnutls
2513 - )
2514 - mysql? ( >=virtual/mysql-5.0.3 )
2515 - sqlite? ( >=dev-db/sqlite-3.3.5 )
2516 - postgres? ( dev-db/postgresql:* )
2517 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
2518 - xmpp? ( dev-libs/iksemel )
2519 - libxml2? ( dev-libs/libxml2 )
2520 - curl? ( net-misc/curl )
2521 - openipmi? ( sys-libs/openipmi )
2522 - ssh? ( net-libs/libssh2 )
2523 - java? ( virtual/jdk:* )
2524 - odbc? ( dev-db/unixODBC )
2525 - ssl? ( dev-libs/openssl:=[-bindist] )"
2526 -
2527 -RDEPEND="${COMMON_DEPEND}
2528 - proxy? ( net-analyzer/fping )
2529 - server? ( net-analyzer/fping
2530 - app-admin/webapp-config )
2531 - java? (
2532 - >=virtual/jre-1.4
2533 - dev-java/slf4j-api
2534 - )
2535 - frontend? (
2536 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
2537 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
2538 - mysql? ( dev-lang/php[mysqli] )
2539 - odbc? ( dev-lang/php[odbc] )
2540 - oracle? ( dev-lang/php[oci8-instant-client] )
2541 - postgres? ( dev-lang/php[postgres] )
2542 - sqlite? ( dev-lang/php[sqlite] )
2543 - media-libs/gd[png]
2544 - app-admin/webapp-config )"
2545 -DEPEND="${COMMON_DEPEND}
2546 - static? (
2547 - ldap? (
2548 - net-nds/openldap[static-libs]
2549 - =dev-libs/cyrus-sasl-2*[static-libs]
2550 - net-libs/gnutls[static-libs]
2551 - )
2552 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
2553 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
2554 - postgres? ( dev-db/postgresql:*[static-libs] )
2555 - libxml2? ( dev-libs/libxml2[static-libs] )
2556 - curl? ( net-misc/curl[static-libs] )
2557 - ssh? ( net-libs/libssh2[static-libs] )
2558 - odbc? ( dev-db/unixODBC[static-libs] )
2559 - )
2560 - virtual/pkgconfig"
2561 -
2562 -S=${WORKDIR}/${MY_P}
2563 -
2564 -ZABBIXJAVA_BASE="opt/zabbix_java"
2565 -
2566 -pkg_setup() {
2567 - if use oracle; then
2568 - if [ -z "${ORACLE_HOME}" ]; then
2569 - eerror
2570 - eerror "The environment variable ORACLE_HOME must be set"
2571 - eerror "and point to the correct location."
2572 - eerror "It looks like you don't have Oracle installed."
2573 - eerror
2574 - die "Environment variable ORACLE_HOME is not set"
2575 - fi
2576 - if has_version 'dev-db/oracle-instantclient-basic'; then
2577 - ewarn
2578 - ewarn "Please ensure you have a full install of the Oracle client."
2579 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
2580 - ewarn
2581 - fi
2582 - fi
2583 -
2584 - if use frontend; then
2585 - webapp_pkg_setup
2586 - fi
2587 -
2588 - enewgroup zabbix
2589 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
2590 -}
2591 -
2592 -java_prepare() {
2593 - cd "${S}/src/zabbix_java/lib"
2594 - rm -v *.jar || die
2595 -
2596 - java-pkg_jar-from slf4j-api
2597 -}
2598 -
2599 -src_prepare() {
2600 - default
2601 -}
2602 -
2603 -src_configure() {
2604 - econf \
2605 - $(use_enable server) \
2606 - $(use_enable proxy) \
2607 - $(use_enable agent) \
2608 - $(use_enable ipv6) \
2609 - $(use_enable static) \
2610 - $(use_enable java) \
2611 - $(use_with ldap) \
2612 - $(use_with snmp net-snmp) \
2613 - $(use_with mysql) \
2614 - $(use_with postgres postgresql) \
2615 - $(use_with oracle) \
2616 - $(use_with sqlite sqlite3) \
2617 - $(use_with xmpp jabber) \
2618 - $(use_with curl libcurl) \
2619 - $(use_with openipmi openipmi) \
2620 - $(use_with ssh ssh2) \
2621 - $(use_with libxml2) \
2622 - $(use_with odbc unixodbc) \
2623 - $(use_with ssl openssl) \
2624 - || die "econf failed"
2625 -}
2626 -
2627 -src_compile() {
2628 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
2629 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
2630 - fi
2631 -}
2632 -
2633 -src_install() {
2634 - dodir \
2635 - /etc/zabbix \
2636 - /var/lib/zabbix \
2637 - /var/lib/zabbix/home \
2638 - /var/lib/zabbix/scripts \
2639 - /var/lib/zabbix/alertscripts \
2640 - /var/lib/zabbix/externalscripts \
2641 - /var/log/zabbix
2642 -
2643 - keepdir \
2644 - /etc/zabbix \
2645 - /var/lib/zabbix \
2646 - /var/lib/zabbix/home \
2647 - /var/lib/zabbix/scripts \
2648 - /var/lib/zabbix/alertscripts \
2649 - /var/lib/zabbix/externalscripts \
2650 - /var/log/zabbix
2651 -
2652 - if use server; then
2653 - insinto /etc/zabbix
2654 - doins "${FILESDIR}/3.0"/zabbix_server.conf
2655 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
2656 - dosbin src/zabbix_server/zabbix_server
2657 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
2658 - fperms 0640 /etc/zabbix/zabbix_server.conf
2659 - dodir /usr/share/zabbix
2660 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2661 - systemd_dounit "${FILESDIR}/zabbix-server.service"
2662 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
2663 - fi
2664 -
2665 - if use proxy; then
2666 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
2667 - dosbin src/zabbix_proxy/zabbix_proxy
2668 - insinto /etc/zabbix
2669 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
2670 - dodir /usr/share/zabbix
2671 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2672 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
2673 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
2674 - fi
2675 -
2676 - if use agent; then
2677 - insinto /etc/zabbix
2678 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
2679 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
2680 - dosbin src/zabbix_agent/zabbix_agentd
2681 - dobin \
2682 - src/zabbix_sender/zabbix_sender \
2683 - src/zabbix_get/zabbix_get
2684 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
2685 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
2686 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2687 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2688 - fi
2689 -
2690 - fowners zabbix:zabbix \
2691 - /etc/zabbix \
2692 - /var/lib/zabbix \
2693 - /var/lib/zabbix/home \
2694 - /var/lib/zabbix/scripts \
2695 - /var/lib/zabbix/alertscripts \
2696 - /var/lib/zabbix/externalscripts \
2697 - /var/log/zabbix
2698 - fperms 0750 \
2699 - /etc/zabbix \
2700 - /var/lib/zabbix \
2701 - /var/lib/zabbix/home \
2702 - /var/lib/zabbix/scripts \
2703 - /var/lib/zabbix/alertscripts \
2704 - /var/lib/zabbix/externalscripts \
2705 - /var/log/zabbix
2706 -
2707 - dodoc README INSTALL NEWS ChangeLog \
2708 - conf/zabbix_agentd.conf \
2709 - conf/zabbix_proxy.conf \
2710 - conf/zabbix_agentd/userparameter_examples.conf \
2711 - conf/zabbix_agentd/userparameter_mysql.conf \
2712 - conf/zabbix_server.conf
2713 -
2714 - if use frontend; then
2715 - webapp_src_preinst
2716 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2717 - webapp_configfile \
2718 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2719 - "${MY_HTDOCSDIR}"/include/config.inc.php
2720 - webapp_src_install
2721 - fi
2722 -
2723 - if use java; then
2724 - dodir \
2725 - /${ZABBIXJAVA_BASE} \
2726 - /${ZABBIXJAVA_BASE}/bin \
2727 - /${ZABBIXJAVA_BASE}/lib
2728 - keepdir /${ZABBIXJAVA_BASE}
2729 - exeinto /${ZABBIXJAVA_BASE}/bin
2730 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2731 - exeinto /${ZABBIXJAVA_BASE}/lib
2732 - doexe \
2733 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2734 - src/zabbix_java/lib/logback-console.xml \
2735 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2736 - src/zabbix_java/lib/logback.xml \
2737 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
2738 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
2739 - exeinto /${ZABBIXJAVA_BASE}/
2740 - doexe \
2741 - src/zabbix_java/settings.sh \
2742 - src/zabbix_java/startup.sh \
2743 - src/zabbix_java/shutdown.sh
2744 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
2745 - fi
2746 -}
2747 -
2748 -pkg_postinst() {
2749 - if use server || use proxy ; then
2750 - elog
2751 - elog "You may need to configure your database for Zabbix,"
2752 - elog "if you have not already done so. "
2753 - elog
2754 -
2755 - zabbix_homedir=$(egethome zabbix)
2756 - if [ -n "${zabbix_homedir}" ] && \
2757 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
2758 - ewarn
2759 - ewarn "The user 'zabbix' should have his homedir changed"
2760 - ewarn "to /var/lib/zabbix/home if you want to use"
2761 - ewarn "custom alert scripts."
2762 - ewarn
2763 - ewarn "A real homedir might be needed for configfiles"
2764 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
2765 - ewarn "using sendxmpp for Jabber alerts)."
2766 - ewarn
2767 - ewarn "To change the homedir use:"
2768 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
2769 - ewarn
2770 - fi
2771 - fi
2772 -
2773 - if use server; then
2774 - elog
2775 - elog "For distributed monitoring you have to run:"
2776 - elog
2777 - elog "zabbix_server -n <nodeid>"
2778 - elog
2779 - elog "This will convert database data for use with Node ID"
2780 - elog "and also adds a local node."
2781 - elog
2782 - fi
2783 -
2784 - elog "--"
2785 - elog
2786 - elog "You may need to add these lines to /etc/services:"
2787 - elog
2788 - elog "zabbix-agent 10050/tcp Zabbix Agent"
2789 - elog "zabbix-agent 10050/udp Zabbix Agent"
2790 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
2791 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
2792 - elog
2793 -
2794 - if use server || use proxy ; then
2795 - # check for fping
2796 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
2797 - case "${fping_perms}" in
2798 - 4[157][157][157])
2799 - ;;
2800 - *)
2801 - ewarn
2802 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
2803 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
2804 - ewarn "by everyone. Run the following command to fix it:"
2805 - ewarn
2806 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
2807 - ewarn
2808 - ewarn "Please be aware that this might impose a security risk,"
2809 - ewarn "depending on the code quality of fping."
2810 - ewarn
2811 - ;;
2812 - esac
2813 - fi
2814 -}
2815
2816 diff --git a/net-analyzer/zabbix/zabbix-3.0.6.ebuild b/net-analyzer/zabbix/zabbix-3.0.6.ebuild
2817 deleted file mode 100644
2818 index c914ecab521..00000000000
2819 --- a/net-analyzer/zabbix/zabbix-3.0.6.ebuild
2820 +++ /dev/null
2821 @@ -1,331 +0,0 @@
2822 -# Copyright 1999-2016 Gentoo Foundation
2823 -# Distributed under the terms of the GNU General Public License v2
2824 -
2825 -EAPI="6"
2826 -
2827 -# needed to make webapp-config dep optional
2828 -WEBAPP_OPTIONAL="yes"
2829 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
2830 -
2831 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
2832 -HOMEPAGE="http://www.zabbix.com/"
2833 -MY_P=${P/_/}
2834 -MY_PV=${PV/_/}
2835 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
2836 -LICENSE="GPL-2"
2837 -SLOT="0"
2838 -WEBAPP_MANUAL_SLOT="yes"
2839 -KEYWORDS="~amd64 ~x86"
2840 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
2841 -REQUIRED_USE="|| ( agent frontend proxy server )
2842 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2843 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2844 - static? ( !oracle !snmp )"
2845 -
2846 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
2847 - ldap? (
2848 - net-nds/openldap
2849 - =dev-libs/cyrus-sasl-2*
2850 - net-libs/gnutls
2851 - )
2852 - mysql? ( >=virtual/mysql-5.0.3 )
2853 - sqlite? ( >=dev-db/sqlite-3.3.5 )
2854 - postgres? ( dev-db/postgresql:* )
2855 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
2856 - xmpp? ( dev-libs/iksemel )
2857 - libxml2? ( dev-libs/libxml2 )
2858 - curl? ( net-misc/curl )
2859 - openipmi? ( sys-libs/openipmi )
2860 - ssh? ( net-libs/libssh2 )
2861 - java? ( virtual/jdk:* )
2862 - odbc? ( dev-db/unixODBC )
2863 - ssl? ( dev-libs/openssl:=[-bindist] )"
2864 -
2865 -RDEPEND="${COMMON_DEPEND}
2866 - proxy? ( net-analyzer/fping )
2867 - server? ( net-analyzer/fping
2868 - app-admin/webapp-config )
2869 - java? (
2870 - >=virtual/jre-1.4
2871 - dev-java/slf4j-api
2872 - )
2873 - frontend? (
2874 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
2875 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
2876 - mysql? ( dev-lang/php[mysqli] )
2877 - odbc? ( dev-lang/php[odbc] )
2878 - oracle? ( dev-lang/php[oci8-instant-client] )
2879 - postgres? ( dev-lang/php[postgres] )
2880 - sqlite? ( dev-lang/php[sqlite] )
2881 - media-libs/gd[png]
2882 - app-admin/webapp-config )"
2883 -DEPEND="${COMMON_DEPEND}
2884 - static? (
2885 - ldap? (
2886 - net-nds/openldap[static-libs]
2887 - =dev-libs/cyrus-sasl-2*[static-libs]
2888 - net-libs/gnutls[static-libs]
2889 - )
2890 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
2891 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
2892 - postgres? ( dev-db/postgresql:*[static-libs] )
2893 - libxml2? ( dev-libs/libxml2[static-libs] )
2894 - curl? ( net-misc/curl[static-libs] )
2895 - ssh? ( net-libs/libssh2[static-libs] )
2896 - odbc? ( dev-db/unixODBC[static-libs] )
2897 - )
2898 - virtual/pkgconfig"
2899 -
2900 -S=${WORKDIR}/${MY_P}
2901 -
2902 -ZABBIXJAVA_BASE="opt/zabbix_java"
2903 -
2904 -pkg_setup() {
2905 - if use oracle; then
2906 - if [ -z "${ORACLE_HOME}" ]; then
2907 - eerror
2908 - eerror "The environment variable ORACLE_HOME must be set"
2909 - eerror "and point to the correct location."
2910 - eerror "It looks like you don't have Oracle installed."
2911 - eerror
2912 - die "Environment variable ORACLE_HOME is not set"
2913 - fi
2914 - if has_version 'dev-db/oracle-instantclient-basic'; then
2915 - ewarn
2916 - ewarn "Please ensure you have a full install of the Oracle client."
2917 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
2918 - ewarn
2919 - fi
2920 - fi
2921 -
2922 - if use frontend; then
2923 - webapp_pkg_setup
2924 - fi
2925 -
2926 - enewgroup zabbix
2927 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
2928 -}
2929 -
2930 -java_prepare() {
2931 - cd "${S}/src/zabbix_java/lib"
2932 - rm -v *.jar || die
2933 -
2934 - java-pkg_jar-from slf4j-api
2935 -}
2936 -
2937 -src_prepare() {
2938 - default
2939 -}
2940 -
2941 -src_configure() {
2942 - econf \
2943 - $(use_enable server) \
2944 - $(use_enable proxy) \
2945 - $(use_enable agent) \
2946 - $(use_enable ipv6) \
2947 - $(use_enable static) \
2948 - $(use_enable java) \
2949 - $(use_with ldap) \
2950 - $(use_with snmp net-snmp) \
2951 - $(use_with mysql) \
2952 - $(use_with postgres postgresql) \
2953 - $(use_with oracle) \
2954 - $(use_with sqlite sqlite3) \
2955 - $(use_with xmpp jabber) \
2956 - $(use_with curl libcurl) \
2957 - $(use_with openipmi openipmi) \
2958 - $(use_with ssh ssh2) \
2959 - $(use_with libxml2) \
2960 - $(use_with odbc unixodbc) \
2961 - $(use_with ssl openssl) \
2962 - || die "econf failed"
2963 -}
2964 -
2965 -src_compile() {
2966 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
2967 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
2968 - fi
2969 -}
2970 -
2971 -src_install() {
2972 - dodir \
2973 - /etc/zabbix \
2974 - /var/lib/zabbix \
2975 - /var/lib/zabbix/home \
2976 - /var/lib/zabbix/scripts \
2977 - /var/lib/zabbix/alertscripts \
2978 - /var/lib/zabbix/externalscripts \
2979 - /var/log/zabbix
2980 -
2981 - keepdir \
2982 - /etc/zabbix \
2983 - /var/lib/zabbix \
2984 - /var/lib/zabbix/home \
2985 - /var/lib/zabbix/scripts \
2986 - /var/lib/zabbix/alertscripts \
2987 - /var/lib/zabbix/externalscripts \
2988 - /var/log/zabbix
2989 -
2990 - if use server; then
2991 - insinto /etc/zabbix
2992 - doins "${FILESDIR}/3.0"/zabbix_server.conf
2993 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
2994 - dosbin src/zabbix_server/zabbix_server
2995 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
2996 - fperms 0640 /etc/zabbix/zabbix_server.conf
2997 - dodir /usr/share/zabbix
2998 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2999 - systemd_dounit "${FILESDIR}/zabbix-server.service"
3000 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
3001 - fi
3002 -
3003 - if use proxy; then
3004 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
3005 - dosbin src/zabbix_proxy/zabbix_proxy
3006 - insinto /etc/zabbix
3007 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
3008 - dodir /usr/share/zabbix
3009 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
3010 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
3011 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
3012 - fi
3013 -
3014 - if use agent; then
3015 - insinto /etc/zabbix
3016 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
3017 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
3018 - dosbin src/zabbix_agent/zabbix_agentd
3019 - dobin \
3020 - src/zabbix_sender/zabbix_sender \
3021 - src/zabbix_get/zabbix_get
3022 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
3023 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
3024 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
3025 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
3026 - fi
3027 -
3028 - fowners zabbix:zabbix \
3029 - /etc/zabbix \
3030 - /var/lib/zabbix \
3031 - /var/lib/zabbix/home \
3032 - /var/lib/zabbix/scripts \
3033 - /var/lib/zabbix/alertscripts \
3034 - /var/lib/zabbix/externalscripts \
3035 - /var/log/zabbix
3036 - fperms 0750 \
3037 - /etc/zabbix \
3038 - /var/lib/zabbix \
3039 - /var/lib/zabbix/home \
3040 - /var/lib/zabbix/scripts \
3041 - /var/lib/zabbix/alertscripts \
3042 - /var/lib/zabbix/externalscripts \
3043 - /var/log/zabbix
3044 -
3045 - dodoc README INSTALL NEWS ChangeLog \
3046 - conf/zabbix_agentd.conf \
3047 - conf/zabbix_proxy.conf \
3048 - conf/zabbix_agentd/userparameter_examples.conf \
3049 - conf/zabbix_agentd/userparameter_mysql.conf \
3050 - conf/zabbix_server.conf
3051 -
3052 - if use frontend; then
3053 - webapp_src_preinst
3054 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
3055 - webapp_configfile \
3056 - "${MY_HTDOCSDIR}"/include/db.inc.php \
3057 - "${MY_HTDOCSDIR}"/include/config.inc.php
3058 - webapp_src_install
3059 - fi
3060 -
3061 - if use java; then
3062 - dodir \
3063 - /${ZABBIXJAVA_BASE} \
3064 - /${ZABBIXJAVA_BASE}/bin \
3065 - /${ZABBIXJAVA_BASE}/lib
3066 - keepdir /${ZABBIXJAVA_BASE}
3067 - exeinto /${ZABBIXJAVA_BASE}/bin
3068 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
3069 - exeinto /${ZABBIXJAVA_BASE}/lib
3070 - doexe \
3071 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
3072 - src/zabbix_java/lib/logback-console.xml \
3073 - src/zabbix_java/lib/logback-core-0.9.27.jar \
3074 - src/zabbix_java/lib/logback.xml \
3075 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
3076 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
3077 - exeinto /${ZABBIXJAVA_BASE}/
3078 - doexe \
3079 - src/zabbix_java/settings.sh \
3080 - src/zabbix_java/startup.sh \
3081 - src/zabbix_java/shutdown.sh
3082 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
3083 - fi
3084 -}
3085 -
3086 -pkg_postinst() {
3087 - if use server || use proxy ; then
3088 - elog
3089 - elog "You may need to configure your database for Zabbix,"
3090 - elog "if you have not already done so. "
3091 - elog
3092 -
3093 - zabbix_homedir=$(egethome zabbix)
3094 - if [ -n "${zabbix_homedir}" ] && \
3095 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
3096 - ewarn
3097 - ewarn "The user 'zabbix' should have his homedir changed"
3098 - ewarn "to /var/lib/zabbix/home if you want to use"
3099 - ewarn "custom alert scripts."
3100 - ewarn
3101 - ewarn "A real homedir might be needed for configfiles"
3102 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
3103 - ewarn "using sendxmpp for Jabber alerts)."
3104 - ewarn
3105 - ewarn "To change the homedir use:"
3106 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
3107 - ewarn
3108 - fi
3109 - fi
3110 -
3111 - if use server; then
3112 - elog
3113 - elog "For distributed monitoring you have to run:"
3114 - elog
3115 - elog "zabbix_server -n <nodeid>"
3116 - elog
3117 - elog "This will convert database data for use with Node ID"
3118 - elog "and also adds a local node."
3119 - elog
3120 - fi
3121 -
3122 - elog "--"
3123 - elog
3124 - elog "You may need to add these lines to /etc/services:"
3125 - elog
3126 - elog "zabbix-agent 10050/tcp Zabbix Agent"
3127 - elog "zabbix-agent 10050/udp Zabbix Agent"
3128 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
3129 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
3130 - elog
3131 -
3132 - if use server || use proxy ; then
3133 - # check for fping
3134 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
3135 - case "${fping_perms}" in
3136 - 4[157][157][157])
3137 - ;;
3138 - *)
3139 - ewarn
3140 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
3141 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
3142 - ewarn "by everyone. Run the following command to fix it:"
3143 - ewarn
3144 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
3145 - ewarn
3146 - ewarn "Please be aware that this might impose a security risk,"
3147 - ewarn "depending on the code quality of fping."
3148 - ewarn
3149 - ;;
3150 - esac
3151 - fi
3152 -}
3153
3154 diff --git a/net-analyzer/zabbix/zabbix-3.0.8.ebuild b/net-analyzer/zabbix/zabbix-3.0.8.ebuild
3155 deleted file mode 100644
3156 index 13448bdf670..00000000000
3157 --- a/net-analyzer/zabbix/zabbix-3.0.8.ebuild
3158 +++ /dev/null
3159 @@ -1,331 +0,0 @@
3160 -# Copyright 1999-2017 Gentoo Foundation
3161 -# Distributed under the terms of the GNU General Public License v2
3162 -
3163 -EAPI="6"
3164 -
3165 -# needed to make webapp-config dep optional
3166 -WEBAPP_OPTIONAL="yes"
3167 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
3168 -
3169 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
3170 -HOMEPAGE="http://www.zabbix.com/"
3171 -MY_P=${P/_/}
3172 -MY_PV=${PV/_/}
3173 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
3174 -LICENSE="GPL-2"
3175 -SLOT="0"
3176 -WEBAPP_MANUAL_SLOT="yes"
3177 -KEYWORDS="~amd64 ~x86"
3178 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
3179 -REQUIRED_USE="|| ( agent frontend proxy server )
3180 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
3181 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
3182 - static? ( !oracle !snmp )"
3183 -
3184 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
3185 - ldap? (
3186 - net-nds/openldap
3187 - =dev-libs/cyrus-sasl-2*
3188 - net-libs/gnutls
3189 - )
3190 - mysql? ( >=virtual/mysql-5.0.3 )
3191 - sqlite? ( >=dev-db/sqlite-3.3.5 )
3192 - postgres? ( dev-db/postgresql:* )
3193 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
3194 - xmpp? ( dev-libs/iksemel )
3195 - libxml2? ( dev-libs/libxml2 )
3196 - curl? ( net-misc/curl )
3197 - openipmi? ( sys-libs/openipmi )
3198 - ssh? ( net-libs/libssh2 )
3199 - java? ( virtual/jdk:* )
3200 - odbc? ( dev-db/unixODBC )
3201 - ssl? ( dev-libs/openssl:=[-bindist] )"
3202 -
3203 -RDEPEND="${COMMON_DEPEND}
3204 - proxy? ( net-analyzer/fping )
3205 - server? ( net-analyzer/fping
3206 - app-admin/webapp-config )
3207 - java? (
3208 - >=virtual/jre-1.4
3209 - dev-java/slf4j-api
3210 - )
3211 - frontend? (
3212 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
3213 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
3214 - mysql? ( dev-lang/php[mysqli] )
3215 - odbc? ( dev-lang/php[odbc] )
3216 - oracle? ( dev-lang/php[oci8-instant-client] )
3217 - postgres? ( dev-lang/php[postgres] )
3218 - sqlite? ( dev-lang/php[sqlite] )
3219 - media-libs/gd[png]
3220 - app-admin/webapp-config )"
3221 -DEPEND="${COMMON_DEPEND}
3222 - static? (
3223 - ldap? (
3224 - net-nds/openldap[static-libs]
3225 - =dev-libs/cyrus-sasl-2*[static-libs]
3226 - net-libs/gnutls[static-libs]
3227 - )
3228 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
3229 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
3230 - postgres? ( dev-db/postgresql:*[static-libs] )
3231 - libxml2? ( dev-libs/libxml2[static-libs] )
3232 - curl? ( net-misc/curl[static-libs] )
3233 - ssh? ( net-libs/libssh2[static-libs] )
3234 - odbc? ( dev-db/unixODBC[static-libs] )
3235 - )
3236 - virtual/pkgconfig"
3237 -
3238 -S=${WORKDIR}/${MY_P}
3239 -
3240 -ZABBIXJAVA_BASE="opt/zabbix_java"
3241 -
3242 -pkg_setup() {
3243 - if use oracle; then
3244 - if [ -z "${ORACLE_HOME}" ]; then
3245 - eerror
3246 - eerror "The environment variable ORACLE_HOME must be set"
3247 - eerror "and point to the correct location."
3248 - eerror "It looks like you don't have Oracle installed."
3249 - eerror
3250 - die "Environment variable ORACLE_HOME is not set"
3251 - fi
3252 - if has_version 'dev-db/oracle-instantclient-basic'; then
3253 - ewarn
3254 - ewarn "Please ensure you have a full install of the Oracle client."
3255 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
3256 - ewarn
3257 - fi
3258 - fi
3259 -
3260 - if use frontend; then
3261 - webapp_pkg_setup
3262 - fi
3263 -
3264 - enewgroup zabbix
3265 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
3266 -}
3267 -
3268 -java_prepare() {
3269 - cd "${S}/src/zabbix_java/lib"
3270 - rm -v *.jar || die
3271 -
3272 - java-pkg_jar-from slf4j-api
3273 -}
3274 -
3275 -src_prepare() {
3276 - default
3277 -}
3278 -
3279 -src_configure() {
3280 - econf \
3281 - $(use_enable server) \
3282 - $(use_enable proxy) \
3283 - $(use_enable agent) \
3284 - $(use_enable ipv6) \
3285 - $(use_enable static) \
3286 - $(use_enable java) \
3287 - $(use_with ldap) \
3288 - $(use_with snmp net-snmp) \
3289 - $(use_with mysql) \
3290 - $(use_with postgres postgresql) \
3291 - $(use_with oracle) \
3292 - $(use_with sqlite sqlite3) \
3293 - $(use_with xmpp jabber) \
3294 - $(use_with curl libcurl) \
3295 - $(use_with openipmi openipmi) \
3296 - $(use_with ssh ssh2) \
3297 - $(use_with libxml2) \
3298 - $(use_with odbc unixodbc) \
3299 - $(use_with ssl openssl) \
3300 - || die "econf failed"
3301 -}
3302 -
3303 -src_compile() {
3304 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
3305 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
3306 - fi
3307 -}
3308 -
3309 -src_install() {
3310 - dodir \
3311 - /etc/zabbix \
3312 - /var/lib/zabbix \
3313 - /var/lib/zabbix/home \
3314 - /var/lib/zabbix/scripts \
3315 - /var/lib/zabbix/alertscripts \
3316 - /var/lib/zabbix/externalscripts \
3317 - /var/log/zabbix
3318 -
3319 - keepdir \
3320 - /etc/zabbix \
3321 - /var/lib/zabbix \
3322 - /var/lib/zabbix/home \
3323 - /var/lib/zabbix/scripts \
3324 - /var/lib/zabbix/alertscripts \
3325 - /var/lib/zabbix/externalscripts \
3326 - /var/log/zabbix
3327 -
3328 - if use server; then
3329 - insinto /etc/zabbix
3330 - doins "${FILESDIR}/3.0"/zabbix_server.conf
3331 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
3332 - dosbin src/zabbix_server/zabbix_server
3333 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
3334 - fperms 0640 /etc/zabbix/zabbix_server.conf
3335 - dodir /usr/share/zabbix
3336 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
3337 - systemd_dounit "${FILESDIR}/zabbix-server.service"
3338 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
3339 - fi
3340 -
3341 - if use proxy; then
3342 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
3343 - dosbin src/zabbix_proxy/zabbix_proxy
3344 - insinto /etc/zabbix
3345 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
3346 - dodir /usr/share/zabbix
3347 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
3348 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
3349 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
3350 - fi
3351 -
3352 - if use agent; then
3353 - insinto /etc/zabbix
3354 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
3355 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
3356 - dosbin src/zabbix_agent/zabbix_agentd
3357 - dobin \
3358 - src/zabbix_sender/zabbix_sender \
3359 - src/zabbix_get/zabbix_get
3360 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
3361 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
3362 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
3363 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
3364 - fi
3365 -
3366 - fowners zabbix:zabbix \
3367 - /etc/zabbix \
3368 - /var/lib/zabbix \
3369 - /var/lib/zabbix/home \
3370 - /var/lib/zabbix/scripts \
3371 - /var/lib/zabbix/alertscripts \
3372 - /var/lib/zabbix/externalscripts \
3373 - /var/log/zabbix
3374 - fperms 0750 \
3375 - /etc/zabbix \
3376 - /var/lib/zabbix \
3377 - /var/lib/zabbix/home \
3378 - /var/lib/zabbix/scripts \
3379 - /var/lib/zabbix/alertscripts \
3380 - /var/lib/zabbix/externalscripts \
3381 - /var/log/zabbix
3382 -
3383 - dodoc README INSTALL NEWS ChangeLog \
3384 - conf/zabbix_agentd.conf \
3385 - conf/zabbix_proxy.conf \
3386 - conf/zabbix_agentd/userparameter_examples.conf \
3387 - conf/zabbix_agentd/userparameter_mysql.conf \
3388 - conf/zabbix_server.conf
3389 -
3390 - if use frontend; then
3391 - webapp_src_preinst
3392 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
3393 - webapp_configfile \
3394 - "${MY_HTDOCSDIR}"/include/db.inc.php \
3395 - "${MY_HTDOCSDIR}"/include/config.inc.php
3396 - webapp_src_install
3397 - fi
3398 -
3399 - if use java; then
3400 - dodir \
3401 - /${ZABBIXJAVA_BASE} \
3402 - /${ZABBIXJAVA_BASE}/bin \
3403 - /${ZABBIXJAVA_BASE}/lib
3404 - keepdir /${ZABBIXJAVA_BASE}
3405 - exeinto /${ZABBIXJAVA_BASE}/bin
3406 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
3407 - exeinto /${ZABBIXJAVA_BASE}/lib
3408 - doexe \
3409 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
3410 - src/zabbix_java/lib/logback-console.xml \
3411 - src/zabbix_java/lib/logback-core-0.9.27.jar \
3412 - src/zabbix_java/lib/logback.xml \
3413 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
3414 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
3415 - exeinto /${ZABBIXJAVA_BASE}/
3416 - doexe \
3417 - src/zabbix_java/settings.sh \
3418 - src/zabbix_java/startup.sh \
3419 - src/zabbix_java/shutdown.sh
3420 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
3421 - fi
3422 -}
3423 -
3424 -pkg_postinst() {
3425 - if use server || use proxy ; then
3426 - elog
3427 - elog "You may need to configure your database for Zabbix,"
3428 - elog "if you have not already done so. "
3429 - elog
3430 -
3431 - zabbix_homedir=$(egethome zabbix)
3432 - if [ -n "${zabbix_homedir}" ] && \
3433 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
3434 - ewarn
3435 - ewarn "The user 'zabbix' should have his homedir changed"
3436 - ewarn "to /var/lib/zabbix/home if you want to use"
3437 - ewarn "custom alert scripts."
3438 - ewarn
3439 - ewarn "A real homedir might be needed for configfiles"
3440 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
3441 - ewarn "using sendxmpp for Jabber alerts)."
3442 - ewarn
3443 - ewarn "To change the homedir use:"
3444 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
3445 - ewarn
3446 - fi
3447 - fi
3448 -
3449 - if use server; then
3450 - elog
3451 - elog "For distributed monitoring you have to run:"
3452 - elog
3453 - elog "zabbix_server -n <nodeid>"
3454 - elog
3455 - elog "This will convert database data for use with Node ID"
3456 - elog "and also adds a local node."
3457 - elog
3458 - fi
3459 -
3460 - elog "--"
3461 - elog
3462 - elog "You may need to add these lines to /etc/services:"
3463 - elog
3464 - elog "zabbix-agent 10050/tcp Zabbix Agent"
3465 - elog "zabbix-agent 10050/udp Zabbix Agent"
3466 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
3467 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
3468 - elog
3469 -
3470 - if use server || use proxy ; then
3471 - # check for fping
3472 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
3473 - case "${fping_perms}" in
3474 - 4[157][157][157])
3475 - ;;
3476 - *)
3477 - ewarn
3478 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
3479 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
3480 - ewarn "by everyone. Run the following command to fix it:"
3481 - ewarn
3482 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
3483 - ewarn
3484 - ewarn "Please be aware that this might impose a security risk,"
3485 - ewarn "depending on the code quality of fping."
3486 - ewarn
3487 - ;;
3488 - esac
3489 - fi
3490 -}
3491
3492 diff --git a/net-analyzer/zabbix/zabbix-3.0.9.ebuild b/net-analyzer/zabbix/zabbix-3.0.9.ebuild
3493 deleted file mode 100644
3494 index 13448bdf670..00000000000
3495 --- a/net-analyzer/zabbix/zabbix-3.0.9.ebuild
3496 +++ /dev/null
3497 @@ -1,331 +0,0 @@
3498 -# Copyright 1999-2017 Gentoo Foundation
3499 -# Distributed under the terms of the GNU General Public License v2
3500 -
3501 -EAPI="6"
3502 -
3503 -# needed to make webapp-config dep optional
3504 -WEBAPP_OPTIONAL="yes"
3505 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
3506 -
3507 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
3508 -HOMEPAGE="http://www.zabbix.com/"
3509 -MY_P=${P/_/}
3510 -MY_PV=${PV/_/}
3511 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
3512 -LICENSE="GPL-2"
3513 -SLOT="0"
3514 -WEBAPP_MANUAL_SLOT="yes"
3515 -KEYWORDS="~amd64 ~x86"
3516 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
3517 -REQUIRED_USE="|| ( agent frontend proxy server )
3518 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
3519 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
3520 - static? ( !oracle !snmp )"
3521 -
3522 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
3523 - ldap? (
3524 - net-nds/openldap
3525 - =dev-libs/cyrus-sasl-2*
3526 - net-libs/gnutls
3527 - )
3528 - mysql? ( >=virtual/mysql-5.0.3 )
3529 - sqlite? ( >=dev-db/sqlite-3.3.5 )
3530 - postgres? ( dev-db/postgresql:* )
3531 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
3532 - xmpp? ( dev-libs/iksemel )
3533 - libxml2? ( dev-libs/libxml2 )
3534 - curl? ( net-misc/curl )
3535 - openipmi? ( sys-libs/openipmi )
3536 - ssh? ( net-libs/libssh2 )
3537 - java? ( virtual/jdk:* )
3538 - odbc? ( dev-db/unixODBC )
3539 - ssl? ( dev-libs/openssl:=[-bindist] )"
3540 -
3541 -RDEPEND="${COMMON_DEPEND}
3542 - proxy? ( net-analyzer/fping )
3543 - server? ( net-analyzer/fping
3544 - app-admin/webapp-config )
3545 - java? (
3546 - >=virtual/jre-1.4
3547 - dev-java/slf4j-api
3548 - )
3549 - frontend? (
3550 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
3551 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
3552 - mysql? ( dev-lang/php[mysqli] )
3553 - odbc? ( dev-lang/php[odbc] )
3554 - oracle? ( dev-lang/php[oci8-instant-client] )
3555 - postgres? ( dev-lang/php[postgres] )
3556 - sqlite? ( dev-lang/php[sqlite] )
3557 - media-libs/gd[png]
3558 - app-admin/webapp-config )"
3559 -DEPEND="${COMMON_DEPEND}
3560 - static? (
3561 - ldap? (
3562 - net-nds/openldap[static-libs]
3563 - =dev-libs/cyrus-sasl-2*[static-libs]
3564 - net-libs/gnutls[static-libs]
3565 - )
3566 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
3567 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
3568 - postgres? ( dev-db/postgresql:*[static-libs] )
3569 - libxml2? ( dev-libs/libxml2[static-libs] )
3570 - curl? ( net-misc/curl[static-libs] )
3571 - ssh? ( net-libs/libssh2[static-libs] )
3572 - odbc? ( dev-db/unixODBC[static-libs] )
3573 - )
3574 - virtual/pkgconfig"
3575 -
3576 -S=${WORKDIR}/${MY_P}
3577 -
3578 -ZABBIXJAVA_BASE="opt/zabbix_java"
3579 -
3580 -pkg_setup() {
3581 - if use oracle; then
3582 - if [ -z "${ORACLE_HOME}" ]; then
3583 - eerror
3584 - eerror "The environment variable ORACLE_HOME must be set"
3585 - eerror "and point to the correct location."
3586 - eerror "It looks like you don't have Oracle installed."
3587 - eerror
3588 - die "Environment variable ORACLE_HOME is not set"
3589 - fi
3590 - if has_version 'dev-db/oracle-instantclient-basic'; then
3591 - ewarn
3592 - ewarn "Please ensure you have a full install of the Oracle client."
3593 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
3594 - ewarn
3595 - fi
3596 - fi
3597 -
3598 - if use frontend; then
3599 - webapp_pkg_setup
3600 - fi
3601 -
3602 - enewgroup zabbix
3603 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
3604 -}
3605 -
3606 -java_prepare() {
3607 - cd "${S}/src/zabbix_java/lib"
3608 - rm -v *.jar || die
3609 -
3610 - java-pkg_jar-from slf4j-api
3611 -}
3612 -
3613 -src_prepare() {
3614 - default
3615 -}
3616 -
3617 -src_configure() {
3618 - econf \
3619 - $(use_enable server) \
3620 - $(use_enable proxy) \
3621 - $(use_enable agent) \
3622 - $(use_enable ipv6) \
3623 - $(use_enable static) \
3624 - $(use_enable java) \
3625 - $(use_with ldap) \
3626 - $(use_with snmp net-snmp) \
3627 - $(use_with mysql) \
3628 - $(use_with postgres postgresql) \
3629 - $(use_with oracle) \
3630 - $(use_with sqlite sqlite3) \
3631 - $(use_with xmpp jabber) \
3632 - $(use_with curl libcurl) \
3633 - $(use_with openipmi openipmi) \
3634 - $(use_with ssh ssh2) \
3635 - $(use_with libxml2) \
3636 - $(use_with odbc unixodbc) \
3637 - $(use_with ssl openssl) \
3638 - || die "econf failed"
3639 -}
3640 -
3641 -src_compile() {
3642 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
3643 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
3644 - fi
3645 -}
3646 -
3647 -src_install() {
3648 - dodir \
3649 - /etc/zabbix \
3650 - /var/lib/zabbix \
3651 - /var/lib/zabbix/home \
3652 - /var/lib/zabbix/scripts \
3653 - /var/lib/zabbix/alertscripts \
3654 - /var/lib/zabbix/externalscripts \
3655 - /var/log/zabbix
3656 -
3657 - keepdir \
3658 - /etc/zabbix \
3659 - /var/lib/zabbix \
3660 - /var/lib/zabbix/home \
3661 - /var/lib/zabbix/scripts \
3662 - /var/lib/zabbix/alertscripts \
3663 - /var/lib/zabbix/externalscripts \
3664 - /var/log/zabbix
3665 -
3666 - if use server; then
3667 - insinto /etc/zabbix
3668 - doins "${FILESDIR}/3.0"/zabbix_server.conf
3669 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
3670 - dosbin src/zabbix_server/zabbix_server
3671 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
3672 - fperms 0640 /etc/zabbix/zabbix_server.conf
3673 - dodir /usr/share/zabbix
3674 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
3675 - systemd_dounit "${FILESDIR}/zabbix-server.service"
3676 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
3677 - fi
3678 -
3679 - if use proxy; then
3680 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
3681 - dosbin src/zabbix_proxy/zabbix_proxy
3682 - insinto /etc/zabbix
3683 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
3684 - dodir /usr/share/zabbix
3685 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
3686 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
3687 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
3688 - fi
3689 -
3690 - if use agent; then
3691 - insinto /etc/zabbix
3692 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
3693 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
3694 - dosbin src/zabbix_agent/zabbix_agentd
3695 - dobin \
3696 - src/zabbix_sender/zabbix_sender \
3697 - src/zabbix_get/zabbix_get
3698 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
3699 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
3700 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
3701 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
3702 - fi
3703 -
3704 - fowners zabbix:zabbix \
3705 - /etc/zabbix \
3706 - /var/lib/zabbix \
3707 - /var/lib/zabbix/home \
3708 - /var/lib/zabbix/scripts \
3709 - /var/lib/zabbix/alertscripts \
3710 - /var/lib/zabbix/externalscripts \
3711 - /var/log/zabbix
3712 - fperms 0750 \
3713 - /etc/zabbix \
3714 - /var/lib/zabbix \
3715 - /var/lib/zabbix/home \
3716 - /var/lib/zabbix/scripts \
3717 - /var/lib/zabbix/alertscripts \
3718 - /var/lib/zabbix/externalscripts \
3719 - /var/log/zabbix
3720 -
3721 - dodoc README INSTALL NEWS ChangeLog \
3722 - conf/zabbix_agentd.conf \
3723 - conf/zabbix_proxy.conf \
3724 - conf/zabbix_agentd/userparameter_examples.conf \
3725 - conf/zabbix_agentd/userparameter_mysql.conf \
3726 - conf/zabbix_server.conf
3727 -
3728 - if use frontend; then
3729 - webapp_src_preinst
3730 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
3731 - webapp_configfile \
3732 - "${MY_HTDOCSDIR}"/include/db.inc.php \
3733 - "${MY_HTDOCSDIR}"/include/config.inc.php
3734 - webapp_src_install
3735 - fi
3736 -
3737 - if use java; then
3738 - dodir \
3739 - /${ZABBIXJAVA_BASE} \
3740 - /${ZABBIXJAVA_BASE}/bin \
3741 - /${ZABBIXJAVA_BASE}/lib
3742 - keepdir /${ZABBIXJAVA_BASE}
3743 - exeinto /${ZABBIXJAVA_BASE}/bin
3744 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
3745 - exeinto /${ZABBIXJAVA_BASE}/lib
3746 - doexe \
3747 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
3748 - src/zabbix_java/lib/logback-console.xml \
3749 - src/zabbix_java/lib/logback-core-0.9.27.jar \
3750 - src/zabbix_java/lib/logback.xml \
3751 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
3752 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
3753 - exeinto /${ZABBIXJAVA_BASE}/
3754 - doexe \
3755 - src/zabbix_java/settings.sh \
3756 - src/zabbix_java/startup.sh \
3757 - src/zabbix_java/shutdown.sh
3758 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
3759 - fi
3760 -}
3761 -
3762 -pkg_postinst() {
3763 - if use server || use proxy ; then
3764 - elog
3765 - elog "You may need to configure your database for Zabbix,"
3766 - elog "if you have not already done so. "
3767 - elog
3768 -
3769 - zabbix_homedir=$(egethome zabbix)
3770 - if [ -n "${zabbix_homedir}" ] && \
3771 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
3772 - ewarn
3773 - ewarn "The user 'zabbix' should have his homedir changed"
3774 - ewarn "to /var/lib/zabbix/home if you want to use"
3775 - ewarn "custom alert scripts."
3776 - ewarn
3777 - ewarn "A real homedir might be needed for configfiles"
3778 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
3779 - ewarn "using sendxmpp for Jabber alerts)."
3780 - ewarn
3781 - ewarn "To change the homedir use:"
3782 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
3783 - ewarn
3784 - fi
3785 - fi
3786 -
3787 - if use server; then
3788 - elog
3789 - elog "For distributed monitoring you have to run:"
3790 - elog
3791 - elog "zabbix_server -n <nodeid>"
3792 - elog
3793 - elog "This will convert database data for use with Node ID"
3794 - elog "and also adds a local node."
3795 - elog
3796 - fi
3797 -
3798 - elog "--"
3799 - elog
3800 - elog "You may need to add these lines to /etc/services:"
3801 - elog
3802 - elog "zabbix-agent 10050/tcp Zabbix Agent"
3803 - elog "zabbix-agent 10050/udp Zabbix Agent"
3804 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
3805 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
3806 - elog
3807 -
3808 - if use server || use proxy ; then
3809 - # check for fping
3810 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
3811 - case "${fping_perms}" in
3812 - 4[157][157][157])
3813 - ;;
3814 - *)
3815 - ewarn
3816 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
3817 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
3818 - ewarn "by everyone. Run the following command to fix it:"
3819 - ewarn
3820 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
3821 - ewarn
3822 - ewarn "Please be aware that this might impose a security risk,"
3823 - ewarn "depending on the code quality of fping."
3824 - ewarn
3825 - ;;
3826 - esac
3827 - fi
3828 -}
3829
3830 diff --git a/net-analyzer/zabbix/zabbix-3.2.2.ebuild b/net-analyzer/zabbix/zabbix-3.2.2.ebuild
3831 deleted file mode 100644
3832 index 6a018fcf0c9..00000000000
3833 --- a/net-analyzer/zabbix/zabbix-3.2.2.ebuild
3834 +++ /dev/null
3835 @@ -1,328 +0,0 @@
3836 -# Copyright 1999-2016 Gentoo Foundation
3837 -# Distributed under the terms of the GNU General Public License v2
3838 -
3839 -EAPI="6"
3840 -
3841 -# needed to make webapp-config dep optional
3842 -WEBAPP_OPTIONAL="yes"
3843 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
3844 -
3845 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
3846 -HOMEPAGE="http://www.zabbix.com/"
3847 -MY_P=${P/_/}
3848 -MY_PV=${PV/_/}
3849 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
3850 -LICENSE="GPL-2"
3851 -SLOT="0"
3852 -WEBAPP_MANUAL_SLOT="yes"
3853 -KEYWORDS="~amd64 ~x86"
3854 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
3855 -REQUIRED_USE="|| ( agent frontend proxy server )
3856 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
3857 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
3858 - static? ( !oracle !snmp )"
3859 -
3860 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
3861 - ldap? (
3862 - net-nds/openldap
3863 - =dev-libs/cyrus-sasl-2*
3864 - net-libs/gnutls
3865 - )
3866 - mysql? ( >=virtual/mysql-5.0.3 )
3867 - sqlite? ( >=dev-db/sqlite-3.3.5 )
3868 - postgres? ( dev-db/postgresql:* )
3869 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
3870 - xmpp? ( dev-libs/iksemel )
3871 - libxml2? ( dev-libs/libxml2 )
3872 - curl? ( net-misc/curl )
3873 - openipmi? ( sys-libs/openipmi )
3874 - ssh? ( net-libs/libssh2 )
3875 - java? ( virtual/jdk:* )
3876 - odbc? ( dev-db/unixODBC )
3877 - ssl? ( dev-libs/openssl:=[-bindist] )"
3878 -
3879 -RDEPEND="${COMMON_DEPEND}
3880 - proxy? ( net-analyzer/fping[suid] )
3881 - server? ( net-analyzer/fping[suid]
3882 - app-admin/webapp-config )
3883 - java? (
3884 - >=virtual/jre-1.4
3885 - dev-java/slf4j-api
3886 - )
3887 - frontend? (
3888 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
3889 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
3890 - mysql? ( dev-lang/php[mysqli] )
3891 - odbc? ( dev-lang/php[odbc] )
3892 - oracle? ( dev-lang/php[oci8-instant-client] )
3893 - postgres? ( dev-lang/php[postgres] )
3894 - sqlite? ( dev-lang/php[sqlite] )
3895 - media-libs/gd[png]
3896 - app-admin/webapp-config )"
3897 -DEPEND="${COMMON_DEPEND}
3898 - static? (
3899 - ldap? (
3900 - net-nds/openldap[static-libs]
3901 - =dev-libs/cyrus-sasl-2*[static-libs]
3902 - net-libs/gnutls[static-libs]
3903 - )
3904 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
3905 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
3906 - postgres? ( dev-db/postgresql:*[static-libs] )
3907 - libxml2? ( dev-libs/libxml2[static-libs] )
3908 - curl? ( net-misc/curl[static-libs] )
3909 - ssh? ( net-libs/libssh2[static-libs] )
3910 - odbc? ( dev-db/unixODBC[static-libs] )
3911 - )
3912 - virtual/pkgconfig"
3913 -
3914 -S=${WORKDIR}/${MY_P}
3915 -
3916 -ZABBIXJAVA_BASE="opt/zabbix_java"
3917 -
3918 -pkg_setup() {
3919 - if use oracle; then
3920 - if [ -z "${ORACLE_HOME}" ]; then
3921 - eerror
3922 - eerror "The environment variable ORACLE_HOME must be set"
3923 - eerror "and point to the correct location."
3924 - eerror "It looks like you don't have Oracle installed."
3925 - eerror
3926 - die "Environment variable ORACLE_HOME is not set"
3927 - fi
3928 - if has_version 'dev-db/oracle-instantclient-basic'; then
3929 - ewarn
3930 - ewarn "Please ensure you have a full install of the Oracle client."
3931 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
3932 - ewarn
3933 - fi
3934 - fi
3935 -
3936 - if use frontend; then
3937 - webapp_pkg_setup
3938 - fi
3939 -
3940 - enewgroup zabbix
3941 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
3942 -}
3943 -
3944 -java_prepare() {
3945 - cd "${S}/src/zabbix_java/lib"
3946 - rm -v *.jar || die
3947 -
3948 - java-pkg_jar-from slf4j-api
3949 -}
3950 -
3951 -src_prepare() {
3952 - default
3953 -}
3954 -
3955 -src_configure() {
3956 - econf \
3957 - $(use_enable server) \
3958 - $(use_enable proxy) \
3959 - $(use_enable agent) \
3960 - $(use_enable ipv6) \
3961 - $(use_enable static) \
3962 - $(use_enable java) \
3963 - $(use_with ldap) \
3964 - $(use_with snmp net-snmp) \
3965 - $(use_with mysql) \
3966 - $(use_with postgres postgresql) \
3967 - $(use_with oracle) \
3968 - $(use_with sqlite sqlite3) \
3969 - $(use_with xmpp jabber) \
3970 - $(use_with curl libcurl) \
3971 - $(use_with openipmi openipmi) \
3972 - $(use_with ssh ssh2) \
3973 - $(use_with libxml2) \
3974 - $(use_with odbc unixodbc) \
3975 - $(use_with ssl openssl) \
3976 - || die "econf failed"
3977 -}
3978 -
3979 -src_compile() {
3980 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
3981 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
3982 - fi
3983 -}
3984 -
3985 -src_install() {
3986 - dodir \
3987 - /etc/zabbix \
3988 - /var/lib/zabbix \
3989 - /var/lib/zabbix/home \
3990 - /var/lib/zabbix/scripts \
3991 - /var/lib/zabbix/alertscripts \
3992 - /var/lib/zabbix/externalscripts \
3993 - /var/log/zabbix
3994 -
3995 - keepdir \
3996 - /etc/zabbix \
3997 - /var/lib/zabbix \
3998 - /var/lib/zabbix/home \
3999 - /var/lib/zabbix/scripts \
4000 - /var/lib/zabbix/alertscripts \
4001 - /var/lib/zabbix/externalscripts \
4002 - /var/log/zabbix
4003 -
4004 - if use server; then
4005 - insinto /etc/zabbix
4006 - doins "${FILESDIR}/3.0"/zabbix_server.conf
4007 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
4008 - dosbin src/zabbix_server/zabbix_server
4009 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
4010 - fperms 0640 /etc/zabbix/zabbix_server.conf
4011 - dodir /usr/share/zabbix
4012 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
4013 - systemd_dounit "${FILESDIR}/zabbix-server.service"
4014 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
4015 - fi
4016 -
4017 - if use proxy; then
4018 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
4019 - dosbin src/zabbix_proxy/zabbix_proxy
4020 - insinto /etc/zabbix
4021 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
4022 - dodir /usr/share/zabbix
4023 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
4024 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
4025 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
4026 - fi
4027 -
4028 - if use agent; then
4029 - insinto /etc/zabbix
4030 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
4031 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
4032 - dosbin src/zabbix_agent/zabbix_agentd
4033 - dobin \
4034 - src/zabbix_sender/zabbix_sender \
4035 - src/zabbix_get/zabbix_get
4036 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
4037 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
4038 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
4039 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
4040 - fi
4041 -
4042 - fowners zabbix:zabbix \
4043 - /etc/zabbix \
4044 - /var/lib/zabbix \
4045 - /var/lib/zabbix/home \
4046 - /var/lib/zabbix/scripts \
4047 - /var/lib/zabbix/alertscripts \
4048 - /var/lib/zabbix/externalscripts \
4049 - /var/log/zabbix
4050 - fperms 0750 \
4051 - /etc/zabbix \
4052 - /var/lib/zabbix \
4053 - /var/lib/zabbix/home \
4054 - /var/lib/zabbix/scripts \
4055 - /var/lib/zabbix/alertscripts \
4056 - /var/lib/zabbix/externalscripts \
4057 - /var/log/zabbix
4058 -
4059 - dodoc README INSTALL NEWS ChangeLog \
4060 - conf/zabbix_agentd.conf \
4061 - conf/zabbix_proxy.conf \
4062 - conf/zabbix_agentd/userparameter_examples.conf \
4063 - conf/zabbix_agentd/userparameter_mysql.conf \
4064 - conf/zabbix_server.conf
4065 -
4066 - if use frontend; then
4067 - webapp_src_preinst
4068 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
4069 - webapp_configfile \
4070 - "${MY_HTDOCSDIR}"/include/db.inc.php \
4071 - "${MY_HTDOCSDIR}"/include/config.inc.php
4072 - webapp_src_install
4073 - fi
4074 -
4075 - if use java; then
4076 - dodir \
4077 - /${ZABBIXJAVA_BASE} \
4078 - /${ZABBIXJAVA_BASE}/bin \
4079 - /${ZABBIXJAVA_BASE}/lib
4080 - keepdir /${ZABBIXJAVA_BASE}
4081 - exeinto /${ZABBIXJAVA_BASE}/bin
4082 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
4083 - exeinto /${ZABBIXJAVA_BASE}/lib
4084 - doexe \
4085 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
4086 - src/zabbix_java/lib/logback-console.xml \
4087 - src/zabbix_java/lib/logback-core-0.9.27.jar \
4088 - src/zabbix_java/lib/logback.xml \
4089 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
4090 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
4091 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
4092 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
4093 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
4094 - fi
4095 -}
4096 -
4097 -pkg_postinst() {
4098 - if use server || use proxy ; then
4099 - elog
4100 - elog "You may need to configure your database for Zabbix,"
4101 - elog "if you have not already done so. "
4102 - elog
4103 -
4104 - zabbix_homedir=$(egethome zabbix)
4105 - if [ -n "${zabbix_homedir}" ] && \
4106 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
4107 - ewarn
4108 - ewarn "The user 'zabbix' should have his homedir changed"
4109 - ewarn "to /var/lib/zabbix/home if you want to use"
4110 - ewarn "custom alert scripts."
4111 - ewarn
4112 - ewarn "A real homedir might be needed for configfiles"
4113 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
4114 - ewarn "using sendxmpp for Jabber alerts)."
4115 - ewarn
4116 - ewarn "To change the homedir use:"
4117 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
4118 - ewarn
4119 - fi
4120 - fi
4121 -
4122 - if use server; then
4123 - elog
4124 - elog "For distributed monitoring you have to run:"
4125 - elog
4126 - elog "zabbix_server -n <nodeid>"
4127 - elog
4128 - elog "This will convert database data for use with Node ID"
4129 - elog "and also adds a local node."
4130 - elog
4131 - fi
4132 -
4133 - elog "--"
4134 - elog
4135 - elog "You may need to add these lines to /etc/services:"
4136 - elog
4137 - elog "zabbix-agent 10050/tcp Zabbix Agent"
4138 - elog "zabbix-agent 10050/udp Zabbix Agent"
4139 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
4140 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
4141 - elog
4142 -
4143 - if use server || use proxy ; then
4144 - # check for fping
4145 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
4146 - case "${fping_perms}" in
4147 - 4[157][157][157])
4148 - ;;
4149 - *)
4150 - ewarn
4151 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
4152 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
4153 - ewarn "by everyone. Run the following command to fix it:"
4154 - ewarn
4155 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
4156 - ewarn
4157 - ewarn "Please be aware that this might impose a security risk,"
4158 - ewarn "depending on the code quality of fping."
4159 - ewarn
4160 - ;;
4161 - esac
4162 - fi
4163 -}
4164
4165 diff --git a/net-analyzer/zabbix/zabbix-3.2.3.ebuild b/net-analyzer/zabbix/zabbix-3.2.3.ebuild
4166 deleted file mode 100644
4167 index 6a018fcf0c9..00000000000
4168 --- a/net-analyzer/zabbix/zabbix-3.2.3.ebuild
4169 +++ /dev/null
4170 @@ -1,328 +0,0 @@
4171 -# Copyright 1999-2016 Gentoo Foundation
4172 -# Distributed under the terms of the GNU General Public License v2
4173 -
4174 -EAPI="6"
4175 -
4176 -# needed to make webapp-config dep optional
4177 -WEBAPP_OPTIONAL="yes"
4178 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
4179 -
4180 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
4181 -HOMEPAGE="http://www.zabbix.com/"
4182 -MY_P=${P/_/}
4183 -MY_PV=${PV/_/}
4184 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
4185 -LICENSE="GPL-2"
4186 -SLOT="0"
4187 -WEBAPP_MANUAL_SLOT="yes"
4188 -KEYWORDS="~amd64 ~x86"
4189 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
4190 -REQUIRED_USE="|| ( agent frontend proxy server )
4191 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
4192 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
4193 - static? ( !oracle !snmp )"
4194 -
4195 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
4196 - ldap? (
4197 - net-nds/openldap
4198 - =dev-libs/cyrus-sasl-2*
4199 - net-libs/gnutls
4200 - )
4201 - mysql? ( >=virtual/mysql-5.0.3 )
4202 - sqlite? ( >=dev-db/sqlite-3.3.5 )
4203 - postgres? ( dev-db/postgresql:* )
4204 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
4205 - xmpp? ( dev-libs/iksemel )
4206 - libxml2? ( dev-libs/libxml2 )
4207 - curl? ( net-misc/curl )
4208 - openipmi? ( sys-libs/openipmi )
4209 - ssh? ( net-libs/libssh2 )
4210 - java? ( virtual/jdk:* )
4211 - odbc? ( dev-db/unixODBC )
4212 - ssl? ( dev-libs/openssl:=[-bindist] )"
4213 -
4214 -RDEPEND="${COMMON_DEPEND}
4215 - proxy? ( net-analyzer/fping[suid] )
4216 - server? ( net-analyzer/fping[suid]
4217 - app-admin/webapp-config )
4218 - java? (
4219 - >=virtual/jre-1.4
4220 - dev-java/slf4j-api
4221 - )
4222 - frontend? (
4223 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
4224 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
4225 - mysql? ( dev-lang/php[mysqli] )
4226 - odbc? ( dev-lang/php[odbc] )
4227 - oracle? ( dev-lang/php[oci8-instant-client] )
4228 - postgres? ( dev-lang/php[postgres] )
4229 - sqlite? ( dev-lang/php[sqlite] )
4230 - media-libs/gd[png]
4231 - app-admin/webapp-config )"
4232 -DEPEND="${COMMON_DEPEND}
4233 - static? (
4234 - ldap? (
4235 - net-nds/openldap[static-libs]
4236 - =dev-libs/cyrus-sasl-2*[static-libs]
4237 - net-libs/gnutls[static-libs]
4238 - )
4239 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
4240 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
4241 - postgres? ( dev-db/postgresql:*[static-libs] )
4242 - libxml2? ( dev-libs/libxml2[static-libs] )
4243 - curl? ( net-misc/curl[static-libs] )
4244 - ssh? ( net-libs/libssh2[static-libs] )
4245 - odbc? ( dev-db/unixODBC[static-libs] )
4246 - )
4247 - virtual/pkgconfig"
4248 -
4249 -S=${WORKDIR}/${MY_P}
4250 -
4251 -ZABBIXJAVA_BASE="opt/zabbix_java"
4252 -
4253 -pkg_setup() {
4254 - if use oracle; then
4255 - if [ -z "${ORACLE_HOME}" ]; then
4256 - eerror
4257 - eerror "The environment variable ORACLE_HOME must be set"
4258 - eerror "and point to the correct location."
4259 - eerror "It looks like you don't have Oracle installed."
4260 - eerror
4261 - die "Environment variable ORACLE_HOME is not set"
4262 - fi
4263 - if has_version 'dev-db/oracle-instantclient-basic'; then
4264 - ewarn
4265 - ewarn "Please ensure you have a full install of the Oracle client."
4266 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
4267 - ewarn
4268 - fi
4269 - fi
4270 -
4271 - if use frontend; then
4272 - webapp_pkg_setup
4273 - fi
4274 -
4275 - enewgroup zabbix
4276 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
4277 -}
4278 -
4279 -java_prepare() {
4280 - cd "${S}/src/zabbix_java/lib"
4281 - rm -v *.jar || die
4282 -
4283 - java-pkg_jar-from slf4j-api
4284 -}
4285 -
4286 -src_prepare() {
4287 - default
4288 -}
4289 -
4290 -src_configure() {
4291 - econf \
4292 - $(use_enable server) \
4293 - $(use_enable proxy) \
4294 - $(use_enable agent) \
4295 - $(use_enable ipv6) \
4296 - $(use_enable static) \
4297 - $(use_enable java) \
4298 - $(use_with ldap) \
4299 - $(use_with snmp net-snmp) \
4300 - $(use_with mysql) \
4301 - $(use_with postgres postgresql) \
4302 - $(use_with oracle) \
4303 - $(use_with sqlite sqlite3) \
4304 - $(use_with xmpp jabber) \
4305 - $(use_with curl libcurl) \
4306 - $(use_with openipmi openipmi) \
4307 - $(use_with ssh ssh2) \
4308 - $(use_with libxml2) \
4309 - $(use_with odbc unixodbc) \
4310 - $(use_with ssl openssl) \
4311 - || die "econf failed"
4312 -}
4313 -
4314 -src_compile() {
4315 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
4316 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
4317 - fi
4318 -}
4319 -
4320 -src_install() {
4321 - dodir \
4322 - /etc/zabbix \
4323 - /var/lib/zabbix \
4324 - /var/lib/zabbix/home \
4325 - /var/lib/zabbix/scripts \
4326 - /var/lib/zabbix/alertscripts \
4327 - /var/lib/zabbix/externalscripts \
4328 - /var/log/zabbix
4329 -
4330 - keepdir \
4331 - /etc/zabbix \
4332 - /var/lib/zabbix \
4333 - /var/lib/zabbix/home \
4334 - /var/lib/zabbix/scripts \
4335 - /var/lib/zabbix/alertscripts \
4336 - /var/lib/zabbix/externalscripts \
4337 - /var/log/zabbix
4338 -
4339 - if use server; then
4340 - insinto /etc/zabbix
4341 - doins "${FILESDIR}/3.0"/zabbix_server.conf
4342 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
4343 - dosbin src/zabbix_server/zabbix_server
4344 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
4345 - fperms 0640 /etc/zabbix/zabbix_server.conf
4346 - dodir /usr/share/zabbix
4347 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
4348 - systemd_dounit "${FILESDIR}/zabbix-server.service"
4349 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
4350 - fi
4351 -
4352 - if use proxy; then
4353 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
4354 - dosbin src/zabbix_proxy/zabbix_proxy
4355 - insinto /etc/zabbix
4356 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
4357 - dodir /usr/share/zabbix
4358 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
4359 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
4360 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
4361 - fi
4362 -
4363 - if use agent; then
4364 - insinto /etc/zabbix
4365 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
4366 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
4367 - dosbin src/zabbix_agent/zabbix_agentd
4368 - dobin \
4369 - src/zabbix_sender/zabbix_sender \
4370 - src/zabbix_get/zabbix_get
4371 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
4372 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
4373 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
4374 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
4375 - fi
4376 -
4377 - fowners zabbix:zabbix \
4378 - /etc/zabbix \
4379 - /var/lib/zabbix \
4380 - /var/lib/zabbix/home \
4381 - /var/lib/zabbix/scripts \
4382 - /var/lib/zabbix/alertscripts \
4383 - /var/lib/zabbix/externalscripts \
4384 - /var/log/zabbix
4385 - fperms 0750 \
4386 - /etc/zabbix \
4387 - /var/lib/zabbix \
4388 - /var/lib/zabbix/home \
4389 - /var/lib/zabbix/scripts \
4390 - /var/lib/zabbix/alertscripts \
4391 - /var/lib/zabbix/externalscripts \
4392 - /var/log/zabbix
4393 -
4394 - dodoc README INSTALL NEWS ChangeLog \
4395 - conf/zabbix_agentd.conf \
4396 - conf/zabbix_proxy.conf \
4397 - conf/zabbix_agentd/userparameter_examples.conf \
4398 - conf/zabbix_agentd/userparameter_mysql.conf \
4399 - conf/zabbix_server.conf
4400 -
4401 - if use frontend; then
4402 - webapp_src_preinst
4403 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
4404 - webapp_configfile \
4405 - "${MY_HTDOCSDIR}"/include/db.inc.php \
4406 - "${MY_HTDOCSDIR}"/include/config.inc.php
4407 - webapp_src_install
4408 - fi
4409 -
4410 - if use java; then
4411 - dodir \
4412 - /${ZABBIXJAVA_BASE} \
4413 - /${ZABBIXJAVA_BASE}/bin \
4414 - /${ZABBIXJAVA_BASE}/lib
4415 - keepdir /${ZABBIXJAVA_BASE}
4416 - exeinto /${ZABBIXJAVA_BASE}/bin
4417 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
4418 - exeinto /${ZABBIXJAVA_BASE}/lib
4419 - doexe \
4420 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
4421 - src/zabbix_java/lib/logback-console.xml \
4422 - src/zabbix_java/lib/logback-core-0.9.27.jar \
4423 - src/zabbix_java/lib/logback.xml \
4424 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
4425 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
4426 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
4427 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
4428 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
4429 - fi
4430 -}
4431 -
4432 -pkg_postinst() {
4433 - if use server || use proxy ; then
4434 - elog
4435 - elog "You may need to configure your database for Zabbix,"
4436 - elog "if you have not already done so. "
4437 - elog
4438 -
4439 - zabbix_homedir=$(egethome zabbix)
4440 - if [ -n "${zabbix_homedir}" ] && \
4441 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
4442 - ewarn
4443 - ewarn "The user 'zabbix' should have his homedir changed"
4444 - ewarn "to /var/lib/zabbix/home if you want to use"
4445 - ewarn "custom alert scripts."
4446 - ewarn
4447 - ewarn "A real homedir might be needed for configfiles"
4448 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
4449 - ewarn "using sendxmpp for Jabber alerts)."
4450 - ewarn
4451 - ewarn "To change the homedir use:"
4452 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
4453 - ewarn
4454 - fi
4455 - fi
4456 -
4457 - if use server; then
4458 - elog
4459 - elog "For distributed monitoring you have to run:"
4460 - elog
4461 - elog "zabbix_server -n <nodeid>"
4462 - elog
4463 - elog "This will convert database data for use with Node ID"
4464 - elog "and also adds a local node."
4465 - elog
4466 - fi
4467 -
4468 - elog "--"
4469 - elog
4470 - elog "You may need to add these lines to /etc/services:"
4471 - elog
4472 - elog "zabbix-agent 10050/tcp Zabbix Agent"
4473 - elog "zabbix-agent 10050/udp Zabbix Agent"
4474 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
4475 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
4476 - elog
4477 -
4478 - if use server || use proxy ; then
4479 - # check for fping
4480 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
4481 - case "${fping_perms}" in
4482 - 4[157][157][157])
4483 - ;;
4484 - *)
4485 - ewarn
4486 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
4487 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
4488 - ewarn "by everyone. Run the following command to fix it:"
4489 - ewarn
4490 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
4491 - ewarn
4492 - ewarn "Please be aware that this might impose a security risk,"
4493 - ewarn "depending on the code quality of fping."
4494 - ewarn
4495 - ;;
4496 - esac
4497 - fi
4498 -}
4499
4500 diff --git a/net-analyzer/zabbix/zabbix-3.2.4.ebuild b/net-analyzer/zabbix/zabbix-3.2.4.ebuild
4501 deleted file mode 100644
4502 index 31176f59177..00000000000
4503 --- a/net-analyzer/zabbix/zabbix-3.2.4.ebuild
4504 +++ /dev/null
4505 @@ -1,328 +0,0 @@
4506 -# Copyright 1999-2017 Gentoo Foundation
4507 -# Distributed under the terms of the GNU General Public License v2
4508 -
4509 -EAPI="6"
4510 -
4511 -# needed to make webapp-config dep optional
4512 -WEBAPP_OPTIONAL="yes"
4513 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
4514 -
4515 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
4516 -HOMEPAGE="http://www.zabbix.com/"
4517 -MY_P=${P/_/}
4518 -MY_PV=${PV/_/}
4519 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
4520 -LICENSE="GPL-2"
4521 -SLOT="0"
4522 -WEBAPP_MANUAL_SLOT="yes"
4523 -KEYWORDS="~amd64 ~x86"
4524 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
4525 -REQUIRED_USE="|| ( agent frontend proxy server )
4526 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
4527 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
4528 - static? ( !oracle !snmp )"
4529 -
4530 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
4531 - ldap? (
4532 - net-nds/openldap
4533 - =dev-libs/cyrus-sasl-2*
4534 - net-libs/gnutls
4535 - )
4536 - mysql? ( >=virtual/mysql-5.0.3 )
4537 - sqlite? ( >=dev-db/sqlite-3.3.5 )
4538 - postgres? ( dev-db/postgresql:* )
4539 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
4540 - xmpp? ( dev-libs/iksemel )
4541 - libxml2? ( dev-libs/libxml2 )
4542 - curl? ( net-misc/curl )
4543 - openipmi? ( sys-libs/openipmi )
4544 - ssh? ( net-libs/libssh2 )
4545 - java? ( virtual/jdk:* )
4546 - odbc? ( dev-db/unixODBC )
4547 - ssl? ( dev-libs/openssl:=[-bindist] )"
4548 -
4549 -RDEPEND="${COMMON_DEPEND}
4550 - proxy? ( net-analyzer/fping[suid] )
4551 - server? ( net-analyzer/fping[suid]
4552 - app-admin/webapp-config )
4553 - java? (
4554 - >=virtual/jre-1.4
4555 - dev-java/slf4j-api
4556 - )
4557 - frontend? (
4558 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
4559 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
4560 - mysql? ( dev-lang/php[mysqli] )
4561 - odbc? ( dev-lang/php[odbc] )
4562 - oracle? ( dev-lang/php[oci8-instant-client] )
4563 - postgres? ( dev-lang/php[postgres] )
4564 - sqlite? ( dev-lang/php[sqlite] )
4565 - media-libs/gd[png]
4566 - app-admin/webapp-config )"
4567 -DEPEND="${COMMON_DEPEND}
4568 - static? (
4569 - ldap? (
4570 - net-nds/openldap[static-libs]
4571 - =dev-libs/cyrus-sasl-2*[static-libs]
4572 - net-libs/gnutls[static-libs]
4573 - )
4574 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
4575 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
4576 - postgres? ( dev-db/postgresql:*[static-libs] )
4577 - libxml2? ( dev-libs/libxml2[static-libs] )
4578 - curl? ( net-misc/curl[static-libs] )
4579 - ssh? ( net-libs/libssh2[static-libs] )
4580 - odbc? ( dev-db/unixODBC[static-libs] )
4581 - )
4582 - virtual/pkgconfig"
4583 -
4584 -S=${WORKDIR}/${MY_P}
4585 -
4586 -ZABBIXJAVA_BASE="opt/zabbix_java"
4587 -
4588 -pkg_setup() {
4589 - if use oracle; then
4590 - if [ -z "${ORACLE_HOME}" ]; then
4591 - eerror
4592 - eerror "The environment variable ORACLE_HOME must be set"
4593 - eerror "and point to the correct location."
4594 - eerror "It looks like you don't have Oracle installed."
4595 - eerror
4596 - die "Environment variable ORACLE_HOME is not set"
4597 - fi
4598 - if has_version 'dev-db/oracle-instantclient-basic'; then
4599 - ewarn
4600 - ewarn "Please ensure you have a full install of the Oracle client."
4601 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
4602 - ewarn
4603 - fi
4604 - fi
4605 -
4606 - if use frontend; then
4607 - webapp_pkg_setup
4608 - fi
4609 -
4610 - enewgroup zabbix
4611 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
4612 -}
4613 -
4614 -java_prepare() {
4615 - cd "${S}/src/zabbix_java/lib"
4616 - rm -v *.jar || die
4617 -
4618 - java-pkg_jar-from slf4j-api
4619 -}
4620 -
4621 -src_prepare() {
4622 - default
4623 -}
4624 -
4625 -src_configure() {
4626 - econf \
4627 - $(use_enable server) \
4628 - $(use_enable proxy) \
4629 - $(use_enable agent) \
4630 - $(use_enable ipv6) \
4631 - $(use_enable static) \
4632 - $(use_enable java) \
4633 - $(use_with ldap) \
4634 - $(use_with snmp net-snmp) \
4635 - $(use_with mysql) \
4636 - $(use_with postgres postgresql) \
4637 - $(use_with oracle) \
4638 - $(use_with sqlite sqlite3) \
4639 - $(use_with xmpp jabber) \
4640 - $(use_with curl libcurl) \
4641 - $(use_with openipmi openipmi) \
4642 - $(use_with ssh ssh2) \
4643 - $(use_with libxml2) \
4644 - $(use_with odbc unixodbc) \
4645 - $(use_with ssl openssl) \
4646 - || die "econf failed"
4647 -}
4648 -
4649 -src_compile() {
4650 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
4651 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
4652 - fi
4653 -}
4654 -
4655 -src_install() {
4656 - dodir \
4657 - /etc/zabbix \
4658 - /var/lib/zabbix \
4659 - /var/lib/zabbix/home \
4660 - /var/lib/zabbix/scripts \
4661 - /var/lib/zabbix/alertscripts \
4662 - /var/lib/zabbix/externalscripts \
4663 - /var/log/zabbix
4664 -
4665 - keepdir \
4666 - /etc/zabbix \
4667 - /var/lib/zabbix \
4668 - /var/lib/zabbix/home \
4669 - /var/lib/zabbix/scripts \
4670 - /var/lib/zabbix/alertscripts \
4671 - /var/lib/zabbix/externalscripts \
4672 - /var/log/zabbix
4673 -
4674 - if use server; then
4675 - insinto /etc/zabbix
4676 - doins "${FILESDIR}/3.0"/zabbix_server.conf
4677 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
4678 - dosbin src/zabbix_server/zabbix_server
4679 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
4680 - fperms 0640 /etc/zabbix/zabbix_server.conf
4681 - dodir /usr/share/zabbix
4682 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
4683 - systemd_dounit "${FILESDIR}/zabbix-server.service"
4684 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
4685 - fi
4686 -
4687 - if use proxy; then
4688 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
4689 - dosbin src/zabbix_proxy/zabbix_proxy
4690 - insinto /etc/zabbix
4691 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
4692 - dodir /usr/share/zabbix
4693 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
4694 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
4695 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
4696 - fi
4697 -
4698 - if use agent; then
4699 - insinto /etc/zabbix
4700 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
4701 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
4702 - dosbin src/zabbix_agent/zabbix_agentd
4703 - dobin \
4704 - src/zabbix_sender/zabbix_sender \
4705 - src/zabbix_get/zabbix_get
4706 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
4707 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
4708 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
4709 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
4710 - fi
4711 -
4712 - fowners zabbix:zabbix \
4713 - /etc/zabbix \
4714 - /var/lib/zabbix \
4715 - /var/lib/zabbix/home \
4716 - /var/lib/zabbix/scripts \
4717 - /var/lib/zabbix/alertscripts \
4718 - /var/lib/zabbix/externalscripts \
4719 - /var/log/zabbix
4720 - fperms 0750 \
4721 - /etc/zabbix \
4722 - /var/lib/zabbix \
4723 - /var/lib/zabbix/home \
4724 - /var/lib/zabbix/scripts \
4725 - /var/lib/zabbix/alertscripts \
4726 - /var/lib/zabbix/externalscripts \
4727 - /var/log/zabbix
4728 -
4729 - dodoc README INSTALL NEWS ChangeLog \
4730 - conf/zabbix_agentd.conf \
4731 - conf/zabbix_proxy.conf \
4732 - conf/zabbix_agentd/userparameter_examples.conf \
4733 - conf/zabbix_agentd/userparameter_mysql.conf \
4734 - conf/zabbix_server.conf
4735 -
4736 - if use frontend; then
4737 - webapp_src_preinst
4738 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
4739 - webapp_configfile \
4740 - "${MY_HTDOCSDIR}"/include/db.inc.php \
4741 - "${MY_HTDOCSDIR}"/include/config.inc.php
4742 - webapp_src_install
4743 - fi
4744 -
4745 - if use java; then
4746 - dodir \
4747 - /${ZABBIXJAVA_BASE} \
4748 - /${ZABBIXJAVA_BASE}/bin \
4749 - /${ZABBIXJAVA_BASE}/lib
4750 - keepdir /${ZABBIXJAVA_BASE}
4751 - exeinto /${ZABBIXJAVA_BASE}/bin
4752 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
4753 - exeinto /${ZABBIXJAVA_BASE}/lib
4754 - doexe \
4755 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
4756 - src/zabbix_java/lib/logback-console.xml \
4757 - src/zabbix_java/lib/logback-core-0.9.27.jar \
4758 - src/zabbix_java/lib/logback.xml \
4759 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
4760 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
4761 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
4762 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
4763 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
4764 - fi
4765 -}
4766 -
4767 -pkg_postinst() {
4768 - if use server || use proxy ; then
4769 - elog
4770 - elog "You may need to configure your database for Zabbix,"
4771 - elog "if you have not already done so. "
4772 - elog
4773 -
4774 - zabbix_homedir=$(egethome zabbix)
4775 - if [ -n "${zabbix_homedir}" ] && \
4776 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
4777 - ewarn
4778 - ewarn "The user 'zabbix' should have his homedir changed"
4779 - ewarn "to /var/lib/zabbix/home if you want to use"
4780 - ewarn "custom alert scripts."
4781 - ewarn
4782 - ewarn "A real homedir might be needed for configfiles"
4783 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
4784 - ewarn "using sendxmpp for Jabber alerts)."
4785 - ewarn
4786 - ewarn "To change the homedir use:"
4787 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
4788 - ewarn
4789 - fi
4790 - fi
4791 -
4792 - if use server; then
4793 - elog
4794 - elog "For distributed monitoring you have to run:"
4795 - elog
4796 - elog "zabbix_server -n <nodeid>"
4797 - elog
4798 - elog "This will convert database data for use with Node ID"
4799 - elog "and also adds a local node."
4800 - elog
4801 - fi
4802 -
4803 - elog "--"
4804 - elog
4805 - elog "You may need to add these lines to /etc/services:"
4806 - elog
4807 - elog "zabbix-agent 10050/tcp Zabbix Agent"
4808 - elog "zabbix-agent 10050/udp Zabbix Agent"
4809 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
4810 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
4811 - elog
4812 -
4813 - if use server || use proxy ; then
4814 - # check for fping
4815 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
4816 - case "${fping_perms}" in
4817 - 4[157][157][157])
4818 - ;;
4819 - *)
4820 - ewarn
4821 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
4822 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
4823 - ewarn "by everyone. Run the following command to fix it:"
4824 - ewarn
4825 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
4826 - ewarn
4827 - ewarn "Please be aware that this might impose a security risk,"
4828 - ewarn "depending on the code quality of fping."
4829 - ewarn
4830 - ;;
4831 - esac
4832 - fi
4833 -}
4834
4835 diff --git a/net-analyzer/zabbix/zabbix-3.2.5.ebuild b/net-analyzer/zabbix/zabbix-3.2.5.ebuild
4836 deleted file mode 100644
4837 index 31176f59177..00000000000
4838 --- a/net-analyzer/zabbix/zabbix-3.2.5.ebuild
4839 +++ /dev/null
4840 @@ -1,328 +0,0 @@
4841 -# Copyright 1999-2017 Gentoo Foundation
4842 -# Distributed under the terms of the GNU General Public License v2
4843 -
4844 -EAPI="6"
4845 -
4846 -# needed to make webapp-config dep optional
4847 -WEBAPP_OPTIONAL="yes"
4848 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
4849 -
4850 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
4851 -HOMEPAGE="http://www.zabbix.com/"
4852 -MY_P=${P/_/}
4853 -MY_PV=${PV/_/}
4854 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
4855 -LICENSE="GPL-2"
4856 -SLOT="0"
4857 -WEBAPP_MANUAL_SLOT="yes"
4858 -KEYWORDS="~amd64 ~x86"
4859 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
4860 -REQUIRED_USE="|| ( agent frontend proxy server )
4861 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
4862 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
4863 - static? ( !oracle !snmp )"
4864 -
4865 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
4866 - ldap? (
4867 - net-nds/openldap
4868 - =dev-libs/cyrus-sasl-2*
4869 - net-libs/gnutls
4870 - )
4871 - mysql? ( >=virtual/mysql-5.0.3 )
4872 - sqlite? ( >=dev-db/sqlite-3.3.5 )
4873 - postgres? ( dev-db/postgresql:* )
4874 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
4875 - xmpp? ( dev-libs/iksemel )
4876 - libxml2? ( dev-libs/libxml2 )
4877 - curl? ( net-misc/curl )
4878 - openipmi? ( sys-libs/openipmi )
4879 - ssh? ( net-libs/libssh2 )
4880 - java? ( virtual/jdk:* )
4881 - odbc? ( dev-db/unixODBC )
4882 - ssl? ( dev-libs/openssl:=[-bindist] )"
4883 -
4884 -RDEPEND="${COMMON_DEPEND}
4885 - proxy? ( net-analyzer/fping[suid] )
4886 - server? ( net-analyzer/fping[suid]
4887 - app-admin/webapp-config )
4888 - java? (
4889 - >=virtual/jre-1.4
4890 - dev-java/slf4j-api
4891 - )
4892 - frontend? (
4893 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
4894 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
4895 - mysql? ( dev-lang/php[mysqli] )
4896 - odbc? ( dev-lang/php[odbc] )
4897 - oracle? ( dev-lang/php[oci8-instant-client] )
4898 - postgres? ( dev-lang/php[postgres] )
4899 - sqlite? ( dev-lang/php[sqlite] )
4900 - media-libs/gd[png]
4901 - app-admin/webapp-config )"
4902 -DEPEND="${COMMON_DEPEND}
4903 - static? (
4904 - ldap? (
4905 - net-nds/openldap[static-libs]
4906 - =dev-libs/cyrus-sasl-2*[static-libs]
4907 - net-libs/gnutls[static-libs]
4908 - )
4909 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
4910 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
4911 - postgres? ( dev-db/postgresql:*[static-libs] )
4912 - libxml2? ( dev-libs/libxml2[static-libs] )
4913 - curl? ( net-misc/curl[static-libs] )
4914 - ssh? ( net-libs/libssh2[static-libs] )
4915 - odbc? ( dev-db/unixODBC[static-libs] )
4916 - )
4917 - virtual/pkgconfig"
4918 -
4919 -S=${WORKDIR}/${MY_P}
4920 -
4921 -ZABBIXJAVA_BASE="opt/zabbix_java"
4922 -
4923 -pkg_setup() {
4924 - if use oracle; then
4925 - if [ -z "${ORACLE_HOME}" ]; then
4926 - eerror
4927 - eerror "The environment variable ORACLE_HOME must be set"
4928 - eerror "and point to the correct location."
4929 - eerror "It looks like you don't have Oracle installed."
4930 - eerror
4931 - die "Environment variable ORACLE_HOME is not set"
4932 - fi
4933 - if has_version 'dev-db/oracle-instantclient-basic'; then
4934 - ewarn
4935 - ewarn "Please ensure you have a full install of the Oracle client."
4936 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
4937 - ewarn
4938 - fi
4939 - fi
4940 -
4941 - if use frontend; then
4942 - webapp_pkg_setup
4943 - fi
4944 -
4945 - enewgroup zabbix
4946 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
4947 -}
4948 -
4949 -java_prepare() {
4950 - cd "${S}/src/zabbix_java/lib"
4951 - rm -v *.jar || die
4952 -
4953 - java-pkg_jar-from slf4j-api
4954 -}
4955 -
4956 -src_prepare() {
4957 - default
4958 -}
4959 -
4960 -src_configure() {
4961 - econf \
4962 - $(use_enable server) \
4963 - $(use_enable proxy) \
4964 - $(use_enable agent) \
4965 - $(use_enable ipv6) \
4966 - $(use_enable static) \
4967 - $(use_enable java) \
4968 - $(use_with ldap) \
4969 - $(use_with snmp net-snmp) \
4970 - $(use_with mysql) \
4971 - $(use_with postgres postgresql) \
4972 - $(use_with oracle) \
4973 - $(use_with sqlite sqlite3) \
4974 - $(use_with xmpp jabber) \
4975 - $(use_with curl libcurl) \
4976 - $(use_with openipmi openipmi) \
4977 - $(use_with ssh ssh2) \
4978 - $(use_with libxml2) \
4979 - $(use_with odbc unixodbc) \
4980 - $(use_with ssl openssl) \
4981 - || die "econf failed"
4982 -}
4983 -
4984 -src_compile() {
4985 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
4986 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
4987 - fi
4988 -}
4989 -
4990 -src_install() {
4991 - dodir \
4992 - /etc/zabbix \
4993 - /var/lib/zabbix \
4994 - /var/lib/zabbix/home \
4995 - /var/lib/zabbix/scripts \
4996 - /var/lib/zabbix/alertscripts \
4997 - /var/lib/zabbix/externalscripts \
4998 - /var/log/zabbix
4999 -
5000 - keepdir \
5001 - /etc/zabbix \
5002 - /var/lib/zabbix \
5003 - /var/lib/zabbix/home \
5004 - /var/lib/zabbix/scripts \
5005 - /var/lib/zabbix/alertscripts \
5006 - /var/lib/zabbix/externalscripts \
5007 - /var/log/zabbix
5008 -
5009 - if use server; then
5010 - insinto /etc/zabbix
5011 - doins "${FILESDIR}/3.0"/zabbix_server.conf
5012 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
5013 - dosbin src/zabbix_server/zabbix_server
5014 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
5015 - fperms 0640 /etc/zabbix/zabbix_server.conf
5016 - dodir /usr/share/zabbix
5017 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
5018 - systemd_dounit "${FILESDIR}/zabbix-server.service"
5019 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
5020 - fi
5021 -
5022 - if use proxy; then
5023 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
5024 - dosbin src/zabbix_proxy/zabbix_proxy
5025 - insinto /etc/zabbix
5026 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
5027 - dodir /usr/share/zabbix
5028 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
5029 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
5030 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
5031 - fi
5032 -
5033 - if use agent; then
5034 - insinto /etc/zabbix
5035 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
5036 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
5037 - dosbin src/zabbix_agent/zabbix_agentd
5038 - dobin \
5039 - src/zabbix_sender/zabbix_sender \
5040 - src/zabbix_get/zabbix_get
5041 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
5042 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
5043 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
5044 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
5045 - fi
5046 -
5047 - fowners zabbix:zabbix \
5048 - /etc/zabbix \
5049 - /var/lib/zabbix \
5050 - /var/lib/zabbix/home \
5051 - /var/lib/zabbix/scripts \
5052 - /var/lib/zabbix/alertscripts \
5053 - /var/lib/zabbix/externalscripts \
5054 - /var/log/zabbix
5055 - fperms 0750 \
5056 - /etc/zabbix \
5057 - /var/lib/zabbix \
5058 - /var/lib/zabbix/home \
5059 - /var/lib/zabbix/scripts \
5060 - /var/lib/zabbix/alertscripts \
5061 - /var/lib/zabbix/externalscripts \
5062 - /var/log/zabbix
5063 -
5064 - dodoc README INSTALL NEWS ChangeLog \
5065 - conf/zabbix_agentd.conf \
5066 - conf/zabbix_proxy.conf \
5067 - conf/zabbix_agentd/userparameter_examples.conf \
5068 - conf/zabbix_agentd/userparameter_mysql.conf \
5069 - conf/zabbix_server.conf
5070 -
5071 - if use frontend; then
5072 - webapp_src_preinst
5073 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
5074 - webapp_configfile \
5075 - "${MY_HTDOCSDIR}"/include/db.inc.php \
5076 - "${MY_HTDOCSDIR}"/include/config.inc.php
5077 - webapp_src_install
5078 - fi
5079 -
5080 - if use java; then
5081 - dodir \
5082 - /${ZABBIXJAVA_BASE} \
5083 - /${ZABBIXJAVA_BASE}/bin \
5084 - /${ZABBIXJAVA_BASE}/lib
5085 - keepdir /${ZABBIXJAVA_BASE}
5086 - exeinto /${ZABBIXJAVA_BASE}/bin
5087 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
5088 - exeinto /${ZABBIXJAVA_BASE}/lib
5089 - doexe \
5090 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
5091 - src/zabbix_java/lib/logback-console.xml \
5092 - src/zabbix_java/lib/logback-core-0.9.27.jar \
5093 - src/zabbix_java/lib/logback.xml \
5094 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
5095 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
5096 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
5097 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
5098 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
5099 - fi
5100 -}
5101 -
5102 -pkg_postinst() {
5103 - if use server || use proxy ; then
5104 - elog
5105 - elog "You may need to configure your database for Zabbix,"
5106 - elog "if you have not already done so. "
5107 - elog
5108 -
5109 - zabbix_homedir=$(egethome zabbix)
5110 - if [ -n "${zabbix_homedir}" ] && \
5111 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
5112 - ewarn
5113 - ewarn "The user 'zabbix' should have his homedir changed"
5114 - ewarn "to /var/lib/zabbix/home if you want to use"
5115 - ewarn "custom alert scripts."
5116 - ewarn
5117 - ewarn "A real homedir might be needed for configfiles"
5118 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
5119 - ewarn "using sendxmpp for Jabber alerts)."
5120 - ewarn
5121 - ewarn "To change the homedir use:"
5122 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
5123 - ewarn
5124 - fi
5125 - fi
5126 -
5127 - if use server; then
5128 - elog
5129 - elog "For distributed monitoring you have to run:"
5130 - elog
5131 - elog "zabbix_server -n <nodeid>"
5132 - elog
5133 - elog "This will convert database data for use with Node ID"
5134 - elog "and also adds a local node."
5135 - elog
5136 - fi
5137 -
5138 - elog "--"
5139 - elog
5140 - elog "You may need to add these lines to /etc/services:"
5141 - elog
5142 - elog "zabbix-agent 10050/tcp Zabbix Agent"
5143 - elog "zabbix-agent 10050/udp Zabbix Agent"
5144 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
5145 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
5146 - elog
5147 -
5148 - if use server || use proxy ; then
5149 - # check for fping
5150 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
5151 - case "${fping_perms}" in
5152 - 4[157][157][157])
5153 - ;;
5154 - *)
5155 - ewarn
5156 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
5157 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
5158 - ewarn "by everyone. Run the following command to fix it:"
5159 - ewarn
5160 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
5161 - ewarn
5162 - ewarn "Please be aware that this might impose a security risk,"
5163 - ewarn "depending on the code quality of fping."
5164 - ewarn
5165 - ;;
5166 - esac
5167 - fi
5168 -}
5169
5170 diff --git a/net-analyzer/zabbix/zabbix-3.2.6.ebuild b/net-analyzer/zabbix/zabbix-3.2.6.ebuild
5171 deleted file mode 100644
5172 index 31176f59177..00000000000
5173 --- a/net-analyzer/zabbix/zabbix-3.2.6.ebuild
5174 +++ /dev/null
5175 @@ -1,328 +0,0 @@
5176 -# Copyright 1999-2017 Gentoo Foundation
5177 -# Distributed under the terms of the GNU General Public License v2
5178 -
5179 -EAPI="6"
5180 -
5181 -# needed to make webapp-config dep optional
5182 -WEBAPP_OPTIONAL="yes"
5183 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
5184 -
5185 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
5186 -HOMEPAGE="http://www.zabbix.com/"
5187 -MY_P=${P/_/}
5188 -MY_PV=${PV/_/}
5189 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
5190 -LICENSE="GPL-2"
5191 -SLOT="0"
5192 -WEBAPP_MANUAL_SLOT="yes"
5193 -KEYWORDS="~amd64 ~x86"
5194 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
5195 -REQUIRED_USE="|| ( agent frontend proxy server )
5196 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
5197 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
5198 - static? ( !oracle !snmp )"
5199 -
5200 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
5201 - ldap? (
5202 - net-nds/openldap
5203 - =dev-libs/cyrus-sasl-2*
5204 - net-libs/gnutls
5205 - )
5206 - mysql? ( >=virtual/mysql-5.0.3 )
5207 - sqlite? ( >=dev-db/sqlite-3.3.5 )
5208 - postgres? ( dev-db/postgresql:* )
5209 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
5210 - xmpp? ( dev-libs/iksemel )
5211 - libxml2? ( dev-libs/libxml2 )
5212 - curl? ( net-misc/curl )
5213 - openipmi? ( sys-libs/openipmi )
5214 - ssh? ( net-libs/libssh2 )
5215 - java? ( virtual/jdk:* )
5216 - odbc? ( dev-db/unixODBC )
5217 - ssl? ( dev-libs/openssl:=[-bindist] )"
5218 -
5219 -RDEPEND="${COMMON_DEPEND}
5220 - proxy? ( net-analyzer/fping[suid] )
5221 - server? ( net-analyzer/fping[suid]
5222 - app-admin/webapp-config )
5223 - java? (
5224 - >=virtual/jre-1.4
5225 - dev-java/slf4j-api
5226 - )
5227 - frontend? (
5228 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
5229 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
5230 - mysql? ( dev-lang/php[mysqli] )
5231 - odbc? ( dev-lang/php[odbc] )
5232 - oracle? ( dev-lang/php[oci8-instant-client] )
5233 - postgres? ( dev-lang/php[postgres] )
5234 - sqlite? ( dev-lang/php[sqlite] )
5235 - media-libs/gd[png]
5236 - app-admin/webapp-config )"
5237 -DEPEND="${COMMON_DEPEND}
5238 - static? (
5239 - ldap? (
5240 - net-nds/openldap[static-libs]
5241 - =dev-libs/cyrus-sasl-2*[static-libs]
5242 - net-libs/gnutls[static-libs]
5243 - )
5244 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
5245 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
5246 - postgres? ( dev-db/postgresql:*[static-libs] )
5247 - libxml2? ( dev-libs/libxml2[static-libs] )
5248 - curl? ( net-misc/curl[static-libs] )
5249 - ssh? ( net-libs/libssh2[static-libs] )
5250 - odbc? ( dev-db/unixODBC[static-libs] )
5251 - )
5252 - virtual/pkgconfig"
5253 -
5254 -S=${WORKDIR}/${MY_P}
5255 -
5256 -ZABBIXJAVA_BASE="opt/zabbix_java"
5257 -
5258 -pkg_setup() {
5259 - if use oracle; then
5260 - if [ -z "${ORACLE_HOME}" ]; then
5261 - eerror
5262 - eerror "The environment variable ORACLE_HOME must be set"
5263 - eerror "and point to the correct location."
5264 - eerror "It looks like you don't have Oracle installed."
5265 - eerror
5266 - die "Environment variable ORACLE_HOME is not set"
5267 - fi
5268 - if has_version 'dev-db/oracle-instantclient-basic'; then
5269 - ewarn
5270 - ewarn "Please ensure you have a full install of the Oracle client."
5271 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
5272 - ewarn
5273 - fi
5274 - fi
5275 -
5276 - if use frontend; then
5277 - webapp_pkg_setup
5278 - fi
5279 -
5280 - enewgroup zabbix
5281 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
5282 -}
5283 -
5284 -java_prepare() {
5285 - cd "${S}/src/zabbix_java/lib"
5286 - rm -v *.jar || die
5287 -
5288 - java-pkg_jar-from slf4j-api
5289 -}
5290 -
5291 -src_prepare() {
5292 - default
5293 -}
5294 -
5295 -src_configure() {
5296 - econf \
5297 - $(use_enable server) \
5298 - $(use_enable proxy) \
5299 - $(use_enable agent) \
5300 - $(use_enable ipv6) \
5301 - $(use_enable static) \
5302 - $(use_enable java) \
5303 - $(use_with ldap) \
5304 - $(use_with snmp net-snmp) \
5305 - $(use_with mysql) \
5306 - $(use_with postgres postgresql) \
5307 - $(use_with oracle) \
5308 - $(use_with sqlite sqlite3) \
5309 - $(use_with xmpp jabber) \
5310 - $(use_with curl libcurl) \
5311 - $(use_with openipmi openipmi) \
5312 - $(use_with ssh ssh2) \
5313 - $(use_with libxml2) \
5314 - $(use_with odbc unixodbc) \
5315 - $(use_with ssl openssl) \
5316 - || die "econf failed"
5317 -}
5318 -
5319 -src_compile() {
5320 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
5321 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
5322 - fi
5323 -}
5324 -
5325 -src_install() {
5326 - dodir \
5327 - /etc/zabbix \
5328 - /var/lib/zabbix \
5329 - /var/lib/zabbix/home \
5330 - /var/lib/zabbix/scripts \
5331 - /var/lib/zabbix/alertscripts \
5332 - /var/lib/zabbix/externalscripts \
5333 - /var/log/zabbix
5334 -
5335 - keepdir \
5336 - /etc/zabbix \
5337 - /var/lib/zabbix \
5338 - /var/lib/zabbix/home \
5339 - /var/lib/zabbix/scripts \
5340 - /var/lib/zabbix/alertscripts \
5341 - /var/lib/zabbix/externalscripts \
5342 - /var/log/zabbix
5343 -
5344 - if use server; then
5345 - insinto /etc/zabbix
5346 - doins "${FILESDIR}/3.0"/zabbix_server.conf
5347 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
5348 - dosbin src/zabbix_server/zabbix_server
5349 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
5350 - fperms 0640 /etc/zabbix/zabbix_server.conf
5351 - dodir /usr/share/zabbix
5352 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
5353 - systemd_dounit "${FILESDIR}/zabbix-server.service"
5354 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
5355 - fi
5356 -
5357 - if use proxy; then
5358 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
5359 - dosbin src/zabbix_proxy/zabbix_proxy
5360 - insinto /etc/zabbix
5361 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
5362 - dodir /usr/share/zabbix
5363 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
5364 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
5365 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
5366 - fi
5367 -
5368 - if use agent; then
5369 - insinto /etc/zabbix
5370 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
5371 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
5372 - dosbin src/zabbix_agent/zabbix_agentd
5373 - dobin \
5374 - src/zabbix_sender/zabbix_sender \
5375 - src/zabbix_get/zabbix_get
5376 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
5377 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
5378 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
5379 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
5380 - fi
5381 -
5382 - fowners zabbix:zabbix \
5383 - /etc/zabbix \
5384 - /var/lib/zabbix \
5385 - /var/lib/zabbix/home \
5386 - /var/lib/zabbix/scripts \
5387 - /var/lib/zabbix/alertscripts \
5388 - /var/lib/zabbix/externalscripts \
5389 - /var/log/zabbix
5390 - fperms 0750 \
5391 - /etc/zabbix \
5392 - /var/lib/zabbix \
5393 - /var/lib/zabbix/home \
5394 - /var/lib/zabbix/scripts \
5395 - /var/lib/zabbix/alertscripts \
5396 - /var/lib/zabbix/externalscripts \
5397 - /var/log/zabbix
5398 -
5399 - dodoc README INSTALL NEWS ChangeLog \
5400 - conf/zabbix_agentd.conf \
5401 - conf/zabbix_proxy.conf \
5402 - conf/zabbix_agentd/userparameter_examples.conf \
5403 - conf/zabbix_agentd/userparameter_mysql.conf \
5404 - conf/zabbix_server.conf
5405 -
5406 - if use frontend; then
5407 - webapp_src_preinst
5408 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
5409 - webapp_configfile \
5410 - "${MY_HTDOCSDIR}"/include/db.inc.php \
5411 - "${MY_HTDOCSDIR}"/include/config.inc.php
5412 - webapp_src_install
5413 - fi
5414 -
5415 - if use java; then
5416 - dodir \
5417 - /${ZABBIXJAVA_BASE} \
5418 - /${ZABBIXJAVA_BASE}/bin \
5419 - /${ZABBIXJAVA_BASE}/lib
5420 - keepdir /${ZABBIXJAVA_BASE}
5421 - exeinto /${ZABBIXJAVA_BASE}/bin
5422 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
5423 - exeinto /${ZABBIXJAVA_BASE}/lib
5424 - doexe \
5425 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
5426 - src/zabbix_java/lib/logback-console.xml \
5427 - src/zabbix_java/lib/logback-core-0.9.27.jar \
5428 - src/zabbix_java/lib/logback.xml \
5429 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
5430 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
5431 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
5432 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
5433 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
5434 - fi
5435 -}
5436 -
5437 -pkg_postinst() {
5438 - if use server || use proxy ; then
5439 - elog
5440 - elog "You may need to configure your database for Zabbix,"
5441 - elog "if you have not already done so. "
5442 - elog
5443 -
5444 - zabbix_homedir=$(egethome zabbix)
5445 - if [ -n "${zabbix_homedir}" ] && \
5446 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
5447 - ewarn
5448 - ewarn "The user 'zabbix' should have his homedir changed"
5449 - ewarn "to /var/lib/zabbix/home if you want to use"
5450 - ewarn "custom alert scripts."
5451 - ewarn
5452 - ewarn "A real homedir might be needed for configfiles"
5453 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
5454 - ewarn "using sendxmpp for Jabber alerts)."
5455 - ewarn
5456 - ewarn "To change the homedir use:"
5457 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
5458 - ewarn
5459 - fi
5460 - fi
5461 -
5462 - if use server; then
5463 - elog
5464 - elog "For distributed monitoring you have to run:"
5465 - elog
5466 - elog "zabbix_server -n <nodeid>"
5467 - elog
5468 - elog "This will convert database data for use with Node ID"
5469 - elog "and also adds a local node."
5470 - elog
5471 - fi
5472 -
5473 - elog "--"
5474 - elog
5475 - elog "You may need to add these lines to /etc/services:"
5476 - elog
5477 - elog "zabbix-agent 10050/tcp Zabbix Agent"
5478 - elog "zabbix-agent 10050/udp Zabbix Agent"
5479 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
5480 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
5481 - elog
5482 -
5483 - if use server || use proxy ; then
5484 - # check for fping
5485 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
5486 - case "${fping_perms}" in
5487 - 4[157][157][157])
5488 - ;;
5489 - *)
5490 - ewarn
5491 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
5492 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
5493 - ewarn "by everyone. Run the following command to fix it:"
5494 - ewarn
5495 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
5496 - ewarn
5497 - ewarn "Please be aware that this might impose a security risk,"
5498 - ewarn "depending on the code quality of fping."
5499 - ewarn
5500 - ;;
5501 - esac
5502 - fi
5503 -}
5504
5505 diff --git a/net-analyzer/zabbix/zabbix-3.2.7.ebuild b/net-analyzer/zabbix/zabbix-3.2.7.ebuild
5506 deleted file mode 100644
5507 index 31176f59177..00000000000
5508 --- a/net-analyzer/zabbix/zabbix-3.2.7.ebuild
5509 +++ /dev/null
5510 @@ -1,328 +0,0 @@
5511 -# Copyright 1999-2017 Gentoo Foundation
5512 -# Distributed under the terms of the GNU General Public License v2
5513 -
5514 -EAPI="6"
5515 -
5516 -# needed to make webapp-config dep optional
5517 -WEBAPP_OPTIONAL="yes"
5518 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
5519 -
5520 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
5521 -HOMEPAGE="http://www.zabbix.com/"
5522 -MY_P=${P/_/}
5523 -MY_PV=${PV/_/}
5524 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
5525 -LICENSE="GPL-2"
5526 -SLOT="0"
5527 -WEBAPP_MANUAL_SLOT="yes"
5528 -KEYWORDS="~amd64 ~x86"
5529 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
5530 -REQUIRED_USE="|| ( agent frontend proxy server )
5531 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
5532 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
5533 - static? ( !oracle !snmp )"
5534 -
5535 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
5536 - ldap? (
5537 - net-nds/openldap
5538 - =dev-libs/cyrus-sasl-2*
5539 - net-libs/gnutls
5540 - )
5541 - mysql? ( >=virtual/mysql-5.0.3 )
5542 - sqlite? ( >=dev-db/sqlite-3.3.5 )
5543 - postgres? ( dev-db/postgresql:* )
5544 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
5545 - xmpp? ( dev-libs/iksemel )
5546 - libxml2? ( dev-libs/libxml2 )
5547 - curl? ( net-misc/curl )
5548 - openipmi? ( sys-libs/openipmi )
5549 - ssh? ( net-libs/libssh2 )
5550 - java? ( virtual/jdk:* )
5551 - odbc? ( dev-db/unixODBC )
5552 - ssl? ( dev-libs/openssl:=[-bindist] )"
5553 -
5554 -RDEPEND="${COMMON_DEPEND}
5555 - proxy? ( net-analyzer/fping[suid] )
5556 - server? ( net-analyzer/fping[suid]
5557 - app-admin/webapp-config )
5558 - java? (
5559 - >=virtual/jre-1.4
5560 - dev-java/slf4j-api
5561 - )
5562 - frontend? (
5563 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
5564 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
5565 - mysql? ( dev-lang/php[mysqli] )
5566 - odbc? ( dev-lang/php[odbc] )
5567 - oracle? ( dev-lang/php[oci8-instant-client] )
5568 - postgres? ( dev-lang/php[postgres] )
5569 - sqlite? ( dev-lang/php[sqlite] )
5570 - media-libs/gd[png]
5571 - app-admin/webapp-config )"
5572 -DEPEND="${COMMON_DEPEND}
5573 - static? (
5574 - ldap? (
5575 - net-nds/openldap[static-libs]
5576 - =dev-libs/cyrus-sasl-2*[static-libs]
5577 - net-libs/gnutls[static-libs]
5578 - )
5579 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
5580 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
5581 - postgres? ( dev-db/postgresql:*[static-libs] )
5582 - libxml2? ( dev-libs/libxml2[static-libs] )
5583 - curl? ( net-misc/curl[static-libs] )
5584 - ssh? ( net-libs/libssh2[static-libs] )
5585 - odbc? ( dev-db/unixODBC[static-libs] )
5586 - )
5587 - virtual/pkgconfig"
5588 -
5589 -S=${WORKDIR}/${MY_P}
5590 -
5591 -ZABBIXJAVA_BASE="opt/zabbix_java"
5592 -
5593 -pkg_setup() {
5594 - if use oracle; then
5595 - if [ -z "${ORACLE_HOME}" ]; then
5596 - eerror
5597 - eerror "The environment variable ORACLE_HOME must be set"
5598 - eerror "and point to the correct location."
5599 - eerror "It looks like you don't have Oracle installed."
5600 - eerror
5601 - die "Environment variable ORACLE_HOME is not set"
5602 - fi
5603 - if has_version 'dev-db/oracle-instantclient-basic'; then
5604 - ewarn
5605 - ewarn "Please ensure you have a full install of the Oracle client."
5606 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
5607 - ewarn
5608 - fi
5609 - fi
5610 -
5611 - if use frontend; then
5612 - webapp_pkg_setup
5613 - fi
5614 -
5615 - enewgroup zabbix
5616 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
5617 -}
5618 -
5619 -java_prepare() {
5620 - cd "${S}/src/zabbix_java/lib"
5621 - rm -v *.jar || die
5622 -
5623 - java-pkg_jar-from slf4j-api
5624 -}
5625 -
5626 -src_prepare() {
5627 - default
5628 -}
5629 -
5630 -src_configure() {
5631 - econf \
5632 - $(use_enable server) \
5633 - $(use_enable proxy) \
5634 - $(use_enable agent) \
5635 - $(use_enable ipv6) \
5636 - $(use_enable static) \
5637 - $(use_enable java) \
5638 - $(use_with ldap) \
5639 - $(use_with snmp net-snmp) \
5640 - $(use_with mysql) \
5641 - $(use_with postgres postgresql) \
5642 - $(use_with oracle) \
5643 - $(use_with sqlite sqlite3) \
5644 - $(use_with xmpp jabber) \
5645 - $(use_with curl libcurl) \
5646 - $(use_with openipmi openipmi) \
5647 - $(use_with ssh ssh2) \
5648 - $(use_with libxml2) \
5649 - $(use_with odbc unixodbc) \
5650 - $(use_with ssl openssl) \
5651 - || die "econf failed"
5652 -}
5653 -
5654 -src_compile() {
5655 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
5656 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
5657 - fi
5658 -}
5659 -
5660 -src_install() {
5661 - dodir \
5662 - /etc/zabbix \
5663 - /var/lib/zabbix \
5664 - /var/lib/zabbix/home \
5665 - /var/lib/zabbix/scripts \
5666 - /var/lib/zabbix/alertscripts \
5667 - /var/lib/zabbix/externalscripts \
5668 - /var/log/zabbix
5669 -
5670 - keepdir \
5671 - /etc/zabbix \
5672 - /var/lib/zabbix \
5673 - /var/lib/zabbix/home \
5674 - /var/lib/zabbix/scripts \
5675 - /var/lib/zabbix/alertscripts \
5676 - /var/lib/zabbix/externalscripts \
5677 - /var/log/zabbix
5678 -
5679 - if use server; then
5680 - insinto /etc/zabbix
5681 - doins "${FILESDIR}/3.0"/zabbix_server.conf
5682 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
5683 - dosbin src/zabbix_server/zabbix_server
5684 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
5685 - fperms 0640 /etc/zabbix/zabbix_server.conf
5686 - dodir /usr/share/zabbix
5687 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
5688 - systemd_dounit "${FILESDIR}/zabbix-server.service"
5689 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
5690 - fi
5691 -
5692 - if use proxy; then
5693 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
5694 - dosbin src/zabbix_proxy/zabbix_proxy
5695 - insinto /etc/zabbix
5696 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
5697 - dodir /usr/share/zabbix
5698 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
5699 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
5700 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
5701 - fi
5702 -
5703 - if use agent; then
5704 - insinto /etc/zabbix
5705 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
5706 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
5707 - dosbin src/zabbix_agent/zabbix_agentd
5708 - dobin \
5709 - src/zabbix_sender/zabbix_sender \
5710 - src/zabbix_get/zabbix_get
5711 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
5712 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
5713 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
5714 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
5715 - fi
5716 -
5717 - fowners zabbix:zabbix \
5718 - /etc/zabbix \
5719 - /var/lib/zabbix \
5720 - /var/lib/zabbix/home \
5721 - /var/lib/zabbix/scripts \
5722 - /var/lib/zabbix/alertscripts \
5723 - /var/lib/zabbix/externalscripts \
5724 - /var/log/zabbix
5725 - fperms 0750 \
5726 - /etc/zabbix \
5727 - /var/lib/zabbix \
5728 - /var/lib/zabbix/home \
5729 - /var/lib/zabbix/scripts \
5730 - /var/lib/zabbix/alertscripts \
5731 - /var/lib/zabbix/externalscripts \
5732 - /var/log/zabbix
5733 -
5734 - dodoc README INSTALL NEWS ChangeLog \
5735 - conf/zabbix_agentd.conf \
5736 - conf/zabbix_proxy.conf \
5737 - conf/zabbix_agentd/userparameter_examples.conf \
5738 - conf/zabbix_agentd/userparameter_mysql.conf \
5739 - conf/zabbix_server.conf
5740 -
5741 - if use frontend; then
5742 - webapp_src_preinst
5743 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
5744 - webapp_configfile \
5745 - "${MY_HTDOCSDIR}"/include/db.inc.php \
5746 - "${MY_HTDOCSDIR}"/include/config.inc.php
5747 - webapp_src_install
5748 - fi
5749 -
5750 - if use java; then
5751 - dodir \
5752 - /${ZABBIXJAVA_BASE} \
5753 - /${ZABBIXJAVA_BASE}/bin \
5754 - /${ZABBIXJAVA_BASE}/lib
5755 - keepdir /${ZABBIXJAVA_BASE}
5756 - exeinto /${ZABBIXJAVA_BASE}/bin
5757 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
5758 - exeinto /${ZABBIXJAVA_BASE}/lib
5759 - doexe \
5760 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
5761 - src/zabbix_java/lib/logback-console.xml \
5762 - src/zabbix_java/lib/logback-core-0.9.27.jar \
5763 - src/zabbix_java/lib/logback.xml \
5764 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
5765 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
5766 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
5767 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
5768 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
5769 - fi
5770 -}
5771 -
5772 -pkg_postinst() {
5773 - if use server || use proxy ; then
5774 - elog
5775 - elog "You may need to configure your database for Zabbix,"
5776 - elog "if you have not already done so. "
5777 - elog
5778 -
5779 - zabbix_homedir=$(egethome zabbix)
5780 - if [ -n "${zabbix_homedir}" ] && \
5781 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
5782 - ewarn
5783 - ewarn "The user 'zabbix' should have his homedir changed"
5784 - ewarn "to /var/lib/zabbix/home if you want to use"
5785 - ewarn "custom alert scripts."
5786 - ewarn
5787 - ewarn "A real homedir might be needed for configfiles"
5788 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
5789 - ewarn "using sendxmpp for Jabber alerts)."
5790 - ewarn
5791 - ewarn "To change the homedir use:"
5792 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
5793 - ewarn
5794 - fi
5795 - fi
5796 -
5797 - if use server; then
5798 - elog
5799 - elog "For distributed monitoring you have to run:"
5800 - elog
5801 - elog "zabbix_server -n <nodeid>"
5802 - elog
5803 - elog "This will convert database data for use with Node ID"
5804 - elog "and also adds a local node."
5805 - elog
5806 - fi
5807 -
5808 - elog "--"
5809 - elog
5810 - elog "You may need to add these lines to /etc/services:"
5811 - elog
5812 - elog "zabbix-agent 10050/tcp Zabbix Agent"
5813 - elog "zabbix-agent 10050/udp Zabbix Agent"
5814 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
5815 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
5816 - elog
5817 -
5818 - if use server || use proxy ; then
5819 - # check for fping
5820 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
5821 - case "${fping_perms}" in
5822 - 4[157][157][157])
5823 - ;;
5824 - *)
5825 - ewarn
5826 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
5827 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
5828 - ewarn "by everyone. Run the following command to fix it:"
5829 - ewarn
5830 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
5831 - ewarn
5832 - ewarn "Please be aware that this might impose a security risk,"
5833 - ewarn "depending on the code quality of fping."
5834 - ewarn
5835 - ;;
5836 - esac
5837 - fi
5838 -}
5839
5840 diff --git a/net-analyzer/zabbix/zabbix-3.2.8.ebuild b/net-analyzer/zabbix/zabbix-3.2.8.ebuild
5841 deleted file mode 100644
5842 index 31176f59177..00000000000
5843 --- a/net-analyzer/zabbix/zabbix-3.2.8.ebuild
5844 +++ /dev/null
5845 @@ -1,328 +0,0 @@
5846 -# Copyright 1999-2017 Gentoo Foundation
5847 -# Distributed under the terms of the GNU General Public License v2
5848 -
5849 -EAPI="6"
5850 -
5851 -# needed to make webapp-config dep optional
5852 -WEBAPP_OPTIONAL="yes"
5853 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
5854 -
5855 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
5856 -HOMEPAGE="http://www.zabbix.com/"
5857 -MY_P=${P/_/}
5858 -MY_PV=${PV/_/}
5859 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
5860 -LICENSE="GPL-2"
5861 -SLOT="0"
5862 -WEBAPP_MANUAL_SLOT="yes"
5863 -KEYWORDS="~amd64 ~x86"
5864 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
5865 -REQUIRED_USE="|| ( agent frontend proxy server )
5866 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
5867 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
5868 - static? ( !oracle !snmp )"
5869 -
5870 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
5871 - ldap? (
5872 - net-nds/openldap
5873 - =dev-libs/cyrus-sasl-2*
5874 - net-libs/gnutls
5875 - )
5876 - mysql? ( >=virtual/mysql-5.0.3 )
5877 - sqlite? ( >=dev-db/sqlite-3.3.5 )
5878 - postgres? ( dev-db/postgresql:* )
5879 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
5880 - xmpp? ( dev-libs/iksemel )
5881 - libxml2? ( dev-libs/libxml2 )
5882 - curl? ( net-misc/curl )
5883 - openipmi? ( sys-libs/openipmi )
5884 - ssh? ( net-libs/libssh2 )
5885 - java? ( virtual/jdk:* )
5886 - odbc? ( dev-db/unixODBC )
5887 - ssl? ( dev-libs/openssl:=[-bindist] )"
5888 -
5889 -RDEPEND="${COMMON_DEPEND}
5890 - proxy? ( net-analyzer/fping[suid] )
5891 - server? ( net-analyzer/fping[suid]
5892 - app-admin/webapp-config )
5893 - java? (
5894 - >=virtual/jre-1.4
5895 - dev-java/slf4j-api
5896 - )
5897 - frontend? (
5898 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
5899 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
5900 - mysql? ( dev-lang/php[mysqli] )
5901 - odbc? ( dev-lang/php[odbc] )
5902 - oracle? ( dev-lang/php[oci8-instant-client] )
5903 - postgres? ( dev-lang/php[postgres] )
5904 - sqlite? ( dev-lang/php[sqlite] )
5905 - media-libs/gd[png]
5906 - app-admin/webapp-config )"
5907 -DEPEND="${COMMON_DEPEND}
5908 - static? (
5909 - ldap? (
5910 - net-nds/openldap[static-libs]
5911 - =dev-libs/cyrus-sasl-2*[static-libs]
5912 - net-libs/gnutls[static-libs]
5913 - )
5914 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
5915 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
5916 - postgres? ( dev-db/postgresql:*[static-libs] )
5917 - libxml2? ( dev-libs/libxml2[static-libs] )
5918 - curl? ( net-misc/curl[static-libs] )
5919 - ssh? ( net-libs/libssh2[static-libs] )
5920 - odbc? ( dev-db/unixODBC[static-libs] )
5921 - )
5922 - virtual/pkgconfig"
5923 -
5924 -S=${WORKDIR}/${MY_P}
5925 -
5926 -ZABBIXJAVA_BASE="opt/zabbix_java"
5927 -
5928 -pkg_setup() {
5929 - if use oracle; then
5930 - if [ -z "${ORACLE_HOME}" ]; then
5931 - eerror
5932 - eerror "The environment variable ORACLE_HOME must be set"
5933 - eerror "and point to the correct location."
5934 - eerror "It looks like you don't have Oracle installed."
5935 - eerror
5936 - die "Environment variable ORACLE_HOME is not set"
5937 - fi
5938 - if has_version 'dev-db/oracle-instantclient-basic'; then
5939 - ewarn
5940 - ewarn "Please ensure you have a full install of the Oracle client."
5941 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
5942 - ewarn
5943 - fi
5944 - fi
5945 -
5946 - if use frontend; then
5947 - webapp_pkg_setup
5948 - fi
5949 -
5950 - enewgroup zabbix
5951 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
5952 -}
5953 -
5954 -java_prepare() {
5955 - cd "${S}/src/zabbix_java/lib"
5956 - rm -v *.jar || die
5957 -
5958 - java-pkg_jar-from slf4j-api
5959 -}
5960 -
5961 -src_prepare() {
5962 - default
5963 -}
5964 -
5965 -src_configure() {
5966 - econf \
5967 - $(use_enable server) \
5968 - $(use_enable proxy) \
5969 - $(use_enable agent) \
5970 - $(use_enable ipv6) \
5971 - $(use_enable static) \
5972 - $(use_enable java) \
5973 - $(use_with ldap) \
5974 - $(use_with snmp net-snmp) \
5975 - $(use_with mysql) \
5976 - $(use_with postgres postgresql) \
5977 - $(use_with oracle) \
5978 - $(use_with sqlite sqlite3) \
5979 - $(use_with xmpp jabber) \
5980 - $(use_with curl libcurl) \
5981 - $(use_with openipmi openipmi) \
5982 - $(use_with ssh ssh2) \
5983 - $(use_with libxml2) \
5984 - $(use_with odbc unixodbc) \
5985 - $(use_with ssl openssl) \
5986 - || die "econf failed"
5987 -}
5988 -
5989 -src_compile() {
5990 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
5991 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
5992 - fi
5993 -}
5994 -
5995 -src_install() {
5996 - dodir \
5997 - /etc/zabbix \
5998 - /var/lib/zabbix \
5999 - /var/lib/zabbix/home \
6000 - /var/lib/zabbix/scripts \
6001 - /var/lib/zabbix/alertscripts \
6002 - /var/lib/zabbix/externalscripts \
6003 - /var/log/zabbix
6004 -
6005 - keepdir \
6006 - /etc/zabbix \
6007 - /var/lib/zabbix \
6008 - /var/lib/zabbix/home \
6009 - /var/lib/zabbix/scripts \
6010 - /var/lib/zabbix/alertscripts \
6011 - /var/lib/zabbix/externalscripts \
6012 - /var/log/zabbix
6013 -
6014 - if use server; then
6015 - insinto /etc/zabbix
6016 - doins "${FILESDIR}/3.0"/zabbix_server.conf
6017 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
6018 - dosbin src/zabbix_server/zabbix_server
6019 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
6020 - fperms 0640 /etc/zabbix/zabbix_server.conf
6021 - dodir /usr/share/zabbix
6022 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
6023 - systemd_dounit "${FILESDIR}/zabbix-server.service"
6024 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
6025 - fi
6026 -
6027 - if use proxy; then
6028 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
6029 - dosbin src/zabbix_proxy/zabbix_proxy
6030 - insinto /etc/zabbix
6031 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
6032 - dodir /usr/share/zabbix
6033 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
6034 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
6035 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
6036 - fi
6037 -
6038 - if use agent; then
6039 - insinto /etc/zabbix
6040 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
6041 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
6042 - dosbin src/zabbix_agent/zabbix_agentd
6043 - dobin \
6044 - src/zabbix_sender/zabbix_sender \
6045 - src/zabbix_get/zabbix_get
6046 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
6047 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
6048 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
6049 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
6050 - fi
6051 -
6052 - fowners zabbix:zabbix \
6053 - /etc/zabbix \
6054 - /var/lib/zabbix \
6055 - /var/lib/zabbix/home \
6056 - /var/lib/zabbix/scripts \
6057 - /var/lib/zabbix/alertscripts \
6058 - /var/lib/zabbix/externalscripts \
6059 - /var/log/zabbix
6060 - fperms 0750 \
6061 - /etc/zabbix \
6062 - /var/lib/zabbix \
6063 - /var/lib/zabbix/home \
6064 - /var/lib/zabbix/scripts \
6065 - /var/lib/zabbix/alertscripts \
6066 - /var/lib/zabbix/externalscripts \
6067 - /var/log/zabbix
6068 -
6069 - dodoc README INSTALL NEWS ChangeLog \
6070 - conf/zabbix_agentd.conf \
6071 - conf/zabbix_proxy.conf \
6072 - conf/zabbix_agentd/userparameter_examples.conf \
6073 - conf/zabbix_agentd/userparameter_mysql.conf \
6074 - conf/zabbix_server.conf
6075 -
6076 - if use frontend; then
6077 - webapp_src_preinst
6078 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
6079 - webapp_configfile \
6080 - "${MY_HTDOCSDIR}"/include/db.inc.php \
6081 - "${MY_HTDOCSDIR}"/include/config.inc.php
6082 - webapp_src_install
6083 - fi
6084 -
6085 - if use java; then
6086 - dodir \
6087 - /${ZABBIXJAVA_BASE} \
6088 - /${ZABBIXJAVA_BASE}/bin \
6089 - /${ZABBIXJAVA_BASE}/lib
6090 - keepdir /${ZABBIXJAVA_BASE}
6091 - exeinto /${ZABBIXJAVA_BASE}/bin
6092 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
6093 - exeinto /${ZABBIXJAVA_BASE}/lib
6094 - doexe \
6095 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
6096 - src/zabbix_java/lib/logback-console.xml \
6097 - src/zabbix_java/lib/logback-core-0.9.27.jar \
6098 - src/zabbix_java/lib/logback.xml \
6099 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
6100 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
6101 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
6102 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
6103 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
6104 - fi
6105 -}
6106 -
6107 -pkg_postinst() {
6108 - if use server || use proxy ; then
6109 - elog
6110 - elog "You may need to configure your database for Zabbix,"
6111 - elog "if you have not already done so. "
6112 - elog
6113 -
6114 - zabbix_homedir=$(egethome zabbix)
6115 - if [ -n "${zabbix_homedir}" ] && \
6116 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
6117 - ewarn
6118 - ewarn "The user 'zabbix' should have his homedir changed"
6119 - ewarn "to /var/lib/zabbix/home if you want to use"
6120 - ewarn "custom alert scripts."
6121 - ewarn
6122 - ewarn "A real homedir might be needed for configfiles"
6123 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
6124 - ewarn "using sendxmpp for Jabber alerts)."
6125 - ewarn
6126 - ewarn "To change the homedir use:"
6127 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
6128 - ewarn
6129 - fi
6130 - fi
6131 -
6132 - if use server; then
6133 - elog
6134 - elog "For distributed monitoring you have to run:"
6135 - elog
6136 - elog "zabbix_server -n <nodeid>"
6137 - elog
6138 - elog "This will convert database data for use with Node ID"
6139 - elog "and also adds a local node."
6140 - elog
6141 - fi
6142 -
6143 - elog "--"
6144 - elog
6145 - elog "You may need to add these lines to /etc/services:"
6146 - elog
6147 - elog "zabbix-agent 10050/tcp Zabbix Agent"
6148 - elog "zabbix-agent 10050/udp Zabbix Agent"
6149 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
6150 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
6151 - elog
6152 -
6153 - if use server || use proxy ; then
6154 - # check for fping
6155 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
6156 - case "${fping_perms}" in
6157 - 4[157][157][157])
6158 - ;;
6159 - *)
6160 - ewarn
6161 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
6162 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
6163 - ewarn "by everyone. Run the following command to fix it:"
6164 - ewarn
6165 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
6166 - ewarn
6167 - ewarn "Please be aware that this might impose a security risk,"
6168 - ewarn "depending on the code quality of fping."
6169 - ewarn
6170 - ;;
6171 - esac
6172 - fi
6173 -}
6174
6175 diff --git a/net-analyzer/zabbix/zabbix-3.4.1.ebuild b/net-analyzer/zabbix/zabbix-3.4.1.ebuild
6176 deleted file mode 100644
6177 index ae1d5666084..00000000000
6178 --- a/net-analyzer/zabbix/zabbix-3.4.1.ebuild
6179 +++ /dev/null
6180 @@ -1,329 +0,0 @@
6181 -# Copyright 1999-2017 Gentoo Foundation
6182 -# Distributed under the terms of the GNU General Public License v2
6183 -
6184 -EAPI="6"
6185 -
6186 -# needed to make webapp-config dep optional
6187 -WEBAPP_OPTIONAL="yes"
6188 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
6189 -
6190 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
6191 -HOMEPAGE="http://www.zabbix.com/"
6192 -MY_P=${P/_/}
6193 -MY_PV=${PV/_/}
6194 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
6195 -LICENSE="GPL-2"
6196 -SLOT="0"
6197 -WEBAPP_MANUAL_SLOT="yes"
6198 -KEYWORDS="~amd64 ~x86"
6199 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
6200 -REQUIRED_USE="|| ( agent frontend proxy server )
6201 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
6202 - server? ( ^^ ( mysql oracle postgres odbc ) )
6203 - static? ( !oracle !snmp )"
6204 -
6205 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
6206 - ldap? (
6207 - net-nds/openldap
6208 - =dev-libs/cyrus-sasl-2*
6209 - net-libs/gnutls
6210 - )
6211 - mysql? ( >=virtual/mysql-5.0.3 )
6212 - sqlite? ( >=dev-db/sqlite-3.3.5 )
6213 - postgres? ( dev-db/postgresql:* )
6214 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
6215 - xmpp? ( dev-libs/iksemel )
6216 - libxml2? ( dev-libs/libxml2 )
6217 - curl? ( net-misc/curl )
6218 - openipmi? ( sys-libs/openipmi )
6219 - ssh? ( net-libs/libssh2 )
6220 - java? ( virtual/jdk:* )
6221 - odbc? ( dev-db/unixODBC )
6222 - ssl? ( dev-libs/openssl:=[-bindist] )"
6223 -
6224 -RDEPEND="${COMMON_DEPEND}
6225 - proxy? ( net-analyzer/fping[suid] )
6226 - server? ( net-analyzer/fping[suid]
6227 - app-admin/webapp-config
6228 - dev-libs/libevent )
6229 - java? (
6230 - >=virtual/jre-1.4
6231 - dev-java/slf4j-api
6232 - )
6233 - frontend? (
6234 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
6235 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
6236 - mysql? ( dev-lang/php[mysqli] )
6237 - odbc? ( dev-lang/php[odbc] )
6238 - oracle? ( dev-lang/php[oci8-instant-client] )
6239 - postgres? ( dev-lang/php[postgres] )
6240 - sqlite? ( dev-lang/php[sqlite] )
6241 - media-libs/gd[png]
6242 - app-admin/webapp-config )"
6243 -DEPEND="${COMMON_DEPEND}
6244 - static? (
6245 - ldap? (
6246 - net-nds/openldap[static-libs]
6247 - =dev-libs/cyrus-sasl-2*[static-libs]
6248 - net-libs/gnutls[static-libs]
6249 - )
6250 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
6251 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
6252 - postgres? ( dev-db/postgresql:*[static-libs] )
6253 - libxml2? ( dev-libs/libxml2[static-libs] )
6254 - curl? ( net-misc/curl[static-libs] )
6255 - ssh? ( net-libs/libssh2[static-libs] )
6256 - odbc? ( dev-db/unixODBC[static-libs] )
6257 - )
6258 - virtual/pkgconfig"
6259 -
6260 -S=${WORKDIR}/${MY_P}
6261 -
6262 -ZABBIXJAVA_BASE="opt/zabbix_java"
6263 -
6264 -pkg_setup() {
6265 - if use oracle; then
6266 - if [ -z "${ORACLE_HOME}" ]; then
6267 - eerror
6268 - eerror "The environment variable ORACLE_HOME must be set"
6269 - eerror "and point to the correct location."
6270 - eerror "It looks like you don't have Oracle installed."
6271 - eerror
6272 - die "Environment variable ORACLE_HOME is not set"
6273 - fi
6274 - if has_version 'dev-db/oracle-instantclient-basic'; then
6275 - ewarn
6276 - ewarn "Please ensure you have a full install of the Oracle client."
6277 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
6278 - ewarn
6279 - fi
6280 - fi
6281 -
6282 - if use frontend; then
6283 - webapp_pkg_setup
6284 - fi
6285 -
6286 - enewgroup zabbix
6287 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
6288 -}
6289 -
6290 -java_prepare() {
6291 - cd "${S}/src/zabbix_java/lib"
6292 - rm -v *.jar || die
6293 -
6294 - java-pkg_jar-from slf4j-api
6295 -}
6296 -
6297 -src_prepare() {
6298 - default
6299 -}
6300 -
6301 -src_configure() {
6302 - econf \
6303 - $(use_enable server) \
6304 - $(use_enable proxy) \
6305 - $(use_enable agent) \
6306 - $(use_enable ipv6) \
6307 - $(use_enable static) \
6308 - $(use_enable java) \
6309 - $(use_with ldap) \
6310 - $(use_with snmp net-snmp) \
6311 - $(use_with mysql) \
6312 - $(use_with postgres postgresql) \
6313 - $(use_with oracle) \
6314 - $(use_with sqlite sqlite3) \
6315 - $(use_with xmpp jabber) \
6316 - $(use_with curl libcurl) \
6317 - $(use_with openipmi openipmi) \
6318 - $(use_with ssh ssh2) \
6319 - $(use_with libxml2) \
6320 - $(use_with odbc unixodbc) \
6321 - $(use_with ssl openssl) \
6322 - || die "econf failed"
6323 -}
6324 -
6325 -src_compile() {
6326 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
6327 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
6328 - fi
6329 -}
6330 -
6331 -src_install() {
6332 - dodir \
6333 - /etc/zabbix \
6334 - /var/lib/zabbix \
6335 - /var/lib/zabbix/home \
6336 - /var/lib/zabbix/scripts \
6337 - /var/lib/zabbix/alertscripts \
6338 - /var/lib/zabbix/externalscripts \
6339 - /var/log/zabbix
6340 -
6341 - keepdir \
6342 - /etc/zabbix \
6343 - /var/lib/zabbix \
6344 - /var/lib/zabbix/home \
6345 - /var/lib/zabbix/scripts \
6346 - /var/lib/zabbix/alertscripts \
6347 - /var/lib/zabbix/externalscripts \
6348 - /var/log/zabbix
6349 -
6350 - if use server; then
6351 - insinto /etc/zabbix
6352 - doins "${FILESDIR}/3.0"/zabbix_server.conf
6353 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
6354 - dosbin src/zabbix_server/zabbix_server
6355 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
6356 - fperms 0640 /etc/zabbix/zabbix_server.conf
6357 - dodir /usr/share/zabbix
6358 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
6359 - systemd_dounit "${FILESDIR}/zabbix-server.service"
6360 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
6361 - fi
6362 -
6363 - if use proxy; then
6364 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
6365 - dosbin src/zabbix_proxy/zabbix_proxy
6366 - insinto /etc/zabbix
6367 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
6368 - dodir /usr/share/zabbix
6369 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
6370 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
6371 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
6372 - fi
6373 -
6374 - if use agent; then
6375 - insinto /etc/zabbix
6376 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
6377 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
6378 - dosbin src/zabbix_agent/zabbix_agentd
6379 - dobin \
6380 - src/zabbix_sender/zabbix_sender \
6381 - src/zabbix_get/zabbix_get
6382 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
6383 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
6384 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
6385 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
6386 - fi
6387 -
6388 - fowners zabbix:zabbix \
6389 - /etc/zabbix \
6390 - /var/lib/zabbix \
6391 - /var/lib/zabbix/home \
6392 - /var/lib/zabbix/scripts \
6393 - /var/lib/zabbix/alertscripts \
6394 - /var/lib/zabbix/externalscripts \
6395 - /var/log/zabbix
6396 - fperms 0750 \
6397 - /etc/zabbix \
6398 - /var/lib/zabbix \
6399 - /var/lib/zabbix/home \
6400 - /var/lib/zabbix/scripts \
6401 - /var/lib/zabbix/alertscripts \
6402 - /var/lib/zabbix/externalscripts \
6403 - /var/log/zabbix
6404 -
6405 - dodoc README INSTALL NEWS ChangeLog \
6406 - conf/zabbix_agentd.conf \
6407 - conf/zabbix_proxy.conf \
6408 - conf/zabbix_agentd/userparameter_examples.conf \
6409 - conf/zabbix_agentd/userparameter_mysql.conf \
6410 - conf/zabbix_server.conf
6411 -
6412 - if use frontend; then
6413 - webapp_src_preinst
6414 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
6415 - webapp_configfile \
6416 - "${MY_HTDOCSDIR}"/include/db.inc.php \
6417 - "${MY_HTDOCSDIR}"/include/config.inc.php
6418 - webapp_src_install
6419 - fi
6420 -
6421 - if use java; then
6422 - dodir \
6423 - /${ZABBIXJAVA_BASE} \
6424 - /${ZABBIXJAVA_BASE}/bin \
6425 - /${ZABBIXJAVA_BASE}/lib
6426 - keepdir /${ZABBIXJAVA_BASE}
6427 - exeinto /${ZABBIXJAVA_BASE}/bin
6428 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
6429 - exeinto /${ZABBIXJAVA_BASE}/lib
6430 - doexe \
6431 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
6432 - src/zabbix_java/lib/logback-console.xml \
6433 - src/zabbix_java/lib/logback-core-0.9.27.jar \
6434 - src/zabbix_java/lib/logback.xml \
6435 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
6436 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
6437 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
6438 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
6439 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
6440 - fi
6441 -}
6442 -
6443 -pkg_postinst() {
6444 - if use server || use proxy ; then
6445 - elog
6446 - elog "You may need to configure your database for Zabbix,"
6447 - elog "if you have not already done so. "
6448 - elog
6449 -
6450 - zabbix_homedir=$(egethome zabbix)
6451 - if [ -n "${zabbix_homedir}" ] && \
6452 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
6453 - ewarn
6454 - ewarn "The user 'zabbix' should have his homedir changed"
6455 - ewarn "to /var/lib/zabbix/home if you want to use"
6456 - ewarn "custom alert scripts."
6457 - ewarn
6458 - ewarn "A real homedir might be needed for configfiles"
6459 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
6460 - ewarn "using sendxmpp for Jabber alerts)."
6461 - ewarn
6462 - ewarn "To change the homedir use:"
6463 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
6464 - ewarn
6465 - fi
6466 - fi
6467 -
6468 - if use server; then
6469 - elog
6470 - elog "For distributed monitoring you have to run:"
6471 - elog
6472 - elog "zabbix_server -n <nodeid>"
6473 - elog
6474 - elog "This will convert database data for use with Node ID"
6475 - elog "and also adds a local node."
6476 - elog
6477 - fi
6478 -
6479 - elog "--"
6480 - elog
6481 - elog "You may need to add these lines to /etc/services:"
6482 - elog
6483 - elog "zabbix-agent 10050/tcp Zabbix Agent"
6484 - elog "zabbix-agent 10050/udp Zabbix Agent"
6485 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
6486 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
6487 - elog
6488 -
6489 - if use server || use proxy ; then
6490 - # check for fping
6491 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
6492 - case "${fping_perms}" in
6493 - 4[157][157][157])
6494 - ;;
6495 - *)
6496 - ewarn
6497 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
6498 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
6499 - ewarn "by everyone. Run the following command to fix it:"
6500 - ewarn
6501 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
6502 - ewarn
6503 - ewarn "Please be aware that this might impose a security risk,"
6504 - ewarn "depending on the code quality of fping."
6505 - ewarn
6506 - ;;
6507 - esac
6508 - fi
6509 -}
6510
6511 diff --git a/net-analyzer/zabbix/zabbix-3.4.2.ebuild b/net-analyzer/zabbix/zabbix-3.4.2.ebuild
6512 deleted file mode 100644
6513 index ae1d5666084..00000000000
6514 --- a/net-analyzer/zabbix/zabbix-3.4.2.ebuild
6515 +++ /dev/null
6516 @@ -1,329 +0,0 @@
6517 -# Copyright 1999-2017 Gentoo Foundation
6518 -# Distributed under the terms of the GNU General Public License v2
6519 -
6520 -EAPI="6"
6521 -
6522 -# needed to make webapp-config dep optional
6523 -WEBAPP_OPTIONAL="yes"
6524 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
6525 -
6526 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
6527 -HOMEPAGE="http://www.zabbix.com/"
6528 -MY_P=${P/_/}
6529 -MY_PV=${PV/_/}
6530 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
6531 -LICENSE="GPL-2"
6532 -SLOT="0"
6533 -WEBAPP_MANUAL_SLOT="yes"
6534 -KEYWORDS="~amd64 ~x86"
6535 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
6536 -REQUIRED_USE="|| ( agent frontend proxy server )
6537 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
6538 - server? ( ^^ ( mysql oracle postgres odbc ) )
6539 - static? ( !oracle !snmp )"
6540 -
6541 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
6542 - ldap? (
6543 - net-nds/openldap
6544 - =dev-libs/cyrus-sasl-2*
6545 - net-libs/gnutls
6546 - )
6547 - mysql? ( >=virtual/mysql-5.0.3 )
6548 - sqlite? ( >=dev-db/sqlite-3.3.5 )
6549 - postgres? ( dev-db/postgresql:* )
6550 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
6551 - xmpp? ( dev-libs/iksemel )
6552 - libxml2? ( dev-libs/libxml2 )
6553 - curl? ( net-misc/curl )
6554 - openipmi? ( sys-libs/openipmi )
6555 - ssh? ( net-libs/libssh2 )
6556 - java? ( virtual/jdk:* )
6557 - odbc? ( dev-db/unixODBC )
6558 - ssl? ( dev-libs/openssl:=[-bindist] )"
6559 -
6560 -RDEPEND="${COMMON_DEPEND}
6561 - proxy? ( net-analyzer/fping[suid] )
6562 - server? ( net-analyzer/fping[suid]
6563 - app-admin/webapp-config
6564 - dev-libs/libevent )
6565 - java? (
6566 - >=virtual/jre-1.4
6567 - dev-java/slf4j-api
6568 - )
6569 - frontend? (
6570 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
6571 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
6572 - mysql? ( dev-lang/php[mysqli] )
6573 - odbc? ( dev-lang/php[odbc] )
6574 - oracle? ( dev-lang/php[oci8-instant-client] )
6575 - postgres? ( dev-lang/php[postgres] )
6576 - sqlite? ( dev-lang/php[sqlite] )
6577 - media-libs/gd[png]
6578 - app-admin/webapp-config )"
6579 -DEPEND="${COMMON_DEPEND}
6580 - static? (
6581 - ldap? (
6582 - net-nds/openldap[static-libs]
6583 - =dev-libs/cyrus-sasl-2*[static-libs]
6584 - net-libs/gnutls[static-libs]
6585 - )
6586 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
6587 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
6588 - postgres? ( dev-db/postgresql:*[static-libs] )
6589 - libxml2? ( dev-libs/libxml2[static-libs] )
6590 - curl? ( net-misc/curl[static-libs] )
6591 - ssh? ( net-libs/libssh2[static-libs] )
6592 - odbc? ( dev-db/unixODBC[static-libs] )
6593 - )
6594 - virtual/pkgconfig"
6595 -
6596 -S=${WORKDIR}/${MY_P}
6597 -
6598 -ZABBIXJAVA_BASE="opt/zabbix_java"
6599 -
6600 -pkg_setup() {
6601 - if use oracle; then
6602 - if [ -z "${ORACLE_HOME}" ]; then
6603 - eerror
6604 - eerror "The environment variable ORACLE_HOME must be set"
6605 - eerror "and point to the correct location."
6606 - eerror "It looks like you don't have Oracle installed."
6607 - eerror
6608 - die "Environment variable ORACLE_HOME is not set"
6609 - fi
6610 - if has_version 'dev-db/oracle-instantclient-basic'; then
6611 - ewarn
6612 - ewarn "Please ensure you have a full install of the Oracle client."
6613 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
6614 - ewarn
6615 - fi
6616 - fi
6617 -
6618 - if use frontend; then
6619 - webapp_pkg_setup
6620 - fi
6621 -
6622 - enewgroup zabbix
6623 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
6624 -}
6625 -
6626 -java_prepare() {
6627 - cd "${S}/src/zabbix_java/lib"
6628 - rm -v *.jar || die
6629 -
6630 - java-pkg_jar-from slf4j-api
6631 -}
6632 -
6633 -src_prepare() {
6634 - default
6635 -}
6636 -
6637 -src_configure() {
6638 - econf \
6639 - $(use_enable server) \
6640 - $(use_enable proxy) \
6641 - $(use_enable agent) \
6642 - $(use_enable ipv6) \
6643 - $(use_enable static) \
6644 - $(use_enable java) \
6645 - $(use_with ldap) \
6646 - $(use_with snmp net-snmp) \
6647 - $(use_with mysql) \
6648 - $(use_with postgres postgresql) \
6649 - $(use_with oracle) \
6650 - $(use_with sqlite sqlite3) \
6651 - $(use_with xmpp jabber) \
6652 - $(use_with curl libcurl) \
6653 - $(use_with openipmi openipmi) \
6654 - $(use_with ssh ssh2) \
6655 - $(use_with libxml2) \
6656 - $(use_with odbc unixodbc) \
6657 - $(use_with ssl openssl) \
6658 - || die "econf failed"
6659 -}
6660 -
6661 -src_compile() {
6662 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
6663 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
6664 - fi
6665 -}
6666 -
6667 -src_install() {
6668 - dodir \
6669 - /etc/zabbix \
6670 - /var/lib/zabbix \
6671 - /var/lib/zabbix/home \
6672 - /var/lib/zabbix/scripts \
6673 - /var/lib/zabbix/alertscripts \
6674 - /var/lib/zabbix/externalscripts \
6675 - /var/log/zabbix
6676 -
6677 - keepdir \
6678 - /etc/zabbix \
6679 - /var/lib/zabbix \
6680 - /var/lib/zabbix/home \
6681 - /var/lib/zabbix/scripts \
6682 - /var/lib/zabbix/alertscripts \
6683 - /var/lib/zabbix/externalscripts \
6684 - /var/log/zabbix
6685 -
6686 - if use server; then
6687 - insinto /etc/zabbix
6688 - doins "${FILESDIR}/3.0"/zabbix_server.conf
6689 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
6690 - dosbin src/zabbix_server/zabbix_server
6691 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
6692 - fperms 0640 /etc/zabbix/zabbix_server.conf
6693 - dodir /usr/share/zabbix
6694 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
6695 - systemd_dounit "${FILESDIR}/zabbix-server.service"
6696 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
6697 - fi
6698 -
6699 - if use proxy; then
6700 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
6701 - dosbin src/zabbix_proxy/zabbix_proxy
6702 - insinto /etc/zabbix
6703 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
6704 - dodir /usr/share/zabbix
6705 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
6706 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
6707 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
6708 - fi
6709 -
6710 - if use agent; then
6711 - insinto /etc/zabbix
6712 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
6713 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
6714 - dosbin src/zabbix_agent/zabbix_agentd
6715 - dobin \
6716 - src/zabbix_sender/zabbix_sender \
6717 - src/zabbix_get/zabbix_get
6718 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
6719 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
6720 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
6721 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
6722 - fi
6723 -
6724 - fowners zabbix:zabbix \
6725 - /etc/zabbix \
6726 - /var/lib/zabbix \
6727 - /var/lib/zabbix/home \
6728 - /var/lib/zabbix/scripts \
6729 - /var/lib/zabbix/alertscripts \
6730 - /var/lib/zabbix/externalscripts \
6731 - /var/log/zabbix
6732 - fperms 0750 \
6733 - /etc/zabbix \
6734 - /var/lib/zabbix \
6735 - /var/lib/zabbix/home \
6736 - /var/lib/zabbix/scripts \
6737 - /var/lib/zabbix/alertscripts \
6738 - /var/lib/zabbix/externalscripts \
6739 - /var/log/zabbix
6740 -
6741 - dodoc README INSTALL NEWS ChangeLog \
6742 - conf/zabbix_agentd.conf \
6743 - conf/zabbix_proxy.conf \
6744 - conf/zabbix_agentd/userparameter_examples.conf \
6745 - conf/zabbix_agentd/userparameter_mysql.conf \
6746 - conf/zabbix_server.conf
6747 -
6748 - if use frontend; then
6749 - webapp_src_preinst
6750 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
6751 - webapp_configfile \
6752 - "${MY_HTDOCSDIR}"/include/db.inc.php \
6753 - "${MY_HTDOCSDIR}"/include/config.inc.php
6754 - webapp_src_install
6755 - fi
6756 -
6757 - if use java; then
6758 - dodir \
6759 - /${ZABBIXJAVA_BASE} \
6760 - /${ZABBIXJAVA_BASE}/bin \
6761 - /${ZABBIXJAVA_BASE}/lib
6762 - keepdir /${ZABBIXJAVA_BASE}
6763 - exeinto /${ZABBIXJAVA_BASE}/bin
6764 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
6765 - exeinto /${ZABBIXJAVA_BASE}/lib
6766 - doexe \
6767 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
6768 - src/zabbix_java/lib/logback-console.xml \
6769 - src/zabbix_java/lib/logback-core-0.9.27.jar \
6770 - src/zabbix_java/lib/logback.xml \
6771 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
6772 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
6773 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
6774 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
6775 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
6776 - fi
6777 -}
6778 -
6779 -pkg_postinst() {
6780 - if use server || use proxy ; then
6781 - elog
6782 - elog "You may need to configure your database for Zabbix,"
6783 - elog "if you have not already done so. "
6784 - elog
6785 -
6786 - zabbix_homedir=$(egethome zabbix)
6787 - if [ -n "${zabbix_homedir}" ] && \
6788 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
6789 - ewarn
6790 - ewarn "The user 'zabbix' should have his homedir changed"
6791 - ewarn "to /var/lib/zabbix/home if you want to use"
6792 - ewarn "custom alert scripts."
6793 - ewarn
6794 - ewarn "A real homedir might be needed for configfiles"
6795 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
6796 - ewarn "using sendxmpp for Jabber alerts)."
6797 - ewarn
6798 - ewarn "To change the homedir use:"
6799 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
6800 - ewarn
6801 - fi
6802 - fi
6803 -
6804 - if use server; then
6805 - elog
6806 - elog "For distributed monitoring you have to run:"
6807 - elog
6808 - elog "zabbix_server -n <nodeid>"
6809 - elog
6810 - elog "This will convert database data for use with Node ID"
6811 - elog "and also adds a local node."
6812 - elog
6813 - fi
6814 -
6815 - elog "--"
6816 - elog
6817 - elog "You may need to add these lines to /etc/services:"
6818 - elog
6819 - elog "zabbix-agent 10050/tcp Zabbix Agent"
6820 - elog "zabbix-agent 10050/udp Zabbix Agent"
6821 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
6822 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
6823 - elog
6824 -
6825 - if use server || use proxy ; then
6826 - # check for fping
6827 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
6828 - case "${fping_perms}" in
6829 - 4[157][157][157])
6830 - ;;
6831 - *)
6832 - ewarn
6833 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
6834 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
6835 - ewarn "by everyone. Run the following command to fix it:"
6836 - ewarn
6837 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
6838 - ewarn
6839 - ewarn "Please be aware that this might impose a security risk,"
6840 - ewarn "depending on the code quality of fping."
6841 - ewarn
6842 - ;;
6843 - esac
6844 - fi
6845 -}
6846
6847 diff --git a/net-analyzer/zabbix/zabbix-3.4.3.ebuild b/net-analyzer/zabbix/zabbix-3.4.3.ebuild
6848 deleted file mode 100644
6849 index ae1d5666084..00000000000
6850 --- a/net-analyzer/zabbix/zabbix-3.4.3.ebuild
6851 +++ /dev/null
6852 @@ -1,329 +0,0 @@
6853 -# Copyright 1999-2017 Gentoo Foundation
6854 -# Distributed under the terms of the GNU General Public License v2
6855 -
6856 -EAPI="6"
6857 -
6858 -# needed to make webapp-config dep optional
6859 -WEBAPP_OPTIONAL="yes"
6860 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
6861 -
6862 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
6863 -HOMEPAGE="http://www.zabbix.com/"
6864 -MY_P=${P/_/}
6865 -MY_PV=${PV/_/}
6866 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
6867 -LICENSE="GPL-2"
6868 -SLOT="0"
6869 -WEBAPP_MANUAL_SLOT="yes"
6870 -KEYWORDS="~amd64 ~x86"
6871 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
6872 -REQUIRED_USE="|| ( agent frontend proxy server )
6873 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
6874 - server? ( ^^ ( mysql oracle postgres odbc ) )
6875 - static? ( !oracle !snmp )"
6876 -
6877 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
6878 - ldap? (
6879 - net-nds/openldap
6880 - =dev-libs/cyrus-sasl-2*
6881 - net-libs/gnutls
6882 - )
6883 - mysql? ( >=virtual/mysql-5.0.3 )
6884 - sqlite? ( >=dev-db/sqlite-3.3.5 )
6885 - postgres? ( dev-db/postgresql:* )
6886 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
6887 - xmpp? ( dev-libs/iksemel )
6888 - libxml2? ( dev-libs/libxml2 )
6889 - curl? ( net-misc/curl )
6890 - openipmi? ( sys-libs/openipmi )
6891 - ssh? ( net-libs/libssh2 )
6892 - java? ( virtual/jdk:* )
6893 - odbc? ( dev-db/unixODBC )
6894 - ssl? ( dev-libs/openssl:=[-bindist] )"
6895 -
6896 -RDEPEND="${COMMON_DEPEND}
6897 - proxy? ( net-analyzer/fping[suid] )
6898 - server? ( net-analyzer/fping[suid]
6899 - app-admin/webapp-config
6900 - dev-libs/libevent )
6901 - java? (
6902 - >=virtual/jre-1.4
6903 - dev-java/slf4j-api
6904 - )
6905 - frontend? (
6906 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
6907 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
6908 - mysql? ( dev-lang/php[mysqli] )
6909 - odbc? ( dev-lang/php[odbc] )
6910 - oracle? ( dev-lang/php[oci8-instant-client] )
6911 - postgres? ( dev-lang/php[postgres] )
6912 - sqlite? ( dev-lang/php[sqlite] )
6913 - media-libs/gd[png]
6914 - app-admin/webapp-config )"
6915 -DEPEND="${COMMON_DEPEND}
6916 - static? (
6917 - ldap? (
6918 - net-nds/openldap[static-libs]
6919 - =dev-libs/cyrus-sasl-2*[static-libs]
6920 - net-libs/gnutls[static-libs]
6921 - )
6922 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
6923 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
6924 - postgres? ( dev-db/postgresql:*[static-libs] )
6925 - libxml2? ( dev-libs/libxml2[static-libs] )
6926 - curl? ( net-misc/curl[static-libs] )
6927 - ssh? ( net-libs/libssh2[static-libs] )
6928 - odbc? ( dev-db/unixODBC[static-libs] )
6929 - )
6930 - virtual/pkgconfig"
6931 -
6932 -S=${WORKDIR}/${MY_P}
6933 -
6934 -ZABBIXJAVA_BASE="opt/zabbix_java"
6935 -
6936 -pkg_setup() {
6937 - if use oracle; then
6938 - if [ -z "${ORACLE_HOME}" ]; then
6939 - eerror
6940 - eerror "The environment variable ORACLE_HOME must be set"
6941 - eerror "and point to the correct location."
6942 - eerror "It looks like you don't have Oracle installed."
6943 - eerror
6944 - die "Environment variable ORACLE_HOME is not set"
6945 - fi
6946 - if has_version 'dev-db/oracle-instantclient-basic'; then
6947 - ewarn
6948 - ewarn "Please ensure you have a full install of the Oracle client."
6949 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
6950 - ewarn
6951 - fi
6952 - fi
6953 -
6954 - if use frontend; then
6955 - webapp_pkg_setup
6956 - fi
6957 -
6958 - enewgroup zabbix
6959 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
6960 -}
6961 -
6962 -java_prepare() {
6963 - cd "${S}/src/zabbix_java/lib"
6964 - rm -v *.jar || die
6965 -
6966 - java-pkg_jar-from slf4j-api
6967 -}
6968 -
6969 -src_prepare() {
6970 - default
6971 -}
6972 -
6973 -src_configure() {
6974 - econf \
6975 - $(use_enable server) \
6976 - $(use_enable proxy) \
6977 - $(use_enable agent) \
6978 - $(use_enable ipv6) \
6979 - $(use_enable static) \
6980 - $(use_enable java) \
6981 - $(use_with ldap) \
6982 - $(use_with snmp net-snmp) \
6983 - $(use_with mysql) \
6984 - $(use_with postgres postgresql) \
6985 - $(use_with oracle) \
6986 - $(use_with sqlite sqlite3) \
6987 - $(use_with xmpp jabber) \
6988 - $(use_with curl libcurl) \
6989 - $(use_with openipmi openipmi) \
6990 - $(use_with ssh ssh2) \
6991 - $(use_with libxml2) \
6992 - $(use_with odbc unixodbc) \
6993 - $(use_with ssl openssl) \
6994 - || die "econf failed"
6995 -}
6996 -
6997 -src_compile() {
6998 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
6999 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
7000 - fi
7001 -}
7002 -
7003 -src_install() {
7004 - dodir \
7005 - /etc/zabbix \
7006 - /var/lib/zabbix \
7007 - /var/lib/zabbix/home \
7008 - /var/lib/zabbix/scripts \
7009 - /var/lib/zabbix/alertscripts \
7010 - /var/lib/zabbix/externalscripts \
7011 - /var/log/zabbix
7012 -
7013 - keepdir \
7014 - /etc/zabbix \
7015 - /var/lib/zabbix \
7016 - /var/lib/zabbix/home \
7017 - /var/lib/zabbix/scripts \
7018 - /var/lib/zabbix/alertscripts \
7019 - /var/lib/zabbix/externalscripts \
7020 - /var/log/zabbix
7021 -
7022 - if use server; then
7023 - insinto /etc/zabbix
7024 - doins "${FILESDIR}/3.0"/zabbix_server.conf
7025 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
7026 - dosbin src/zabbix_server/zabbix_server
7027 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
7028 - fperms 0640 /etc/zabbix/zabbix_server.conf
7029 - dodir /usr/share/zabbix
7030 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
7031 - systemd_dounit "${FILESDIR}/zabbix-server.service"
7032 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
7033 - fi
7034 -
7035 - if use proxy; then
7036 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
7037 - dosbin src/zabbix_proxy/zabbix_proxy
7038 - insinto /etc/zabbix
7039 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
7040 - dodir /usr/share/zabbix
7041 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
7042 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
7043 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
7044 - fi
7045 -
7046 - if use agent; then
7047 - insinto /etc/zabbix
7048 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
7049 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
7050 - dosbin src/zabbix_agent/zabbix_agentd
7051 - dobin \
7052 - src/zabbix_sender/zabbix_sender \
7053 - src/zabbix_get/zabbix_get
7054 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
7055 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
7056 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
7057 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
7058 - fi
7059 -
7060 - fowners zabbix:zabbix \
7061 - /etc/zabbix \
7062 - /var/lib/zabbix \
7063 - /var/lib/zabbix/home \
7064 - /var/lib/zabbix/scripts \
7065 - /var/lib/zabbix/alertscripts \
7066 - /var/lib/zabbix/externalscripts \
7067 - /var/log/zabbix
7068 - fperms 0750 \
7069 - /etc/zabbix \
7070 - /var/lib/zabbix \
7071 - /var/lib/zabbix/home \
7072 - /var/lib/zabbix/scripts \
7073 - /var/lib/zabbix/alertscripts \
7074 - /var/lib/zabbix/externalscripts \
7075 - /var/log/zabbix
7076 -
7077 - dodoc README INSTALL NEWS ChangeLog \
7078 - conf/zabbix_agentd.conf \
7079 - conf/zabbix_proxy.conf \
7080 - conf/zabbix_agentd/userparameter_examples.conf \
7081 - conf/zabbix_agentd/userparameter_mysql.conf \
7082 - conf/zabbix_server.conf
7083 -
7084 - if use frontend; then
7085 - webapp_src_preinst
7086 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
7087 - webapp_configfile \
7088 - "${MY_HTDOCSDIR}"/include/db.inc.php \
7089 - "${MY_HTDOCSDIR}"/include/config.inc.php
7090 - webapp_src_install
7091 - fi
7092 -
7093 - if use java; then
7094 - dodir \
7095 - /${ZABBIXJAVA_BASE} \
7096 - /${ZABBIXJAVA_BASE}/bin \
7097 - /${ZABBIXJAVA_BASE}/lib
7098 - keepdir /${ZABBIXJAVA_BASE}
7099 - exeinto /${ZABBIXJAVA_BASE}/bin
7100 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
7101 - exeinto /${ZABBIXJAVA_BASE}/lib
7102 - doexe \
7103 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
7104 - src/zabbix_java/lib/logback-console.xml \
7105 - src/zabbix_java/lib/logback-core-0.9.27.jar \
7106 - src/zabbix_java/lib/logback.xml \
7107 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
7108 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
7109 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
7110 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
7111 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
7112 - fi
7113 -}
7114 -
7115 -pkg_postinst() {
7116 - if use server || use proxy ; then
7117 - elog
7118 - elog "You may need to configure your database for Zabbix,"
7119 - elog "if you have not already done so. "
7120 - elog
7121 -
7122 - zabbix_homedir=$(egethome zabbix)
7123 - if [ -n "${zabbix_homedir}" ] && \
7124 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
7125 - ewarn
7126 - ewarn "The user 'zabbix' should have his homedir changed"
7127 - ewarn "to /var/lib/zabbix/home if you want to use"
7128 - ewarn "custom alert scripts."
7129 - ewarn
7130 - ewarn "A real homedir might be needed for configfiles"
7131 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
7132 - ewarn "using sendxmpp for Jabber alerts)."
7133 - ewarn
7134 - ewarn "To change the homedir use:"
7135 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
7136 - ewarn
7137 - fi
7138 - fi
7139 -
7140 - if use server; then
7141 - elog
7142 - elog "For distributed monitoring you have to run:"
7143 - elog
7144 - elog "zabbix_server -n <nodeid>"
7145 - elog
7146 - elog "This will convert database data for use with Node ID"
7147 - elog "and also adds a local node."
7148 - elog
7149 - fi
7150 -
7151 - elog "--"
7152 - elog
7153 - elog "You may need to add these lines to /etc/services:"
7154 - elog
7155 - elog "zabbix-agent 10050/tcp Zabbix Agent"
7156 - elog "zabbix-agent 10050/udp Zabbix Agent"
7157 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
7158 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
7159 - elog
7160 -
7161 - if use server || use proxy ; then
7162 - # check for fping
7163 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
7164 - case "${fping_perms}" in
7165 - 4[157][157][157])
7166 - ;;
7167 - *)
7168 - ewarn
7169 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
7170 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
7171 - ewarn "by everyone. Run the following command to fix it:"
7172 - ewarn
7173 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
7174 - ewarn
7175 - ewarn "Please be aware that this might impose a security risk,"
7176 - ewarn "depending on the code quality of fping."
7177 - ewarn
7178 - ;;
7179 - esac
7180 - fi
7181 -}
7182
7183 diff --git a/net-analyzer/zabbix/zabbix-3.4.4.ebuild b/net-analyzer/zabbix/zabbix-3.4.4.ebuild
7184 deleted file mode 100644
7185 index ae1d5666084..00000000000
7186 --- a/net-analyzer/zabbix/zabbix-3.4.4.ebuild
7187 +++ /dev/null
7188 @@ -1,329 +0,0 @@
7189 -# Copyright 1999-2017 Gentoo Foundation
7190 -# Distributed under the terms of the GNU General Public License v2
7191 -
7192 -EAPI="6"
7193 -
7194 -# needed to make webapp-config dep optional
7195 -WEBAPP_OPTIONAL="yes"
7196 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
7197 -
7198 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
7199 -HOMEPAGE="http://www.zabbix.com/"
7200 -MY_P=${P/_/}
7201 -MY_PV=${PV/_/}
7202 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
7203 -LICENSE="GPL-2"
7204 -SLOT="0"
7205 -WEBAPP_MANUAL_SLOT="yes"
7206 -KEYWORDS="~amd64 ~x86"
7207 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
7208 -REQUIRED_USE="|| ( agent frontend proxy server )
7209 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
7210 - server? ( ^^ ( mysql oracle postgres odbc ) )
7211 - static? ( !oracle !snmp )"
7212 -
7213 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
7214 - ldap? (
7215 - net-nds/openldap
7216 - =dev-libs/cyrus-sasl-2*
7217 - net-libs/gnutls
7218 - )
7219 - mysql? ( >=virtual/mysql-5.0.3 )
7220 - sqlite? ( >=dev-db/sqlite-3.3.5 )
7221 - postgres? ( dev-db/postgresql:* )
7222 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
7223 - xmpp? ( dev-libs/iksemel )
7224 - libxml2? ( dev-libs/libxml2 )
7225 - curl? ( net-misc/curl )
7226 - openipmi? ( sys-libs/openipmi )
7227 - ssh? ( net-libs/libssh2 )
7228 - java? ( virtual/jdk:* )
7229 - odbc? ( dev-db/unixODBC )
7230 - ssl? ( dev-libs/openssl:=[-bindist] )"
7231 -
7232 -RDEPEND="${COMMON_DEPEND}
7233 - proxy? ( net-analyzer/fping[suid] )
7234 - server? ( net-analyzer/fping[suid]
7235 - app-admin/webapp-config
7236 - dev-libs/libevent )
7237 - java? (
7238 - >=virtual/jre-1.4
7239 - dev-java/slf4j-api
7240 - )
7241 - frontend? (
7242 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
7243 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
7244 - mysql? ( dev-lang/php[mysqli] )
7245 - odbc? ( dev-lang/php[odbc] )
7246 - oracle? ( dev-lang/php[oci8-instant-client] )
7247 - postgres? ( dev-lang/php[postgres] )
7248 - sqlite? ( dev-lang/php[sqlite] )
7249 - media-libs/gd[png]
7250 - app-admin/webapp-config )"
7251 -DEPEND="${COMMON_DEPEND}
7252 - static? (
7253 - ldap? (
7254 - net-nds/openldap[static-libs]
7255 - =dev-libs/cyrus-sasl-2*[static-libs]
7256 - net-libs/gnutls[static-libs]
7257 - )
7258 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
7259 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
7260 - postgres? ( dev-db/postgresql:*[static-libs] )
7261 - libxml2? ( dev-libs/libxml2[static-libs] )
7262 - curl? ( net-misc/curl[static-libs] )
7263 - ssh? ( net-libs/libssh2[static-libs] )
7264 - odbc? ( dev-db/unixODBC[static-libs] )
7265 - )
7266 - virtual/pkgconfig"
7267 -
7268 -S=${WORKDIR}/${MY_P}
7269 -
7270 -ZABBIXJAVA_BASE="opt/zabbix_java"
7271 -
7272 -pkg_setup() {
7273 - if use oracle; then
7274 - if [ -z "${ORACLE_HOME}" ]; then
7275 - eerror
7276 - eerror "The environment variable ORACLE_HOME must be set"
7277 - eerror "and point to the correct location."
7278 - eerror "It looks like you don't have Oracle installed."
7279 - eerror
7280 - die "Environment variable ORACLE_HOME is not set"
7281 - fi
7282 - if has_version 'dev-db/oracle-instantclient-basic'; then
7283 - ewarn
7284 - ewarn "Please ensure you have a full install of the Oracle client."
7285 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
7286 - ewarn
7287 - fi
7288 - fi
7289 -
7290 - if use frontend; then
7291 - webapp_pkg_setup
7292 - fi
7293 -
7294 - enewgroup zabbix
7295 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
7296 -}
7297 -
7298 -java_prepare() {
7299 - cd "${S}/src/zabbix_java/lib"
7300 - rm -v *.jar || die
7301 -
7302 - java-pkg_jar-from slf4j-api
7303 -}
7304 -
7305 -src_prepare() {
7306 - default
7307 -}
7308 -
7309 -src_configure() {
7310 - econf \
7311 - $(use_enable server) \
7312 - $(use_enable proxy) \
7313 - $(use_enable agent) \
7314 - $(use_enable ipv6) \
7315 - $(use_enable static) \
7316 - $(use_enable java) \
7317 - $(use_with ldap) \
7318 - $(use_with snmp net-snmp) \
7319 - $(use_with mysql) \
7320 - $(use_with postgres postgresql) \
7321 - $(use_with oracle) \
7322 - $(use_with sqlite sqlite3) \
7323 - $(use_with xmpp jabber) \
7324 - $(use_with curl libcurl) \
7325 - $(use_with openipmi openipmi) \
7326 - $(use_with ssh ssh2) \
7327 - $(use_with libxml2) \
7328 - $(use_with odbc unixodbc) \
7329 - $(use_with ssl openssl) \
7330 - || die "econf failed"
7331 -}
7332 -
7333 -src_compile() {
7334 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
7335 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
7336 - fi
7337 -}
7338 -
7339 -src_install() {
7340 - dodir \
7341 - /etc/zabbix \
7342 - /var/lib/zabbix \
7343 - /var/lib/zabbix/home \
7344 - /var/lib/zabbix/scripts \
7345 - /var/lib/zabbix/alertscripts \
7346 - /var/lib/zabbix/externalscripts \
7347 - /var/log/zabbix
7348 -
7349 - keepdir \
7350 - /etc/zabbix \
7351 - /var/lib/zabbix \
7352 - /var/lib/zabbix/home \
7353 - /var/lib/zabbix/scripts \
7354 - /var/lib/zabbix/alertscripts \
7355 - /var/lib/zabbix/externalscripts \
7356 - /var/log/zabbix
7357 -
7358 - if use server; then
7359 - insinto /etc/zabbix
7360 - doins "${FILESDIR}/3.0"/zabbix_server.conf
7361 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
7362 - dosbin src/zabbix_server/zabbix_server
7363 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
7364 - fperms 0640 /etc/zabbix/zabbix_server.conf
7365 - dodir /usr/share/zabbix
7366 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
7367 - systemd_dounit "${FILESDIR}/zabbix-server.service"
7368 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
7369 - fi
7370 -
7371 - if use proxy; then
7372 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
7373 - dosbin src/zabbix_proxy/zabbix_proxy
7374 - insinto /etc/zabbix
7375 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
7376 - dodir /usr/share/zabbix
7377 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
7378 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
7379 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
7380 - fi
7381 -
7382 - if use agent; then
7383 - insinto /etc/zabbix
7384 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
7385 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
7386 - dosbin src/zabbix_agent/zabbix_agentd
7387 - dobin \
7388 - src/zabbix_sender/zabbix_sender \
7389 - src/zabbix_get/zabbix_get
7390 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
7391 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
7392 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
7393 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
7394 - fi
7395 -
7396 - fowners zabbix:zabbix \
7397 - /etc/zabbix \
7398 - /var/lib/zabbix \
7399 - /var/lib/zabbix/home \
7400 - /var/lib/zabbix/scripts \
7401 - /var/lib/zabbix/alertscripts \
7402 - /var/lib/zabbix/externalscripts \
7403 - /var/log/zabbix
7404 - fperms 0750 \
7405 - /etc/zabbix \
7406 - /var/lib/zabbix \
7407 - /var/lib/zabbix/home \
7408 - /var/lib/zabbix/scripts \
7409 - /var/lib/zabbix/alertscripts \
7410 - /var/lib/zabbix/externalscripts \
7411 - /var/log/zabbix
7412 -
7413 - dodoc README INSTALL NEWS ChangeLog \
7414 - conf/zabbix_agentd.conf \
7415 - conf/zabbix_proxy.conf \
7416 - conf/zabbix_agentd/userparameter_examples.conf \
7417 - conf/zabbix_agentd/userparameter_mysql.conf \
7418 - conf/zabbix_server.conf
7419 -
7420 - if use frontend; then
7421 - webapp_src_preinst
7422 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
7423 - webapp_configfile \
7424 - "${MY_HTDOCSDIR}"/include/db.inc.php \
7425 - "${MY_HTDOCSDIR}"/include/config.inc.php
7426 - webapp_src_install
7427 - fi
7428 -
7429 - if use java; then
7430 - dodir \
7431 - /${ZABBIXJAVA_BASE} \
7432 - /${ZABBIXJAVA_BASE}/bin \
7433 - /${ZABBIXJAVA_BASE}/lib
7434 - keepdir /${ZABBIXJAVA_BASE}
7435 - exeinto /${ZABBIXJAVA_BASE}/bin
7436 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
7437 - exeinto /${ZABBIXJAVA_BASE}/lib
7438 - doexe \
7439 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
7440 - src/zabbix_java/lib/logback-console.xml \
7441 - src/zabbix_java/lib/logback-core-0.9.27.jar \
7442 - src/zabbix_java/lib/logback.xml \
7443 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
7444 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
7445 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
7446 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
7447 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
7448 - fi
7449 -}
7450 -
7451 -pkg_postinst() {
7452 - if use server || use proxy ; then
7453 - elog
7454 - elog "You may need to configure your database for Zabbix,"
7455 - elog "if you have not already done so. "
7456 - elog
7457 -
7458 - zabbix_homedir=$(egethome zabbix)
7459 - if [ -n "${zabbix_homedir}" ] && \
7460 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
7461 - ewarn
7462 - ewarn "The user 'zabbix' should have his homedir changed"
7463 - ewarn "to /var/lib/zabbix/home if you want to use"
7464 - ewarn "custom alert scripts."
7465 - ewarn
7466 - ewarn "A real homedir might be needed for configfiles"
7467 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
7468 - ewarn "using sendxmpp for Jabber alerts)."
7469 - ewarn
7470 - ewarn "To change the homedir use:"
7471 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
7472 - ewarn
7473 - fi
7474 - fi
7475 -
7476 - if use server; then
7477 - elog
7478 - elog "For distributed monitoring you have to run:"
7479 - elog
7480 - elog "zabbix_server -n <nodeid>"
7481 - elog
7482 - elog "This will convert database data for use with Node ID"
7483 - elog "and also adds a local node."
7484 - elog
7485 - fi
7486 -
7487 - elog "--"
7488 - elog
7489 - elog "You may need to add these lines to /etc/services:"
7490 - elog
7491 - elog "zabbix-agent 10050/tcp Zabbix Agent"
7492 - elog "zabbix-agent 10050/udp Zabbix Agent"
7493 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
7494 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
7495 - elog
7496 -
7497 - if use server || use proxy ; then
7498 - # check for fping
7499 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
7500 - case "${fping_perms}" in
7501 - 4[157][157][157])
7502 - ;;
7503 - *)
7504 - ewarn
7505 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
7506 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
7507 - ewarn "by everyone. Run the following command to fix it:"
7508 - ewarn
7509 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
7510 - ewarn
7511 - ewarn "Please be aware that this might impose a security risk,"
7512 - ewarn "depending on the code quality of fping."
7513 - ewarn
7514 - ;;
7515 - esac
7516 - fi
7517 -}