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

Contents of /net-libs/libnfnetlink/libnfnetlink-1.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Nov 13 17:00:08 2012 UTC (20 months, 1 week ago) by jer
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for HPPA (bug #442872).

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

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.1.ebuild,v 1.2 2012/11/13 16:44:52 ranger Exp $
4
5 EAPI=4
6 inherit linux-info eutils
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 prune_libtool_files
46 }

  ViewVC Help
Powered by ViewVC 1.1.20