diff options
author | Armin Kuster <akuster808@gmail.com> | 2014-12-26 18:44:50 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2015-01-03 21:21:11 -0800 |
commit | b80abbf51d2ba65c8563c09d8b958174b1c5ea88 (patch) | |
tree | 113331d0b04ff9dadde29e43c61e2bd71d4e8d2a /recipes-perl | |
parent | 424473d61eeb28c93dcdfc89ce0a5644367c7aa1 (diff) | |
download | meta-security-b80abbf51d2ba65c8563c09d8b958174b1c5ea88.tar.gz |
perl: reorg recipes to match meta-perl.
move security perl recipes to a more standardized
recipes-perl layout.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-perl')
-rw-r--r-- | recipes-perl/perl/files/libwhisker2.patch | 73 | ||||
-rw-r--r-- | recipes-perl/perl/lib-perl_0.63.bb | 28 | ||||
-rw-r--r-- | recipes-perl/perl/libnetaddr-ip-perl_4.069.bb | 26 | ||||
-rw-r--r-- | recipes-perl/perl/libwhisker2-perl_2.5.bb | 24 |
4 files changed, 151 insertions, 0 deletions
diff --git a/recipes-perl/perl/files/libwhisker2.patch b/recipes-perl/perl/files/libwhisker2.patch new file mode 100644 index 0000000..c066366 --- /dev/null +++ b/recipes-perl/perl/files/libwhisker2.patch | |||
@@ -0,0 +1,73 @@ | |||
1 | From 34698c7f561fb575293a1c991a71e1b4ddc5ae73 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrei Dinu <andrei.adrianx.dinu@intel.com> | ||
3 | Date: Fri, 5 Jul 2013 11:56:58 +0300 | ||
4 | Subject: [PATCH] Mandir and perl install dir were overwritten with faulty | ||
5 | information in the Makefile. Now the Mandir and perl | ||
6 | install dir are sent via paramters from the recipe. | ||
7 | |||
8 | Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> | ||
9 | --- | ||
10 | Makefile.pl | 12 +++++++----- | ||
11 | 1 file changed, 7 insertions(+), 5 deletions(-) | ||
12 | |||
13 | diff --git a/Makefile.pl b/Makefile.pl | ||
14 | index 9ca5602..8776e18 100644 | ||
15 | --- a/Makefile.pl | ||
16 | +++ b/Makefile.pl | ||
17 | @@ -131,6 +131,8 @@ foreach (keys %MODULES){ | ||
18 | |||
19 | # adjust DESTDIR, if needed | ||
20 | $DESTDIR = $ENV{DESTDIR} if(defined $ENV{DESTDIR}); | ||
21 | +$MANDIR = $ENV{MANDIR} if(defined $ENV{MANDIR}); | ||
22 | +$INSTALLDIR = $ENV{INSTALLDIR} if(defined $ENV{INSTALLDIR}); | ||
23 | |||
24 | # parse command line build options | ||
25 | while($COMMAND = shift @ARGV){ | ||
26 | @@ -171,7 +173,7 @@ sub command_install_pod { | ||
27 | command_build() if(!-e $TARGET); | ||
28 | die("Can not install without Config.pm") if($MODULES{Config}==0); | ||
29 | $CWD=&cwd if($MODULES{Cwd}>0); | ||
30 | - my $where=$DESTDIR . $Config{'man3direxp'}; | ||
31 | + my $where=$DESTDIR . $MANDIR; | ||
32 | my $t = $TARGET; | ||
33 | if($LIBRARY){ | ||
34 | $t="$PACKAGE.3pm"; | ||
35 | @@ -219,7 +221,7 @@ sub command_install_pod { | ||
36 | sub command_uninstall_pod { | ||
37 | die("Can not uninstall without Config.pm") if($MODULES{Config}==0); | ||
38 | $CWD=&cwd if($MODULES{Cwd}>0); | ||
39 | - my $where=$DESTDIR . $Config{'man3direxp'}; | ||
40 | + my $where=$DESTDIR . $MANDIR; | ||
41 | my $t = $TARGET; | ||
42 | if($LIBRARY){ | ||
43 | $t="$PACKAGE.3pm"; | ||
44 | @@ -243,7 +245,7 @@ sub command_install_library { | ||
45 | command_build() if(!-e $TARGET); | ||
46 | die("Can not install without Config.pm") if($MODULES{Config}==0); | ||
47 | $CWD=&cwd if($MODULES{Cwd}>0); | ||
48 | - my $where=$DESTDIR . $Config{'installsitelib'}; | ||
49 | + my $where=$DESTDIR . $INSTALLDIR; | ||
50 | if(!-e $where){ | ||
51 | print STDOUT "WARNING!\n\n", | ||
52 | "The local perl site directory does not exist:\n", | ||
53 | @@ -271,7 +273,7 @@ sub command_install_library { | ||
54 | sub command_uninstall_library { | ||
55 | die("Can not uninstall without Config.pm") if($MODULES{Config}==0); | ||
56 | $CWD=&cwd if($MODULES{Cwd}>0); | ||
57 | - my $where=$DESTDIR . $Config{'installsitelib'}; | ||
58 | + my $where=$DESTDIR . $INSTALLDIR; | ||
59 | chdir($where); | ||
60 | if(-e $TARGET){ | ||
61 | unlink $TARGET; | ||
62 | @@ -401,7 +403,7 @@ sub command_socket_diag { | ||
63 | sub command_install_compat { | ||
64 | die("Can not install without Config.pm") if($MODULES{Config}==0); | ||
65 | $CWD=&cwd if($MODULES{Cwd}>0); | ||
66 | - my $where=$DESTDIR . $Config{'installsitelib'}; | ||
67 | + my $where=$DESTDIR . $INSTALLDIR; | ||
68 | if(!-e $where){ | ||
69 | print STDOUT "WARNING!\n\n", | ||
70 | "The local perl site directory does not exist:\n", | ||
71 | -- | ||
72 | 1.7.9.5 | ||
73 | |||
diff --git a/recipes-perl/perl/lib-perl_0.63.bb b/recipes-perl/perl/lib-perl_0.63.bb new file mode 100644 index 0000000..7895864 --- /dev/null +++ b/recipes-perl/perl/lib-perl_0.63.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | DESCRIPTION = "This is a small simple module which simplifies the \ | ||
2 | manipulation of @INC at compile time. It is typically used to add extra \ | ||
3 | directories to Perl's search path so that later 'use' or 'require' statements \ | ||
4 | will find modules which are not located in the default search path." | ||
5 | |||
6 | SECTION = "libs" | ||
7 | LICENSE = "Artistic-1.0 | GPL-1.0+" | ||
8 | PR = "r0" | ||
9 | |||
10 | LIC_FILES_CHKSUM = "file://README;beginline=26;endline=30;md5=94b119f1a7b8d611efc89b5d562a1a50" | ||
11 | |||
12 | DEPENDS += "perl" | ||
13 | |||
14 | SRC_URI = "http://www.cpan.org/authors/id/S/SM/SMUELLER/lib-${PV}.tar.gz" | ||
15 | |||
16 | SRC_URI[md5sum] = "8607ac4e0d9d43585ec28312f52df67c" | ||
17 | SRC_URI[sha256sum] = "72f63db9220098e834d7a38231626bd0c9b802c1ec54a628e2df35f3818e5a00" | ||
18 | |||
19 | S = "${WORKDIR}/lib-${PV}" | ||
20 | |||
21 | EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}" | ||
22 | |||
23 | inherit cpan | ||
24 | |||
25 | do_compile() { | ||
26 | export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')" | ||
27 | cpan_do_compile | ||
28 | } | ||
diff --git a/recipes-perl/perl/libnetaddr-ip-perl_4.069.bb b/recipes-perl/perl/libnetaddr-ip-perl_4.069.bb new file mode 100644 index 0000000..69c2d83 --- /dev/null +++ b/recipes-perl/perl/libnetaddr-ip-perl_4.069.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | DESCRIPTION = "This package contains the IP.pm module with friends." | ||
2 | |||
3 | SECTION = "libs" | ||
4 | LICENSE = "Artistic-1.0 | GPL-1.0+" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://Copying;md5=cde580764a0fbc0f02fafde4c65d6227" | ||
7 | |||
8 | DEPENDS += "perl" | ||
9 | |||
10 | SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/NetAddr-IP-${PV}.tar.gz" | ||
11 | |||
12 | SRC_URI[md5sum] = "7721135fcea390327f75421a6b701144" | ||
13 | SRC_URI[sha256sum] = "96739afc484eca1597c4f4b520864b342169c8fdeef486778511e5a1527ba4e7" | ||
14 | |||
15 | S = "${WORKDIR}/NetAddr-IP-${PV}" | ||
16 | |||
17 | EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}" | ||
18 | |||
19 | inherit cpan | ||
20 | |||
21 | do_compile() { | ||
22 | cpan_do_compile | ||
23 | } | ||
24 | BBCLASSEXTEND = "native" | ||
25 | |||
26 | PNBLACKLIST[libnetaddr-ip-perl] = "BROKEN: doesn't build | make[2]: *** No rule to make target `config.h', needed by `Util.c'. Stop." | ||
diff --git a/recipes-perl/perl/libwhisker2-perl_2.5.bb b/recipes-perl/perl/libwhisker2-perl_2.5.bb new file mode 100644 index 0000000..a98bde0 --- /dev/null +++ b/recipes-perl/perl/libwhisker2-perl_2.5.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "Libwhisker is a Perl module geared specificly for HTTP testing." | ||
2 | |||
3 | SECTION = "libs" | ||
4 | LICENSE = "Artistic-1.0 | GPL-1.0+" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=254b8e29606fce6d1c1a4c9e32354573" | ||
7 | |||
8 | DEPENDS = "perl" | ||
9 | |||
10 | SRC_URI = "http://sourceforge.net/projects/whisker/files/libwhisker/${PV}/libwhisker2-${PV}.tar.gz \ | ||
11 | file://libwhisker2.patch" | ||
12 | |||
13 | SRC_URI[md5sum] = "7cc1718dddde8f9a439d5622ae2f37eb" | ||
14 | SRC_URI[sha256sum] = "f45a1cf2ad2637b29dd1b13d7221ea12e3923ea09d107ced446400f19070a42f" | ||
15 | |||
16 | S = "${WORKDIR}/libwhisker2-2.5" | ||
17 | |||
18 | inherit cpan-base perlnative | ||
19 | |||
20 | do_install() { | ||
21 | install -d 755 ${D}${PERLLIBDIRS}/vendor_perl/${PERLVERSION} | ||
22 | install -d 755 ${D}${datadir}/perl/${PERLVERSION} | ||
23 | oe_runmake install DESTDIR=${D} INSTALLDIR=${PERLLIBDIRS}/vendor_perl/${PERLVERSION} MANDIR=${datadir}/perl/${PERLVERSION} | ||
24 | } | ||