/[gentoo-x86]/net-libs/libnfnetlink/libnfnetlink-1.0.0-r1.ebuild
Gentoo

Contents of /net-libs/libnfnetlink/libnfnetlink-1.0.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Feb 8 06:44:16 2013 UTC (3 months, 1 week ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +4 -6 lines
Change from die to ewarn as the former can trigger in many wrong instances, and <2.6.14 is not a scenario we need to really care about anymore.

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/libnfnetlink/libnfnetlink-1.0.0-r1.ebuild,v 1.7 2012/09/02 18:51:43 armin76 Exp $
4
5 EAPI=4
6 inherit linux-info
7
8 DESCRIPTION="the low-level library for netfilter related kernel/userspace communication"
9 HOMEPAGE="http://www.netfilter.org/projects/libnfnetlink/"
10 SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
15 IUSE="static-libs"
16
17 DOCS=( README )
18
19 pkg_setup() {
20 linux-info_pkg_setup
21
22 if kernel_is lt 2 6 18 ; then
23 ewarn "${PN} requires at least 2.6.18 kernel version"
24 fi
25
26 #netfilter core team has changed some option names with kernel 2.6.20
27 error_common=' is not set when it should be. You can activate it in the Core Netfilter Configuration'
28 if kernel_is lt 2 6 20 ; then
29 CONFIG_CHECK="~IP_NF_CONNTRACK_NETLINK"
30 ERROR_IP_NF_CONNTRACK_NETLINK="CONFIG_IP_NF_CONNTRACK_NETLINK:\t${error_common}"
31 else
32 CONFIG_CHECK="~NF_CT_NETLINK"
33 ERROR_NF_CT_NETLINK="CONFIG_NF_CT_NETLINK:\t${error_common}"
34 fi
35
36 check_extra_config
37 }
38
39 src_configure() {
40 econf $(use_enable static-libs static)
41 }
42
43 src_install() {
44 default
45 use static-libs || find "${ED}"/usr -name '*.la' -delete
46 }

  ViewVC Help
Powered by ViewVC 1.1.13