1 |
commit: d4c1555de85aaaaa186351b4666c4e69f998e36a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 26 13:18:20 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 26 13:18:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4c1555d |
7 |
|
8 |
net-analyzer/net-snmp: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
net-analyzer/net-snmp/Manifest | 1 - |
13 |
.../net-snmp/net-snmp-5.8.1_pre1-r1.ebuild | 211 --------------------- |
14 |
2 files changed, 212 deletions(-) |
15 |
|
16 |
diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest |
17 |
index 56bc06453f0..1d806f07585 100644 |
18 |
--- a/net-analyzer/net-snmp/Manifest |
19 |
+++ b/net-analyzer/net-snmp/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
DIST net-snmp-5.7.3-patches-3.tar.xz 3176 BLAKE2B 1a71d6743afb841f664c6058e32c7c411af62b0f36acd3bb9251804893ed12f462a0c5bab828e309eeec7824def2dca8fa866350b90a62ec4f0df1141b51ecae SHA512 d8a91b9668320a1e19d062eb86dd4d16beb7c2d15ac7ebbb9d2a4bd298af39bbb0a2613504dbb0057cccdec731f08f2308c5a15395e1fbc29bb0611ed8aca636 |
22 |
-DIST net-snmp-5.8.1.pre1.tar.gz 6630615 BLAKE2B 32ae7177fc08a773928da7f19cd06617feb1358c0dd21d39e08db460fa4267b6353f4afede1f5a500a628235a6a94d95700c84df6e85bda18b7a7a6e7bf3781f SHA512 e1ad421970abb67490a08fa735bbe9ff77a6fc5a19b8bf6942bef80f5b328f8038373cd5995970085177bcfe939dfa309019512b2abce0e8cf779e693f7d6dbd |
23 |
DIST net-snmp-5.9.tar.xz 4082580 BLAKE2B 9dfd5a7dfe4ca18b16c71c9f5cb70c540d16aa36a0b2dacd3ddc465934f96ac473f77490af78d202bf6dad4eddea5d75665a770df74132aafda39f5f3a87d835 SHA512 3f1e27caa8e5306d451b61b08c2daf007929a850661962fcd29b528a80332a980184303a7e87c96d8d2774181758889dc825cb08e3c3b353c5e7ca1ebcc09173 |
24 |
|
25 |
diff --git a/net-analyzer/net-snmp/net-snmp-5.8.1_pre1-r1.ebuild b/net-analyzer/net-snmp/net-snmp-5.8.1_pre1-r1.ebuild |
26 |
deleted file mode 100644 |
27 |
index 48c7448ff41..00000000000 |
28 |
--- a/net-analyzer/net-snmp/net-snmp-5.8.1_pre1-r1.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,211 +0,0 @@ |
31 |
-# Copyright 1999-2020 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
-PYTHON_COMPAT=( python2_7 ) |
36 |
-DISTUTILS_SINGLE_IMPL=yesplz |
37 |
-DISTUTILS_OPTIONAL=yesplz |
38 |
-WANT_AUTOMAKE=none |
39 |
-PATCHSET=3 |
40 |
-GENTOO_DEPEND_ON_PERL=no |
41 |
- |
42 |
-inherit autotools distutils-r1 perl-module systemd |
43 |
- |
44 |
-DESCRIPTION="Software for generating and retrieving SNMP data" |
45 |
-HOMEPAGE="http://www.net-snmp.org/" |
46 |
-SRC_URI=" |
47 |
- mirror://sourceforge/project/${PN}/${PN}/${PV/_p*/}-pre-releases/${P/_pre/.pre}.tar.gz |
48 |
- https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-3.tar.xz |
49 |
-" |
50 |
- |
51 |
-S=${WORKDIR}/${P/_/.} |
52 |
- |
53 |
-# GPL-2 for the init scripts |
54 |
-LICENSE="HPND BSD GPL-2" |
55 |
-SLOT="0/35" |
56 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86" |
57 |
-IUSE=" |
58 |
- X bzip2 doc elf kmem ipv6 libressl lm-sensors mfd-rewrites minimal mysql |
59 |
- netlink pcap pci perl python rpm selinux smux ssl tcpd ucd-compat zlib |
60 |
-" |
61 |
-REQUIRED_USE=" |
62 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
63 |
- rpm? ( bzip2 zlib ) |
64 |
-" |
65 |
- |
66 |
-COMMON_DEPEND=" |
67 |
- bzip2? ( app-arch/bzip2 ) |
68 |
- elf? ( dev-libs/elfutils ) |
69 |
- lm-sensors? ( sys-apps/lm-sensors ) |
70 |
- mysql? ( dev-db/mysql-connector-c:0= ) |
71 |
- netlink? ( dev-libs/libnl:3 ) |
72 |
- pcap? ( net-libs/libpcap ) |
73 |
- pci? ( sys-apps/pciutils ) |
74 |
- perl? ( dev-lang/perl:= ) |
75 |
- python? ( |
76 |
- $(python_gen_cond_dep ' |
77 |
- dev-python/setuptools[${PYTHON_MULTI_USEDEP}] |
78 |
- ') |
79 |
- ${PYTHON_DEPS} |
80 |
- ) |
81 |
- rpm? ( |
82 |
- app-arch/rpm |
83 |
- dev-libs/popt |
84 |
- ) |
85 |
- ssl? ( |
86 |
- !libressl? ( >=dev-libs/openssl-0.9.6d:0= ) |
87 |
- libressl? ( dev-libs/libressl:= ) |
88 |
- ) |
89 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
90 |
- zlib? ( >=sys-libs/zlib-1.1.4 ) |
91 |
-" |
92 |
-DEPEND=" |
93 |
- ${COMMON_DEPEND} |
94 |
- doc? ( app-doc/doxygen ) |
95 |
-" |
96 |
-RDEPEND=" |
97 |
- ${COMMON_DEPEND} |
98 |
- perl? ( |
99 |
- X? ( dev-perl/Tk ) |
100 |
- !minimal? ( dev-perl/TermReadKey ) |
101 |
- ) |
102 |
- selinux? ( sec-policy/selinux-snmp ) |
103 |
-" |
104 |
-S=${WORKDIR}/${P/_pre/.pre} |
105 |
-RESTRICT=test |
106 |
-PATCHES=( |
107 |
- "${FILESDIR}"/${PN}-5.7.3-include-limits.patch |
108 |
- "${FILESDIR}"/${PN}-5.8-do-not-conflate-LDFLAGS-and-LIBS.patch |
109 |
- "${FILESDIR}"/${PN}-5.8-pcap.patch |
110 |
- "${FILESDIR}"/${PN}-5.8-tinfo.patch |
111 |
- "${FILESDIR}"/${PN}-5.8.1-pkg-config.patch |
112 |
- "${FILESDIR}"/${PN}-5.8.1-net-snmp-config-libdir.patch |
113 |
- "${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch |
114 |
-) |
115 |
- |
116 |
-pkg_setup() { |
117 |
- use python && python-single-r1_pkg_setup |
118 |
-} |
119 |
- |
120 |
-src_prepare() { |
121 |
- # snmpconf generates config files with proper selinux context |
122 |
- use selinux && eapply "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch |
123 |
- |
124 |
- mv "${WORKDIR}"/patches/0002-Respect-DESTDIR-for-pythoninstall.patch{,.disabled} || die |
125 |
- mv "${WORKDIR}"/patches/0004-Don-t-report-CFLAGS-and-LDFLAGS-in-net-snmp-config.patch{,.disabled} || die |
126 |
- eapply "${WORKDIR}"/patches/*.patch |
127 |
- |
128 |
- default |
129 |
- |
130 |
- eautoconf |
131 |
-} |
132 |
- |
133 |
-src_configure() { |
134 |
- # keep this in the same line, configure.ac arguments are passed down to config.h |
135 |
- local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail etherlike-mib/dot3StatsTable" |
136 |
- use lm-sensors && mibs="${mibs} ucd-snmp/lmsensorsMib" |
137 |
- use smux && mibs="${mibs} smux" |
138 |
- |
139 |
- # Assume /etc/mtab is not present with a recent baselayout/openrc (bug #565136) |
140 |
- use kernel_linux && export ac_cv_ETC_MNTTAB=/etc/mtab |
141 |
- |
142 |
- econf \ |
143 |
- $(use_enable !ssl internal-md5) \ |
144 |
- $(use_enable ipv6) \ |
145 |
- $(use_enable mfd-rewrites) \ |
146 |
- $(use_enable perl embedded-perl) \ |
147 |
- $(use_enable ucd-compat ucd-snmp-compatibility) \ |
148 |
- $(use_with bzip2) \ |
149 |
- $(use_with elf) \ |
150 |
- $(use_with kmem kmem-usage) \ |
151 |
- $(use_with mysql) \ |
152 |
- $(use_with netlink nl) \ |
153 |
- $(use_with pcap) \ |
154 |
- $(use_with pci) \ |
155 |
- $(use_with perl perl-modules INSTALLDIRS=vendor) \ |
156 |
- $(use_with python python-modules) \ |
157 |
- $(use_with rpm) \ |
158 |
- $(use_with ssl openssl) \ |
159 |
- $(use_with tcpd libwrap) \ |
160 |
- $(use_with zlib) \ |
161 |
- --enable-shared --disable-static \ |
162 |
- --with-default-snmp-version="3" \ |
163 |
- --with-install-prefix="${D}" \ |
164 |
- --with-ldflags="${LDFLAGS}" \ |
165 |
- --with-logfile="/var/log/net-snmpd.log" \ |
166 |
- --with-mib-modules="${mibs}" \ |
167 |
- --with-persistent-directory="/var/lib/net-snmp" \ |
168 |
- --with-sys-contact="root@Unknown" \ |
169 |
- --with-sys-location="Unknown" |
170 |
-} |
171 |
- |
172 |
-src_compile() { |
173 |
- for target in snmplib agent sedscript all; do |
174 |
- emake OTHERLDFLAGS="${LDFLAGS}" ${target} |
175 |
- done |
176 |
- |
177 |
- use doc && emake docsdox |
178 |
-} |
179 |
- |
180 |
-src_install() { |
181 |
- # bug #317965 |
182 |
- emake -j1 DESTDIR="${D}" install |
183 |
- |
184 |
- use python && python_optimize |
185 |
- |
186 |
- if use perl ; then |
187 |
- perl_delete_localpod |
188 |
- if ! use X; then |
189 |
- rm "${D}"/usr/bin/tkmib || die |
190 |
- fi |
191 |
- else |
192 |
- rm -f \ |
193 |
- "${D}"/usr/bin/fixproc \ |
194 |
- "${D}"/usr/bin/ipf-mod.pl \ |
195 |
- "${D}"/usr/bin/mib2c \ |
196 |
- "${D}"/usr/bin/net-snmp-cert \ |
197 |
- "${D}"/usr/bin/snmp-bridge-mib \ |
198 |
- "${D}"/usr/bin/snmpcheck \ |
199 |
- "${D}"/usr/bin/snmpconf \ |
200 |
- "${D}"/usr/bin/tkmib \ |
201 |
- "${D}"/usr/bin/traptoemail \ |
202 |
- "${D}"/usr/share/snmp/mib2c.perl.conf \ |
203 |
- "${D}"/usr/share/snmp/snmp_perl_trapd.pl \ |
204 |
- || die |
205 |
- fi |
206 |
- |
207 |
- dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO |
208 |
- newdoc EXAMPLE.conf.def EXAMPLE.conf |
209 |
- |
210 |
- if use doc; then |
211 |
- docinto html |
212 |
- dodoc -r docs/html/* |
213 |
- fi |
214 |
- |
215 |
- keepdir /var/lib/net-snmp |
216 |
- |
217 |
- newinitd "${FILESDIR}"/snmpd.init.2 snmpd |
218 |
- newconfd "${FILESDIR}"/snmpd.conf snmpd |
219 |
- |
220 |
- newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd |
221 |
- newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd |
222 |
- |
223 |
- systemd_dounit "${FILESDIR}"/snmpd.service |
224 |
- systemd_dounit "${FILESDIR}"/snmptrapd.service |
225 |
- |
226 |
- insinto /etc/snmp |
227 |
- newins "${S}"/EXAMPLE.conf snmpd.conf.example |
228 |
- |
229 |
- # Remove everything not required for an agent. |
230 |
- # Keep only the snmpd, snmptrapd, MIBs, headers and libraries. |
231 |
- if use minimal; then |
232 |
- rm -rf \ |
233 |
- "${D}"/**/*.pl \ |
234 |
- "${D}"/usr/bin/{encode_keychange,snmp{get,getnext,set,usm,walk,bulkwalk,table,trap,bulkget,translate,status,delta,test,df,vacm,netstat,inform,check,conf},fixproc,traptoemail} \ |
235 |
- "${D}"/usr/share/snmp/*.conf \ |
236 |
- "${D}"/usr/share/snmp/snmpconf-data \ |
237 |
- || die |
238 |
- fi |
239 |
- |
240 |
- find "${ED}" -name '*.la' -delete || die |
241 |
-} |