diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/libsmi/libsmi-0.4.8-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/libsmi/libsmi-0.4.8-r1.ebuild')
-rw-r--r-- | net-libs/libsmi/libsmi-0.4.8-r1.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net-libs/libsmi/libsmi-0.4.8-r1.ebuild b/net-libs/libsmi/libsmi-0.4.8-r1.ebuild new file mode 100644 index 000000000000..e6106337ab94 --- /dev/null +++ b/net-libs/libsmi/libsmi-0.4.8-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic + +DESCRIPTION="A Library to Access SMI MIB Information" +SRC_URI="ftp://ftp.ibr.cs.tu-bs.de/pub/local/${PN}/${P}.tar.gz" +HOMEPAGE="http://www.ibr.cs.tu-bs.de/projects/libsmi" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +IUSE="static-libs" + +src_prepare() { + epatch "${FILESDIR}"/${P}-CVE-2010-2891.patch +} + +src_configure() { + replace-flags -O? -O2 + econf $(use_enable static-libs static) +} + +src_test() { + # sming test is known to fail and some other fail if LC_ALL!=C: + # http://mail.ibr.cs.tu-bs.de/pipermail/libsmi/2008-March/001014.html + sed -i '/^[[:space:]]*smidump-sming.test \\$/d' test/Makefile + LC_ALL=C emake -j1 check || die +} + +src_install () { + default + dodoc smi.conf-example ANNOUNCE ChangeLog README THANKS TODO \ + doc/{*.txt,smi.dia,smi.dtd,smi.xsd} + prune_libtool_files +} |