1 |
commit: 0e0a18433f6c6031f05149fb52b06ccabe9b3511 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 27 07:42:08 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 07:42:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e0a1843 |
7 |
|
8 |
net-analyzer/net-snmp: add f2fs patch |
9 |
|
10 |
Closes: https://bugs.gentoo.org/729224 |
11 |
Package-Manager: Portage-3.0.15, Repoman-3.0.2 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
.../net-snmp/files/net-snmp-5.9-r3-f2fs.patch | 40 ++++++++++++++++++++++ |
15 |
...snmp-99999999.ebuild => net-snmp-5.9-r3.ebuild} | 32 ++++++++--------- |
16 |
net-analyzer/net-snmp/net-snmp-99999999.ebuild | 27 +++++++-------- |
17 |
3 files changed, 67 insertions(+), 32 deletions(-) |
18 |
|
19 |
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.9-r3-f2fs.patch b/net-analyzer/net-snmp/files/net-snmp-5.9-r3-f2fs.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..c06c94ff7ac |
22 |
--- /dev/null |
23 |
+++ b/net-analyzer/net-snmp/files/net-snmp-5.9-r3-f2fs.patch |
24 |
@@ -0,0 +1,40 @@ |
25 |
+https://bugs.gentoo.org/729224 |
26 |
+https://github.com/net-snmp/net-snmp/commit/5a18e300bd085c6ba5967d7b00cc3f57fe83f665 |
27 |
+ |
28 |
+From 5a18e300bd085c6ba5967d7b00cc3f57fe83f665 Mon Sep 17 00:00:00 2001 |
29 |
+From: Bart Van Assche <bvanassche@×××.org> |
30 |
+Date: Thu, 8 Oct 2020 20:12:44 -0700 |
31 |
+Subject: [PATCH] HOST-RESOURCES-MIB: Add support for f2fs |
32 |
+ |
33 |
+See also https://github.com/net-snmp/net-snmp/issues/111 . |
34 |
+--- |
35 |
+ agent/mibgroup/hardware/fsys/fsys_mntent.c | 1 + |
36 |
+ agent/mibgroup/hardware/fsys/mnttypes.h | 3 +++ |
37 |
+ 2 files changed, 4 insertions(+) |
38 |
+ |
39 |
+diff --git a/agent/mibgroup/hardware/fsys/fsys_mntent.c b/agent/mibgroup/hardware/fsys/fsys_mntent.c |
40 |
+index abdc63ed6..75e2782f7 100644 |
41 |
+--- a/agent/mibgroup/hardware/fsys/fsys_mntent.c |
42 |
++++ b/agent/mibgroup/hardware/fsys/fsys_mntent.c |
43 |
+@@ -146,6 +146,7 @@ _fsys_type( char *typename ) |
44 |
+ !strcmp(typename, MNTTYPE_CVFS) || |
45 |
+ !strcmp(typename, MNTTYPE_SIMFS) || |
46 |
+ !strcmp(typename, MNTTYPE_BTRFS) || |
47 |
++ !strcmp(typename, MNTTYPE_F2FS) || |
48 |
+ !strcmp(typename, MNTTYPE_ZFS) || |
49 |
+ !strcmp(typename, MNTTYPE_NVMFS) || |
50 |
+ !strcmp(typename, MNTTYPE_ACFS) || |
51 |
+diff --git a/agent/mibgroup/hardware/fsys/mnttypes.h b/agent/mibgroup/hardware/fsys/mnttypes.h |
52 |
+index cda42420d..3540cf31b 100644 |
53 |
+--- a/agent/mibgroup/hardware/fsys/mnttypes.h |
54 |
++++ b/agent/mibgroup/hardware/fsys/mnttypes.h |
55 |
+@@ -154,6 +154,9 @@ |
56 |
+ #ifndef MNTTYPE_BTRFS |
57 |
+ #define MNTTYPE_BTRFS "btrfs" |
58 |
+ #endif |
59 |
++#ifndef MNTTYPE_F2FS |
60 |
++#define MNTTYPE_F2FS "f2fs" |
61 |
++#endif |
62 |
+ #ifndef MNTTYPE_ZFS |
63 |
+ #define MNTTYPE_ZFS "zfs" |
64 |
+ #endif |
65 |
|
66 |
diff --git a/net-analyzer/net-snmp/net-snmp-99999999.ebuild b/net-analyzer/net-snmp/net-snmp-5.9-r3.ebuild |
67 |
similarity index 92% |
68 |
copy from net-analyzer/net-snmp/net-snmp-99999999.ebuild |
69 |
copy to net-analyzer/net-snmp/net-snmp-5.9-r3.ebuild |
70 |
index a24bf6edffd..2ded4369531 100644 |
71 |
--- a/net-analyzer/net-snmp/net-snmp-99999999.ebuild |
72 |
+++ b/net-analyzer/net-snmp/net-snmp-5.9-r3.ebuild |
73 |
@@ -2,25 +2,26 @@ |
74 |
# Distributed under the terms of the GNU General Public License v2 |
75 |
|
76 |
EAPI=7 |
77 |
-DISTUTILS_OPTIONAL=yesplz |
78 |
-DISTUTILS_SINGLE_IMPL=yesplz |
79 |
+ |
80 |
+DISTUTILS_OPTIONAL=yes |
81 |
+DISTUTILS_SINGLE_IMPL=yes |
82 |
GENTOO_DEPEND_ON_PERL=no |
83 |
-PATCHSET=3 |
84 |
PYTHON_COMPAT=( python3_{7,8,9} ) |
85 |
WANT_AUTOMAKE=none |
86 |
-inherit autotools distutils-r1 git-r3 perl-module systemd |
87 |
+ |
88 |
+inherit autotools distutils-r1 perl-module systemd |
89 |
|
90 |
DESCRIPTION="Software for generating and retrieving SNMP data" |
91 |
HOMEPAGE="http://www.net-snmp.org/" |
92 |
-EGIT_REPO_URI="https://github.com/net-snmp/net-snmp" |
93 |
SRC_URI=" |
94 |
https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-3.tar.xz |
95 |
+ https://dev.gentoo.org/~jer/${P}.tar.xz |
96 |
" |
97 |
|
98 |
# GPL-2 for the init scripts |
99 |
LICENSE="HPND BSD GPL-2" |
100 |
SLOT="0/40" |
101 |
-KEYWORDS="" |
102 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
103 |
IUSE=" |
104 |
X bzip2 doc elf kmem ipv6 libressl lm-sensors mfd-rewrites minimal mysql |
105 |
netlink pcap pci perl python rpm selinux smux ssl tcpd ucd-compat zlib |
106 |
@@ -29,6 +30,7 @@ REQUIRED_USE=" |
107 |
python? ( ${PYTHON_REQUIRED_USE} ) |
108 |
rpm? ( bzip2 zlib ) |
109 |
" |
110 |
+RESTRICT="test" |
111 |
|
112 |
COMMON_DEPEND=" |
113 |
bzip2? ( app-arch/bzip2 ) |
114 |
@@ -41,7 +43,7 @@ COMMON_DEPEND=" |
115 |
perl? ( dev-lang/perl:= ) |
116 |
python? ( |
117 |
$(python_gen_cond_dep ' |
118 |
- dev-python/setuptools[${PYTHON_MULTI_USEDEP}] |
119 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
120 |
') |
121 |
${PYTHON_DEPS} |
122 |
) |
123 |
@@ -56,10 +58,8 @@ COMMON_DEPEND=" |
124 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
125 |
zlib? ( >=sys-libs/zlib-1.1.4 ) |
126 |
" |
127 |
-DEPEND=" |
128 |
- ${COMMON_DEPEND} |
129 |
- doc? ( app-doc/doxygen ) |
130 |
-" |
131 |
+BDEPEND="doc? ( app-doc/doxygen )" |
132 |
+DEPEND="${COMMON_DEPEND}" |
133 |
RDEPEND=" |
134 |
${COMMON_DEPEND} |
135 |
perl? ( |
136 |
@@ -68,7 +68,7 @@ RDEPEND=" |
137 |
) |
138 |
selinux? ( sec-policy/selinux-snmp ) |
139 |
" |
140 |
-RESTRICT=test |
141 |
+ |
142 |
PATCHES=( |
143 |
"${FILESDIR}"/${PN}-5.7.3-include-limits.patch |
144 |
"${FILESDIR}"/${PN}-5.8-do-not-conflate-LDFLAGS-and-LIBS.patch |
145 |
@@ -77,6 +77,7 @@ PATCHES=( |
146 |
"${FILESDIR}"/${PN}-5.8.1-net-snmp-config-libdir.patch |
147 |
"${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch |
148 |
"${FILESDIR}"/${PN}-5.9-MakeMaker.patch |
149 |
+ "${FILESDIR}"/${PN}-5.9-r3-f2fs.patch |
150 |
"${FILESDIR}"/${PN}-99999999-tinfo.patch |
151 |
) |
152 |
|
153 |
@@ -84,11 +85,6 @@ pkg_setup() { |
154 |
use python && python-single-r1_pkg_setup |
155 |
} |
156 |
|
157 |
-src_unpack() { |
158 |
- default |
159 |
- git-r3_src_unpack |
160 |
-} |
161 |
- |
162 |
src_prepare() { |
163 |
# snmpconf generates config files with proper selinux context |
164 |
use selinux && eapply "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch |
165 |
@@ -138,7 +134,7 @@ src_configure() { |
166 |
--with-logfile="/var/log/net-snmpd.log" \ |
167 |
--with-mib-modules="${mibs}" \ |
168 |
--with-persistent-directory="/var/lib/net-snmp" \ |
169 |
- --with-sys-contact="root@Unknown" \ |
170 |
+ --with-sys-contact="root@unknown" \ |
171 |
--with-sys-location="Unknown" |
172 |
} |
173 |
|
174 |
|
175 |
diff --git a/net-analyzer/net-snmp/net-snmp-99999999.ebuild b/net-analyzer/net-snmp/net-snmp-99999999.ebuild |
176 |
index a24bf6edffd..4a58da93c99 100644 |
177 |
--- a/net-analyzer/net-snmp/net-snmp-99999999.ebuild |
178 |
+++ b/net-analyzer/net-snmp/net-snmp-99999999.ebuild |
179 |
@@ -2,34 +2,35 @@ |
180 |
# Distributed under the terms of the GNU General Public License v2 |
181 |
|
182 |
EAPI=7 |
183 |
-DISTUTILS_OPTIONAL=yesplz |
184 |
-DISTUTILS_SINGLE_IMPL=yesplz |
185 |
+ |
186 |
+DISTUTILS_OPTIONAL=yes |
187 |
+DISTUTILS_SINGLE_IMPL=yes |
188 |
GENTOO_DEPEND_ON_PERL=no |
189 |
-PATCHSET=3 |
190 |
PYTHON_COMPAT=( python3_{7,8,9} ) |
191 |
WANT_AUTOMAKE=none |
192 |
+ |
193 |
inherit autotools distutils-r1 git-r3 perl-module systemd |
194 |
|
195 |
DESCRIPTION="Software for generating and retrieving SNMP data" |
196 |
HOMEPAGE="http://www.net-snmp.org/" |
197 |
EGIT_REPO_URI="https://github.com/net-snmp/net-snmp" |
198 |
-SRC_URI=" |
199 |
- https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-3.tar.xz |
200 |
-" |
201 |
+SRC_URI="https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-3.tar.xz" |
202 |
|
203 |
# GPL-2 for the init scripts |
204 |
LICENSE="HPND BSD GPL-2" |
205 |
SLOT="0/40" |
206 |
-KEYWORDS="" |
207 |
IUSE=" |
208 |
X bzip2 doc elf kmem ipv6 libressl lm-sensors mfd-rewrites minimal mysql |
209 |
netlink pcap pci perl python rpm selinux smux ssl tcpd ucd-compat zlib |
210 |
" |
211 |
+ |
212 |
REQUIRED_USE=" |
213 |
python? ( ${PYTHON_REQUIRED_USE} ) |
214 |
rpm? ( bzip2 zlib ) |
215 |
" |
216 |
|
217 |
+RESTRICT="test" |
218 |
+ |
219 |
COMMON_DEPEND=" |
220 |
bzip2? ( app-arch/bzip2 ) |
221 |
elf? ( dev-libs/elfutils ) |
222 |
@@ -41,7 +42,7 @@ COMMON_DEPEND=" |
223 |
perl? ( dev-lang/perl:= ) |
224 |
python? ( |
225 |
$(python_gen_cond_dep ' |
226 |
- dev-python/setuptools[${PYTHON_MULTI_USEDEP}] |
227 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
228 |
') |
229 |
${PYTHON_DEPS} |
230 |
) |
231 |
@@ -56,10 +57,8 @@ COMMON_DEPEND=" |
232 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
233 |
zlib? ( >=sys-libs/zlib-1.1.4 ) |
234 |
" |
235 |
-DEPEND=" |
236 |
- ${COMMON_DEPEND} |
237 |
- doc? ( app-doc/doxygen ) |
238 |
-" |
239 |
+BDEPEND="doc? ( app-doc/doxygen )" |
240 |
+DEPEND="${COMMON_DEPEND}" |
241 |
RDEPEND=" |
242 |
${COMMON_DEPEND} |
243 |
perl? ( |
244 |
@@ -68,7 +67,7 @@ RDEPEND=" |
245 |
) |
246 |
selinux? ( sec-policy/selinux-snmp ) |
247 |
" |
248 |
-RESTRICT=test |
249 |
+ |
250 |
PATCHES=( |
251 |
"${FILESDIR}"/${PN}-5.7.3-include-limits.patch |
252 |
"${FILESDIR}"/${PN}-5.8-do-not-conflate-LDFLAGS-and-LIBS.patch |
253 |
@@ -138,7 +137,7 @@ src_configure() { |
254 |
--with-logfile="/var/log/net-snmpd.log" \ |
255 |
--with-mib-modules="${mibs}" \ |
256 |
--with-persistent-directory="/var/lib/net-snmp" \ |
257 |
- --with-sys-contact="root@Unknown" \ |
258 |
+ --with-sys-contact="root@unknown" \ |
259 |
--with-sys-location="Unknown" |
260 |
} |