summaryrefslogtreecommitdiff
path: root/libpcap
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-03-22 22:37:29 +0000
committerChris Larson <clarson@kergoth.com>2004-03-22 22:37:29 +0000
commitf249735ad71fd5f13bfd295c55e1e0d596a1dbff (patch)
tree93735f3e25beab7ac8bf066c504df17b244db4eb /libpcap
parent11ebfcef190cf217f67fa2b79adee0f58f9718f3 (diff)
Another pass of .oe cleanups.
BKrev: 405f6aa92YDm0pQN4padj00WWayDrQ
Diffstat (limited to 'libpcap')
-rw-r--r--libpcap/libpcap_0.7.2.oe31
-rw-r--r--libpcap/libpcap_0.8.1.oe24
2 files changed, 25 insertions, 30 deletions
diff --git a/libpcap/libpcap_0.7.2.oe b/libpcap/libpcap_0.7.2.oe
index 166015fdd1..62b864c564 100644
--- a/libpcap/libpcap_0.7.2.oe
+++ b/libpcap/libpcap_0.7.2.oe
@@ -5,17 +5,17 @@ MAINTAINER = "Greg Gilbert <treke@handhelds.org>"
DEPENDS = "virtual/libc"
RDEPENDS = "libc6"
-SRC_URI=http://www.tcpdump.org/release/libpcap-${PV}.tar.gz;
-SRC_URI_append=" file://${FILESDIR}/libpcap-shared.patch;patch=1"
-SRC_URI_append=" file://${FILESDIR}/configure.patch;patch=1"
-SRC_URI_append=" file://${FILESDIR}/ldflags.patch;patch=1"
-DEPENDS = "virtual/libc"
+SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz;"
+SRC_URI_append = " file://${FILESDIR}/libpcap-shared.patch;patch=1"
+SRC_URI_append = " file://${FILESDIR}/configure.patch;patch=1"
+SRC_URI_append = " file://${FILESDIR}/ldflags.patch;patch=1"
inherit autotools
-EXTRA_OECONF=" --with-pcap=linux"
-CPPFLAGS_prepend = '-I${S} '
-CFLAGS_prepend = '-I${S} '
-CXXFLAGS_prepend = '-I${S} '
+
+EXTRA_OECONF = "--with-pcap=linux"
+CPPFLAGS_prepend = "-I${S} "
+CFLAGS_prepend = "-I${S} "
+CXXFLAGS_prepend = "-I${S} "
do_configure_prepend () {
if [ ! -e acinclude.m4 ]; then
@@ -24,13 +24,10 @@ do_configure_prepend () {
}
do_stage () {
- install -d ${STAGING_DIR}/target/include/net
- install -m 0644 net/bpf.h ${STAGING_DIR}/target/include/net/bpf.h
- install -m 0644 pcap.h ${STAGING_DIR}/target/include/pcap.h
- install -m 0644 pcap-namedb.h ${STAGING_DIR}/target/include/pcap-namedb.h
- install -m 0755 libpcap.so.${PV} ${STAGING_LIBDIR}/
- ln -sf libpcap.so.${PV} ${STAGING_LIBDIR}/libpcap.so.0.7
- ln -sf libpcap.so.${PV} ${STAGING_LIBDIR}/libpcap.so.0
- ln -sf libpcap.so.${PV} ${STAGING_LIBDIR}/libpcap.so
+ install -d ${STAGING_INCDIR}/net
+ install -m 0644 net/bpf.h ${STAGING_INCDIR}/net/bpf.h
+ install -m 0644 pcap.h ${STAGING_INCDIR}/pcap.h
+ install -m 0644 pcap-namedb.h ${STAGING_INCDIR}/pcap-namedb.h
+ oe_soinstall libpcap.so.${PV} ${STAGING_LIBDIR}/
install -m 0644 libpcap.a ${STAGING_LIBDIR}/
}
diff --git a/libpcap/libpcap_0.8.1.oe b/libpcap/libpcap_0.8.1.oe
index 646a2bf1fb..6aa56d3aa9 100644
--- a/libpcap/libpcap_0.8.1.oe
+++ b/libpcap/libpcap_0.8.1.oe
@@ -4,12 +4,13 @@ PRIORITY = "required"
RDEPENDS = "libc6"
DEPENDS = "virtual/libc"
-SRC_URI=http://www.tcpdump.org/release/libpcap-${PV}.tar.gz; \
- file://${FILESDIR}/shared.patch;patch=1 \
- file://${FILESDIR}/configure.patch;patch=1
+SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz; \
+ file://${FILESDIR}/shared.patch;patch=1 \
+ file://${FILESDIR}/configure.patch;patch=1"
inherit autotools
-EXTRA_OECONF=" --with-pcap=linux"
+
+EXTRA_OECONF = "--with-pcap=linux"
do_configure_prepend () {
if [ ! -e acinclude.m4 ]; then
@@ -18,14 +19,11 @@ do_configure_prepend () {
}
do_stage () {
- install -d ${STAGING_DIR}/target/include/net
- install -m 0644 net/bpf.h ${STAGING_DIR}/target/include/net/bpf.h
- install -m 0644 pcap.h ${STAGING_DIR}/target/include/pcap.h
- install -m 0644 pcap-namedb.h ${STAGING_DIR}/target/include/pcap-namedb.h
- install -m 0644 pcap-bpf.h ${STAGING_DIR}/target/include/pcap-bpf.h
- install -m 0755 libpcap.so.${PV} ${STAGING_LIBDIR}/
- ln -sf libpcap.so.${PV} ${STAGING_LIBDIR}/libpcap.so.0.8
- ln -sf libpcap.so.${PV} ${STAGING_LIBDIR}/libpcap.so.0
- ln -sf libpcap.so.${PV} ${STAGING_LIBDIR}/libpcap.so
+ install -d ${STAGING_INCDIR}/net
+ install -m 0644 net/bpf.h ${STAGING_INCDIR}/net/bpf.h
+ install -m 0644 pcap.h ${STAGING_INCDIR}/pcap.h
+ install -m 0644 pcap-namedb.h ${STAGING_INCDIR}/pcap-namedb.h
+ install -m 0644 pcap-bpf.h ${STAGING_INCDIR}/pcap-bpf.h
+ oe_soinstall libpcap.so.${PV} ${STAGING_LIBDIR}/
install -m 0644 libpcap.a ${STAGING_LIBDIR}/
}