summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2009-11-22 23:30:12 +0000
committerJeroen Roovers <jer@gentoo.org>2009-11-22 23:30:12 +0000
commitbaca9ebfe789d5c31d9f7d576cbf0850d378b5dd (patch)
treecb89abc972bcfc78f0a24e40ea2dcdc551251299 /net-libs/netwib
parentadd initial ebuild based on qemu-0.11.0 (diff)
downloadgentoo-2-baca9ebfe789d5c31d9f7d576cbf0850d378b5dd.tar.gz
gentoo-2-baca9ebfe789d5c31d9f7d576cbf0850d378b5dd.tar.bz2
gentoo-2-baca9ebfe789d5c31d9f7d576cbf0850d378b5dd.zip
Version bump. Respect LDFLAGS. Run genemake in src_configure. Use emake to install. Marked ~hppa too.
(Portage version: 2.2_rc51/cvs/Linux i686)
Diffstat (limited to 'net-libs/netwib')
-rw-r--r--net-libs/netwib/ChangeLog8
-rw-r--r--net-libs/netwib/netwib-5.36.0.ebuild56
2 files changed, 63 insertions, 1 deletions
diff --git a/net-libs/netwib/ChangeLog b/net-libs/netwib/ChangeLog
index e9b9915827eb..18a76041b267 100644
--- a/net-libs/netwib/ChangeLog
+++ b/net-libs/netwib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-libs/netwib
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/netwib/ChangeLog,v 1.32 2009/08/08 20:31:44 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/netwib/ChangeLog,v 1.33 2009/11/22 23:30:12 jer Exp $
+
+*netwib-5.36.0 (22 Nov 2009)
+
+ 22 Nov 2009; Jeroen Roovers <jer@gentoo.org> +netwib-5.36.0.ebuild:
+ Version bump. Respect LDFLAGS. Run genemake in src_configure. Use emake to
+ install. Marked ~hppa too.
08 Aug 2009; Diego E. Pettenò <flameeyes@gentoo.org>
netwib-5.33.0.ebuild:
diff --git a/net-libs/netwib/netwib-5.36.0.ebuild b/net-libs/netwib/netwib-5.36.0.ebuild
new file mode 100644
index 000000000000..3f4153ce4a9b
--- /dev/null
+++ b/net-libs/netwib/netwib-5.36.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/netwib/netwib-5.36.0.ebuild,v 1.1 2009/11/22 23:30:12 jer Exp $
+
+# NOTE: netwib, netwox and netwag go together, bump all or bump none
+
+EAPI="2"
+
+inherit toolchain-funcs multilib
+
+DESCRIPTION="Library of Ethernet, IP, UDP, TCP, ICMP, ARP and RARP protocols"
+HOMEPAGE="http://www.laurentconstantin.com/en/netw/netwib/"
+
+BASEURI="http://www.laurentconstantin.com/common/netw/${PN}/download/"
+SRC_URI="
+ ${BASEURI}v${PV/.*}/${P}-src.tgz
+ doc? ( ${BASEURI}v${PV/.*}/${P}-doc_html.tgz )
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE="doc"
+
+DEPEND="net-libs/libpcap
+ >=net-libs/libnet-1.1.1"
+
+S="${WORKDIR}/${P}-src/src"
+
+src_prepare() {
+ sed -i \
+ -e 's:/man$:/share/man:g' \
+ -e "s:/lib:/$(get_libdir):" \
+ -e "s:/usr/local:/usr:" \
+ -e "s:=ar:=$(tc-getAR):" \
+ -e "s:=ranlib:=$(tc-getRANLIB):" \
+ -e "s:=gcc:=$(tc-getCC):" \
+ -e "s:-O2:${CFLAGS}:" \
+ config.dat
+}
+
+src_configure() {
+ sh genemake || die "problem creating Makefile"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc ../README.TXT
+ if use doc; then
+ mv "${WORKDIR}"/${P}-doc_html "${D}"/usr/share/doc/${PF}/html
+ else
+ cd "${S}"/..
+ dodoc doc/{changelog.txt,credits.txt,integration.txt} \
+ doc/{problemreport.txt,problemusageunix.txt,todo.txt}
+ fi
+}