| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/net-misc/arpd/arpd-0.2-r1.ebuild,v 1.1 2010/02/16 21:08:15 jlec Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/net-misc/arpd/arpd-0.2-r1.ebuild,v 1.2 2010/09/16 22:47:14 xmw Exp $ |
| 4 | |
4 | |
| 5 | EAPI="3" |
5 | EAPI="3" |
| 6 | |
6 | |
| 7 | inherit eutils |
7 | inherit autotools eutils |
| 8 | |
8 | |
| 9 | DESCRIPTION="ARP server which claims all unassigned addresses (for network monitoring or simulation)" |
9 | DESCRIPTION="ARP server which claims all unassigned addresses (for network monitoring or simulation)" |
| 10 | HOMEPAGE="http://www.citi.umich.edu/u/provos/honeyd/" |
10 | HOMEPAGE="http://www.citi.umich.edu/u/provos/honeyd/" |
| 11 | SRC_URI="http://www.citi.umich.edu/u/provos/honeyd/${P}.tar.gz" |
11 | SRC_URI="http://www.citi.umich.edu/u/provos/honeyd/${P}.tar.gz" |
| 12 | |
12 | |
| … | |
… | |
| 23 | S=${WORKDIR}/${PN} |
23 | S=${WORKDIR}/${PN} |
| 24 | |
24 | |
| 25 | src_prepare() { |
25 | src_prepare() { |
| 26 | epatch "${FILESDIR}"/arpd.c.patch |
26 | epatch "${FILESDIR}"/arpd.c.patch |
| 27 | epatch "${FILESDIR}"/${P}-libevent.patch |
27 | epatch "${FILESDIR}"/${P}-libevent.patch |
|
|
28 | |
|
|
29 | #fix bug 337481, replace test on libevent.a with libevent.so |
|
|
30 | epatch "${FILESDIR}"/${P}-buildsystem-libevent-test.patch |
| 28 | |
31 | |
| 29 | sed -i \ |
32 | eautoreconf |
| 30 | -e 's|$withval/lib/libevent.a; then||' \ |
|
|
| 31 | -e 's|if test -f $withval/include/event.h -a -f|if test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then|' \ |
|
|
| 32 | configure || die "sed failed" |
|
|
| 33 | } |
33 | } |
| 34 | |
34 | |
| 35 | src_configure() { |
35 | src_configure() { |
| 36 | econf --with-libdnet="${EPREFIX}"/usr --with-libevent="${EPREFIX}"/usr |
36 | econf --with-libdnet="${EPREFIX}"/usr --with-libevent="${EPREFIX}"/usr |
| 37 | } |
37 | } |