Magellan Linux

Contents of /branches/magellan-next/extras/libpcap/libpcap-1.1.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8815 - (show annotations) (download)
Mon Aug 1 08:49:45 2011 UTC (12 years, 9 months ago) by niro
File size: 1002 byte(s)
auto added: ver bump to 1.1.1-r1
1 # $Id$
2
3 PNAME="libpcap"
4 PVER="1.1.1"
5 PBUILD="r1"
6
7 PCATEGORIE="net-libs"
8
9 DESCRIPTION="A system-independent interface for user-level packet capture."
10 HOMEPAGE="http://www.tcpdump.org/"
11
12 DEPEND=">= dev-libs/libnl-1.1"
13 SDEPEND=">= sys-dev/flex-2.5.35"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mbuild
19
20 SRC_URI=(
21 http://www.tcpdump.org/release/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${PNAME}-${PVER}-Add-support-for-libnl-2.x-adapted-from-a-newer-version.patch
24 mirror://${PNAME}/${PNAME}-${PVER}-Libnl-2.x-returns-its-own-error-codes-not-errnos-handle.patch
25 )
26
27 UP2DATE="updatecmd ${HOMEPAGE} | grep -A3 -i 'latest' | grep 'Version:' | sed 's:.*/\ \(.*\):\1:'"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 # fix build against newer libnl
35 mpatch ${PNAME}-${PVER}-Add-support-for-libnl-2.x-adapted-from-a-newer-version.patch || die
36 mpatch ${PNAME}-${PVER}-Libnl-2.x-returns-its-own-error-codes-not-errnos-handle.patch || die
37 }