/[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.7 - (show annotations) (download)
Sun Sep 2 18:51:43 2012 UTC (2 years ago) by armin76
Branch: MAIN
Changes since 1.6: +2 -2 lines
alpha/ia64/m68k/s390/sh/sparc stable wrt #419269

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.6 2012/08/11 14:39:49 maekke 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 die "${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 if ! use static-libs; then
46 rm -f "${D}"/usr/lib*/*.la || die
47 fi
48 }

  ViewVC Help
Powered by ViewVC 1.1.20