libnet-rawip-perl: add Net::RawIP Perl module
authorRoman I Khimov <khimov@altell.ru>
Thu, 18 Mar 2010 14:54:02 +0000 (17:54 +0300)
committerRoman I Khimov <khimov@altell.ru>
Tue, 23 Mar 2010 21:48:11 +0000 (00:48 +0300)
Signed-off-by: Roman I Khimov <khimov@altell.ru>
recipes/perl/libnet-rawip-perl/kill-pcap-check.patch [new file with mode: 0644]
recipes/perl/libnet-rawip-perl_0.25.bb [new file with mode: 0644]

diff --git a/recipes/perl/libnet-rawip-perl/kill-pcap-check.patch b/recipes/perl/libnet-rawip-perl/kill-pcap-check.patch
new file mode 100644 (file)
index 0000000..f82b9a1
--- /dev/null
@@ -0,0 +1,14 @@
+Index: Net-RawIP-0.25/Makefile.PL
+===================================================================
+--- Net-RawIP-0.25.orig/Makefile.PL    2010-02-02 16:29:08.000000000 +0300
++++ Net-RawIP-0.25/Makefile.PL 2010-02-02 16:29:16.000000000 +0300
+@@ -57,9 +57,6 @@
+ print "Compiler: $Config{cc}\n";
+ system "$Config{cc} --version";
+-locate_pcap();
+-
+-
+ WriteMakefile(
+     NAME            => 'Net::RawIP',
+     LICENSE         => 'perl',
diff --git a/recipes/perl/libnet-rawip-perl_0.25.bb b/recipes/perl/libnet-rawip-perl_0.25.bb
new file mode 100644 (file)
index 0000000..ec57c7a
--- /dev/null
@@ -0,0 +1,23 @@
+DESCRIPTION = "Perl extension to manipulate raw IP packets with interface to libpcap"
+SECTION = "libs"
+LICENSE = "Artistic|GPL"
+DEPENDS = "libpcap"
+RDEPENDS = " \
+        perl-module-class-struct \
+        perl-module-data-dumper \
+        perl-module-english \
+        perl-module-getopt-long \
+        perl-module-subs \
+        perl-module-test-more \
+        "
+
+SRC_URI = " \
+       http://search.cpan.org/CPAN/authors/id/S/SA/SAPER/Net-RawIP-${PV}.tar.gz;name=net-rawip-perl-${PV} \
+       file://kill-pcap-check.patch;patch=1 \
+       "
+SRC_URI[net-rawip-perl-0.25.md5sum] = "a99f461e20e7894154f64729a4652448"
+SRC_URI[net-rawip-perl-0.25.sha256sum] = "6d104b2f0e453eff7a1b479c528798670b15729ed6ecf41430405ff6d7e1ee58"
+
+S = "${WORKDIR}/Net-RawIP-${PV}"
+
+inherit cpan