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

(-)net-snmp-5.4.2.1-r3.ebuild (-17 / +13 lines)
Lines 45-65 Link Here
45
	doc? ( app-doc/doxygen )"
45
	doc? ( app-doc/doxygen )"
46
46
47
src_prepare() {
47
src_prepare() {
48
	# Fix CVE-2008-6123
49
	epatch "${FILESDIR}"/CVE-2008-6123.patch
50
51
	# lm_sensors-3 support
52
	if use lm_sensors ; then
53
		epatch "${FILESDIR}"/${PN}-5.4.1-sensors3.patch \
54
			"${FILESDIR}"/${PN}-5.4.1-sensors3-version_detect.patch
55
	fi
56
57
	# fix access violation in make check
48
	# fix access violation in make check
58
	sed -i -e 's/\(snmpd.*\)-Lf/\1-l/' testing/eval_tools.sh || \
49
	sed -i \
59
		die "sed eval_tools.sh failed"
50
		-e 's/\(snmpd.*\)-Lf/\1-l/' \
51
		testing/eval_tools.sh || die "sed eval_tools.sh failed"
60
	# fix path in fixproc
52
	# fix path in fixproc
61
	sed -i -e 's|\(database_file =.*\)/local\(.*\)$|\1\2|' local/fixproc || \
53
	sed -i \
62
		die "sed fixproc failed"
54
		-e 's|\(database_file =.*\)/local\(.*\)$|\1\2|' \
55
		local/fixproc || die "sed fixproc failed"
63
56
64
	if use python ; then
57
	if use python ; then
65
		python_version
58
		python_version
Lines 73-84 Link Here
73
	use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
66
	use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
74
67
75
	# remove CFLAGS from net-snmp-config script (bug #257622):
68
	# remove CFLAGS from net-snmp-config script (bug #257622):
76
	sed -i -e 's|@CFLAGS@ ||g' net-snmp-config.in
69
	sed -i \
70
		-e 's|@CFLAGS@ ||g' \
71
		-e 's|@LDFLAGS@ ||g' \
72
		net-snmp-config.in || die "sedding CFLAGS failed"
77
73
78
	# Fix version number:
74
	# Fix version number:
79
	sed -i -e "s:NetSnmpVersionInfo = \".*\":NetSnmpVersionInfo = \"${PV}\":" snmplib/snmp_version.c
75
	sed -i \
80
76
		-e "s|PACKAGE_VERSION|\"${PV}\"|g" \
81
	eautoreconf
77
		snmplib/snmp_version.c || die "sedding version failed"
82
78
83
	ht_fix_all
79
	ht_fix_all
84
}
80
}

Return to bug 317325