Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 68467
Collapse All | Expand All

(-)/usr/portage/net-analyzer/net-snmp/net-snmp-5.1.1-r1.ebuild (-6 / +9 lines)
Lines 6-16 Link Here
6
6
7
DESCRIPTION="Software for generating and retrieving SNMP data"
7
DESCRIPTION="Software for generating and retrieving SNMP data"
8
HOMEPAGE="http://net-snmp.sourceforge.net/"
8
HOMEPAGE="http://net-snmp.sourceforge.net/"
9
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
9
MY_PV=${PV/_/.}
10
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
10
11
11
LICENSE="as-is"
12
LICENSE="as-is"
12
SLOT="0"
13
SLOT="0"
13
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm hppa ~amd64 ~ia64 ~s390 ~ppc64"
14
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64"
14
IUSE="perl ipv6 ssl tcpd X lm_sensors minimal"
15
IUSE="perl ipv6 ssl tcpd X lm_sensors minimal"
15
16
16
PROVIDE="virtual/snmp"
17
PROVIDE="virtual/snmp"
Lines 32-38 Link Here
32
	!virtual/snmp"
33
	!virtual/snmp"
33
34
34
DEPEND="${DEPEND} >=sys-apps/sed-4"
35
DEPEND="${DEPEND} >=sys-apps/sed-4"
35
36
S=${WORKDIR}/${PN}-${MY_PV}
36
src_unpack() {
37
src_unpack() {
37
	unpack ${A}
38
	unpack ${A}
38
	cd ${S}
39
	cd ${S}
Lines 64-74 Link Here
64
		--with-sys-contact="root@Unknown" \
65
		--with-sys-contact="root@Unknown" \
65
		--with-default-snmp-version="3" \
66
		--with-default-snmp-version="3" \
66
		--with-mib-modules="host smux ucd-snmp/dlmod" \
67
		--with-mib-modules="host smux ucd-snmp/dlmod" \
67
		--with-logfile=/var/log/net-snmpd.log \
68
		--with-logfile=${ROOT}/var/log/net-snmpd.log \
68
		--with-persistent-directory=/var/lib/net-snmp \
69
		--with-persistent-directory=${ROOT}/var/lib/net-snmp \
69
		--enable-ucd-snmp-compatibility \
70
		--enable-ucd-snmp-compatibility \
70
		--enable-shared \
71
		--enable-shared \
71
		--with-zlib \
72
		--with-zlib \
73
		--with-install-prefix=${D} \
72
		${myconf} || die "econf failed"
74
		${myconf} || die "econf failed"
73
75
74
	emake -j1 || die "compile problem"
76
	emake -j1 || die "compile problem"
Lines 79-85 Link Here
79
}
81
}
80
82
81
src_install () {
83
src_install () {
82
	einstall exec_prefix="${D}/usr" persistentdir="${D}/var/lib/net-snmp"
84
	# einstall exec_prefix="${D}/usr" persistentdir="${D}/var/lib/net-snmp"
85
	make DESTDIR="${D}" install || die "make install failed"
83
86
84
	if use perl ; then
87
	if use perl ; then
85
		make DESTDIR="${D}" perlinstall || die "make perlinstall failed"
88
		make DESTDIR="${D}" perlinstall || die "make perlinstall failed"

Return to bug 68467