mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
dev-libs/libdnet: customize libdnet ebuild for OEM
Dependency required by open-vm-tools.
This commit is contained in:
parent
0fcf7604a7
commit
4bf552bfd5
2
sdk_container/src/third_party/coreos-overlay/dev-libs/libdnet/Manifest
vendored
Normal file
2
sdk_container/src/third_party/coreos-overlay/dev-libs/libdnet/Manifest
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
DIST libdnet-1.12.ipv6-1.patch.gz 5124 SHA256 5e646901ae13d8aa47f0c5c063b86ecccb90780f9e3734cdbabf7a2d472c39ac SHA512 fa2380e41548ecdd978722930ecf90dffabd15cf06cbae0e113285072fe98a066f1e686b6d79e2d8b9f8adcf29783f313d61933b9e1e74e71da8dc7d741f815a WHIRLPOOL 27f356053749e1abdab24bd420f22e380e0970f7a2926474482a2e2532d1d8561f4b48d0eb243b5a62777543b3644adafd3cead4cc09f21d6cb5391a0b7e00f2
|
||||
DIST libdnet-1.12.tgz 970125 SHA256 83b33039787cf99990e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026 SHA512 b763d2caa77b8d16b531142a5bce3b862ed20198406a00e1fe7f3b45ce308b97d638b0c7f03bd8593fdd206cc1645952839bc340b77537298a3df88599835bf3 WHIRLPOOL 9e5b3a217bfef840ca0ed936dbc3573e51a9283a5a7d3ffd43606b98e8760586196261f34a2508cdcf9f868ccd08c9fd1d499252c9a43bb2f71a5b7b2c00c13e
|
72
sdk_container/src/third_party/coreos-overlay/dev-libs/libdnet/libdnet-1.12.ebuild
vendored
Normal file
72
sdk_container/src/third_party/coreos-overlay/dev-libs/libdnet/libdnet-1.12.ebuild
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libdnet/libdnet-1.12.ebuild,v 1.20 2014/02/09 08:22:34 kumba Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
AT_M4DIR="config"
|
||||
PYTHON_DEPEND="python? 2"
|
||||
PYTHON_COMPAT=( python2_6 python2_7 )
|
||||
DISTUTILS_OPTIONAL=1
|
||||
|
||||
inherit autotools distutils-r1 eutils
|
||||
|
||||
DESCRIPTION="simplified, portable interface to several low-level networking routines"
|
||||
HOMEPAGE="http://code.google.com/p/libdnet/"
|
||||
SRC_URI="http://libdnet.googlecode.com/files/${P}.tgz
|
||||
ipv6? ( http://fragroute-ipv6.googlecode.com/files/${P}.ipv6-1.patch.gz )"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
|
||||
IUSE="ipv6 python static-libs test"
|
||||
|
||||
#DEPEND="test? ( dev-libs/check )"
|
||||
DEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
RDEPEND="${DEPEND}"
|
||||
RESTRICT="test"
|
||||
|
||||
DOCS=( README THANKS TODO )
|
||||
|
||||
src_prepare() {
|
||||
# Useless copy
|
||||
rm -r trunk/ || die
|
||||
|
||||
sed -i \
|
||||
-e 's/libcheck.a/libcheck.so/g' \
|
||||
-e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
|
||||
configure.in || die
|
||||
sed -i -e 's|-L@libdir@ ||g' dnet-config.in || die
|
||||
use ipv6 && epatch "${WORKDIR}/${P}.ipv6-1.patch"
|
||||
sed -i -e '/^SUBDIRS/s|python||g' Makefile.am || die
|
||||
eautoreconf
|
||||
if use python; then
|
||||
cd python
|
||||
distutils-r1_src_prepare
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--prefix=/usr/share/oem \
|
||||
$(use_with python) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
if use python; then
|
||||
cd python
|
||||
distutils-r1_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use python; then
|
||||
cd python
|
||||
unset DOCS
|
||||
distutils-r1_src_install
|
||||
fi
|
||||
prune_libtool_files
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user