blob: 6a482da668f58e7c048ab739128b73f8e859feaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
DEPENDS = "virtual/libc"
RDEPENDS = "libc6"
DESCRIPTION = "Libnet is a collection of routines to help with \
the construction and handling of network packets. It provides a \
portable framework for low-level network packet shaping, \
handling, and injection."
SRC_URI = "http://www.packetfactory.net/libnet/dist/deprecated/libnet-${PV}.tar.gz \
file://${FILESDIR}/configure.patch;patch=1"
S = "${WORKDIR}/Libnet-${PV}"
inherit autotools
CPPFLAGS_prepend = "-I${S}/libnet/include -DHAVE_PF_PACKET "
EXTRA_OEMAKE = "'LIB_PREFIX=${libdir}/' 'MAN_PREFIX=${mandir}/' \
'BIN_PREFIX=${bindir}/' 'INC_PREFIX=${includedir}/'"
do_stage () {
install -m 0755 libnet-config ${STAGING_BINDIR}/
install -m 0644 include/libnet.h ${STAGING_INCDIR}/
install -d ${STAGING_INCDIR}/libnet
install -m 0644 include/libnet/libnet-headers.h ${STAGING_INCDIR}/libnet/
install -m 0644 include/libnet/libnet-functions.h ${STAGING_INCDIR}/libnet/
install -m 0644 include/libnet/libnet-structures.h ${STAGING_INCDIR}/libnet/
install -m 0644 include/libnet/libnet-macros.h ${STAGING_INCDIR}/libnet/
install -m 0644 include/libnet/libnet-asn1.h ${STAGING_INCDIR}/libnet/
install -m 0644 include/libnet/libnet-ospf.h ${STAGING_INCDIR}/libnet/
install -m 0755 lib/libnet.a ${STAGING_LIBDIR}/
}
|