aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-12-13 22:49:57 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-12-13 22:49:57 +0000
commit23b259bb62c5a77b257e1c36cce3a51407997761 (patch)
treea07ecd787e996ec860ab8384036d76b04fa3fe40
parent93c37c76b40be2ebc3d3fcff3f78f3a89a4dafca (diff)
downloadopenembedded-23b259bb62c5a77b257e1c36cce3a51407997761.tar.gz
openembedded-23b259bb62c5a77b257e1c36cce3a51407997761.tar.bz2
openembedded-23b259bb62c5a77b257e1c36cce3a51407997761.zip
make libnet compile and add FIXME
BKrev: 41be1c95oc2WWJggfdJTa-sZSjBT0Q
-rw-r--r--packages/libnet/libnet_1.0.2a.bb34
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/libnet/libnet_1.0.2a.bb b/packages/libnet/libnet_1.0.2a.bb
index e69de29bb2..c986bb9f90 100644
--- a/packages/libnet/libnet_1.0.2a.bb
+++ b/packages/libnet/libnet_1.0.2a.bb
@@ -0,0 +1,34 @@
+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."
+SECTION = "libs/network"
+LICENSE = "GPL"
+
+SRC_URI = "http://www.packetfactory.net/libnet/dist/deprecated/libnet-${PV}.tar.gz \
+ file://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}/'"
+
+#FIXME:
+do_configure() {
+ oe_runconf
+}
+
+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/
+ oe_libinstall -a -C lib libnet ${STAGING_LIBDIR}
+}