/[gentoo-x86]/net-libs/libnet/libnet-1.0.2a-r5.ebuild
Gentoo

Contents of /net-libs/libnet/libnet-1.0.2a-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon Apr 22 17:11:52 2013 UTC (5 years ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
Stable for sparc, wrt bug #444242

(Portage version: 2.1.11.55/cvs/Linux ppc64, signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/libnet/libnet-1.0.2a-r5.ebuild,v 1.8 2013/04/21 12:51:57 ago Exp $
4
5 EAPI=4
6 inherit autotools eutils toolchain-funcs
7
8 DESCRIPTION="library to provide an API for commonly used low-level network functions (mainly packet injection)"
9 HOMEPAGE="http://www.packetfactory.net/libnet/"
10 SRC_URI="http://www.packetfactory.net/libnet/dist/deprecated/${P}.tar.gz"
11
12 LICENSE="BSD BSD-2 HPND"
13 SLOT="1.0"
14 KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 ~x86-fbsd"
15 IUSE=""
16
17 S=${WORKDIR}/Libnet-${PV}
18
19 src_prepare() {
20 epatch "${FILESDIR}"/libnet-gcc33-fix \
21 "${FILESDIR}"/${PV}-slot.patch
22
23 use arm && epatch "${FILESDIR}"/${PV}-endian.patch
24
25 cd "${S}"
26 mv libnet-config.in libnet-${SLOT}-config.in || die "moving libnet-config"
27
28 cd "${S}"/include
29 ln -s libnet.h libnet-${SLOT}.h
30
31 cd libnet
32 for f in *.h ; do
33 ln -s ${f} ${f/-/-${SLOT}-} || die "linking ${f}"
34 done
35
36 cd "${S}"/doc
37 ln -s libnet.3 libnet-${SLOT}.3 || die "linking manpage"
38
39 cd "${S}"
40 sed -i configure.in -e '/CCOPTS=/d;/CFLAGS=/s|.*|:|' || die
41
42 eautoconf
43
44 tc-export AR RANLIB
45 }
46
47 src_install() {
48 default
49 doman "${D}"/usr/man/man3/libnet-1.0.3
50 rm -r "${D}"/usr/man
51
52 dodoc VERSION doc/{README,TODO*,CHANGELOG*}
53 newdoc README README.1st
54 docinto example ; dodoc example/libnet*
55 docinto Ancillary ; dodoc doc/Ancillary/*
56 }
57
58 pkg_postinst(){
59 elog "libnet ${SLOT} is deprecated !"
60 elog "config script: libnet-${SLOT}-config"
61 elog "manpage: libnet-${SLOT}"
62 elog "library: libnet-${SLOT}.a"
63 elog "include: libnet-${SLOT}.h"
64 }

  ViewVC Help
Powered by ViewVC 1.1.20