From da61a358c23ba13e894264bbda5663a6056e357a Mon Sep 17 00:00:00 2001 From: Marko Semet Date: Sat, 31 Aug 2019 22:33:18 +0200 Subject: [PATCH] Add libpcap support --- Platform/v1.0/README.md | 2 +- Platform/v1.0/platform/libpcap.yaml | 46 ++++++++++++++++++++++++++++ Platform/v1.0/platform/platform.yaml | 1 + 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 Platform/v1.0/platform/libpcap.yaml diff --git a/Platform/v1.0/README.md b/Platform/v1.0/README.md index 99a09b9..c3ed4bc 100644 --- a/Platform/v1.0/README.md +++ b/Platform/v1.0/README.md @@ -1,5 +1,6 @@ # Supported - libGLU +- libpcap - MinGW # Missing @@ -12,7 +13,6 @@ - OSSv4 (for what?) # TODO -- pcap - libhal - libsane - libudev diff --git a/Platform/v1.0/platform/libpcap.yaml b/Platform/v1.0/platform/libpcap.yaml new file mode 100644 index 0000000..4db1f00 --- /dev/null +++ b/Platform/v1.0/platform/libpcap.yaml @@ -0,0 +1,46 @@ +name: libpcap-meta +modules: + - name: libpcap-platform + sources: + - type: archive + url: https://www.tcpdump.org/release/libpcap-1.9.0.tar.gz + sha256: 2edb88808e5913fdaa8e9c1fcaf272e19b2485338742b5074b9fe44d68f37019 + builddir: true + build-options: + make-install-args: + - DESTDIR=/usr/tmp_pcap + - install + post-install: + - rm -rfv /usr/tmp_pcap/usr/share + - cp -rav /usr/tmp_pcap/usr / + - rm -rfv /usr/tmp_pcap + cleanup-platform: + - "*.la" + - "*.a" + - "/include" + - name: libpcap-32bit + sources: + - type: archive + url: https://www.tcpdump.org/release/libpcap-1.9.0.tar.gz + sha256: 2edb88808e5913fdaa8e9c1fcaf272e19b2485338742b5074b9fe44d68f37019 + builddir: true + config-opts: + - --build=i686-unknown-linux + - --libdir=/usr/lib32 + - CFLAGS=-m32 + - CXXFLAGS=-m32 + - LDFLAGS=-m32 + build-options: + make-install-args: + - DESTDIR=/usr/tmp_pcap + - install + post-install: + - rm -rfv /usr/tmp_pcap/usr/share + - cp -rav /usr/tmp_pcap/usr / + - rm -rfv /usr/tmp_pcap + cleanup-platform: + - "*.la" + - "*.a" + - "/include" + only-arches: + - x86_64 diff --git a/Platform/v1.0/platform/platform.yaml b/Platform/v1.0/platform/platform.yaml index aa9944e..9771895 100644 --- a/Platform/v1.0/platform/platform.yaml +++ b/Platform/v1.0/platform/platform.yaml @@ -5,3 +5,4 @@ build-commands: modules: - winetricks.yaml - libglu.yaml + - libpcap.yaml