Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/net-snmp/
Date: Sun, 03 Feb 2019 12:27:25
Message-Id: 1549196838.dc231d1953dc67a30f6538195c57e7cbe835ad5b.jer@gentoo
1 commit: dc231d1953dc67a30f6538195c57e7cbe835ad5b
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 3 11:35:43 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 3 12:27:18 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc231d19
7
8 net-analyzer/net-snmp: Live ebuild
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-analyzer/net-snmp/net-snmp-5.8.ebuild | 4 +--
14 ...et-snmp-5.8.ebuild => net-snmp-99999999.ebuild} | 37 ++++++++++++----------
15 2 files changed, 22 insertions(+), 19 deletions(-)
16
17 diff --git a/net-analyzer/net-snmp/net-snmp-5.8.ebuild b/net-analyzer/net-snmp/net-snmp-5.8.ebuild
18 index c3d4d0622ea..fbcef8694f1 100644
19 --- a/net-analyzer/net-snmp/net-snmp-5.8.ebuild
20 +++ b/net-analyzer/net-snmp/net-snmp-5.8.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2018 Gentoo Authors
23 +# Copyright 1999-2019 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=6
27 @@ -12,7 +12,7 @@ GENTOO_DEPEND_ON_PERL=no
28 inherit autotools distutils-r1 eutils perl-module systemd
29
30 DESCRIPTION="Software for generating and retrieving SNMP data"
31 -HOMEPAGE="http://net-snmp.sourceforge.net/"
32 +HOMEPAGE="http://www.net-snmp.org/"
33 SRC_URI="
34 mirror://sourceforge/project/${PN}/${PN}/${PV/_p*/}/${P/_p*/}.tar.gz
35 https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-3.tar.xz
36
37 diff --git a/net-analyzer/net-snmp/net-snmp-5.8.ebuild b/net-analyzer/net-snmp/net-snmp-99999999.ebuild
38 similarity index 92%
39 copy from net-analyzer/net-snmp/net-snmp-5.8.ebuild
40 copy to net-analyzer/net-snmp/net-snmp-99999999.ebuild
41 index c3d4d0622ea..7fde04eba0e 100644
42 --- a/net-analyzer/net-snmp/net-snmp-5.8.ebuild
43 +++ b/net-analyzer/net-snmp/net-snmp-99999999.ebuild
44 @@ -1,4 +1,4 @@
45 -# Copyright 1999-2018 Gentoo Authors
46 +# Copyright 1999-2019 Gentoo Authors
47 # Distributed under the terms of the GNU General Public License v2
48
49 EAPI=6
50 @@ -9,22 +9,24 @@ WANT_AUTOMAKE=none
51 PATCHSET=3
52 GENTOO_DEPEND_ON_PERL=no
53
54 -inherit autotools distutils-r1 eutils perl-module systemd
55 +inherit autotools distutils-r1 eutils git-r3 perl-module systemd
56
57 DESCRIPTION="Software for generating and retrieving SNMP data"
58 -HOMEPAGE="http://net-snmp.sourceforge.net/"
59 +HOMEPAGE="http://www.net-snmp.org/"
60 +EGIT_REPO_URI="https://git.code.sf.net/p/net-snmp/code"
61 SRC_URI="
62 - mirror://sourceforge/project/${PN}/${PN}/${PV/_p*/}/${P/_p*/}.tar.gz
63 https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-3.tar.xz
64 "
65
66 -S=${WORKDIR}/${P/_/.}
67 -
68 # GPL-2 for the init scripts
69 LICENSE="HPND BSD GPL-2"
70 SLOT="0/35"
71 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
72 +KEYWORDS=""
73 IUSE="X bzip2 doc elf ipv6 libressl lm_sensors mfd-rewrites minimal mysql netlink pci perl python rpm selinux smux ssl tcpd ucd-compat zlib"
74 +REQUIRED_USE="
75 + python? ( ${PYTHON_REQUIRED_USE} )
76 + rpm? ( bzip2 zlib )
77 +"
78
79 COMMON_DEPEND="
80 ssl? (
81 @@ -61,31 +63,32 @@ RDEPEND="
82 )
83 selinux? ( sec-policy/selinux-snmp )
84 "
85 -
86 -REQUIRED_USE="
87 - python? ( ${PYTHON_REQUIRED_USE} )
88 - rpm? ( bzip2 zlib )
89 -"
90 +S=${WORKDIR}/${P/_/.}
91 S=${WORKDIR}/${P/_p*/}
92 -
93 RESTRICT=test
94 +PATCHES=(
95 + "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
96 + "${FILESDIR}"/${PN}-5.8-tinfo.patch
97 +)
98
99 pkg_setup() {
100 use python && python-single-r1_pkg_setup
101 }
102
103 +src_unpack() {
104 + default
105 + git-r3_src_unpack
106 +}
107 +
108 src_prepare() {
109 # snmpconf generates config files with proper selinux context
110 use selinux && eapply "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
111
112 - eapply "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
113 - eapply "${FILESDIR}"/${PN}-5.8-tinfo.patch
114 -
115 mv "${WORKDIR}"/patches/0002-Respect-DESTDIR-for-pythoninstall.patch{,.disabled} || die
116 mv "${WORKDIR}"/patches/0004-Don-t-report-CFLAGS-and-LDFLAGS-in-net-snmp-config.patch{,.disabled} || die
117 eapply "${WORKDIR}"/patches/*.patch
118
119 - eapply_user
120 + default
121
122 eautoconf
123 }