diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-12-12 08:10:43 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-12-12 08:10:43 +0000 |
commit | 8b28b1945158edfb18dacc43b130b21cfc4d1207 (patch) | |
tree | 4a5e88d069cc374c447e041529cad2270cd5b457 /net-firewall/ipset/ipset-2.2.8.20051203.ebuild | |
parent | Version bump. (diff) | |
download | gentoo-2-8b28b1945158edfb18dacc43b130b21cfc4d1207.tar.gz gentoo-2-8b28b1945158edfb18dacc43b130b21cfc4d1207.tar.bz2 gentoo-2-8b28b1945158edfb18dacc43b130b21cfc4d1207.zip |
Version bump.
(Portage version: 2.0.53)
Diffstat (limited to 'net-firewall/ipset/ipset-2.2.8.20051203.ebuild')
-rw-r--r-- | net-firewall/ipset/ipset-2.2.8.20051203.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/net-firewall/ipset/ipset-2.2.8.20051203.ebuild b/net-firewall/ipset/ipset-2.2.8.20051203.ebuild new file mode 100644 index 000000000000..06fd2a41f7b5 --- /dev/null +++ b/net-firewall/ipset/ipset-2.2.8.20051203.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ipset-2.2.8.20051203.ebuild,v 1.1 2005/12/12 08:10:43 robbat2 Exp $ + +inherit eutils flag-o-matic versionator linux-info + +MY_PV="$(replace_version_separator 3 '-' )" +MY_P="${PN}-${MY_PV}" +DESCRIPTION="IPset tool for iptables, successor to ippool." +HOMEPAGE="http://people.netfilter.org/kadlec/ipset/" +SRC_URI="${HOMEPAGE}/${MY_P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +RDEPEND=">=net-firewall/iptables-1.3" +DEPEND="${RDEPEND} + virtual/linux-sources" +S="${WORKDIR}/${PN}" +CONFIG_CHECK="IP_NF_SET" + +pkg_setup() { + ewarn "If your kernel sources do not contain the IPset functionality," + ewarn "this package may fail to compile." + linux-info_pkg_setup +} + +src_defs() { + # these are used in both of src_compile and src_install + myconf="${myconf} PREFIX=" + myconf="${myconf} LIBDIR=/lib" + myconf="${myconf} BINDIR=/sbin" + myconf="${myconf} MANDIR=/usr/share/man" + myconf="${myconf} INCDIR=/usr/include" + export myconf +} + +src_compile() { + src_defs + + # for some reason, it doesn't behave right if this is skipped + replace-flags -O0 -O2 + if [ -z `get-flag O` ]; then + append-flags -O2 + fi + + # see iptables ebuild, as this code links against it + filter-flags "-fstack-protector" + + # now build it + emake COPT_FLAGS="${CFLAGS}" ${myconf} \ + KERNEL_DIR="${KERNEL_DIR}" \ + || die "failed to build" +} + +src_install() { + src_defs + emake DESTDIR="${D}" ${myconf} \ + KERNEL_DIR="${KERNEL_DIR}" \ + install || die "failed to package" +} |