View | Details | Raw Unified | Return to bug 275112
Collapse All | Expand All

(-)b/security/p5-Crypt-OpenSSL-AES/Makefile (-3 / +19 lines)
Lines 1-6 Link Here
1
PORTNAME=	Crypt-OpenSSL-AES
1
PORTNAME=	Crypt-OpenSSL-AES
2
PORTVERSION=	0.02
2
PORTVERSION=	0.19
3
PORTREVISION=	3
4
CATEGORIES=	security perl5
3
CATEGORIES=	security perl5
5
MASTER_SITES=	CPAN
4
MASTER_SITES=	CPAN
6
PKGNAMEPREFIX=	p5-
5
PKGNAMEPREFIX=	p5-
Lines 9-16 MAINTAINER= jdferrell3@yahoo.com Link Here
9
COMMENT=	Perl wrapper around OpenSSL's AES library
8
COMMENT=	Perl wrapper around OpenSSL's AES library
10
WWW=		https://metacpan.org/release/Crypt-OpenSSL-AES
9
WWW=		https://metacpan.org/release/Crypt-OpenSSL-AES
11
10
12
USES=		perl5 ssl
11
LICENSE=	ART10 GPLv1+
12
LICENSE_COMB=	dual
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
15
BUILD_DEPENDS=	${RUN_DEPENDS}
16
RUN_DEPENDS=	p5-Crypt-OpenSSL-Guess>=0.10:security/p5-Crypt-OpenSSL-Guess \
17
		p5-File-Which>=0:sysutils/p5-File-Which
18
19
USES=		perl5 shebangfix ssl
13
USE_PERL5=	configure
20
USE_PERL5=	configure
21
SHEBANG_FILES=	t/*
22
perl_OLD_CMD=	.*perl
14
MAKE_ARGS+=	PASTHRU_INC=-I${OPENSSLINC}
23
MAKE_ARGS+=	PASTHRU_INC=-I${OPENSSLINC}
15
24
25
pre-configure:
26
	${REINPLACE_CMD} -e 's|SSLBIN|${OPENSSLBASE}/bin/openssl|g' ${WRKSRC}/t/00-openssl-version.t
27
	${REINPLACE_CMD} -e 's|SSLBIN|${OPENSSLBASE}/bin/openssl|g' ${WRKSRC}/t/09-key-size.t
28
29
post-install:
30
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/${PERL_VER}/auto/Crypt/OpenSSL/AES/AES.so
31
16
.include <bsd.port.mk>
32
.include <bsd.port.mk>
(-)b/security/p5-Crypt-OpenSSL-AES/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (Crypt-OpenSSL-AES-0.02.tar.gz) = b66fab514edf97fc32f58da257582704a210c2b35e297d5c31b7fa2ffd08e908
1
TIMESTAMP = 1699915593
2
SIZE (Crypt-OpenSSL-AES-0.02.tar.gz) = 12487
2
SHA256 (Crypt-OpenSSL-AES-0.19.tar.gz) = 35a8af2ebdc26280a4f5916c1a97c3431e7cbef3e7451e1e917f7cce4d8c9c59
3
SIZE (Crypt-OpenSSL-AES-0.19.tar.gz) = 156698
(-)b/security/p5-Crypt-OpenSSL-AES/files/patch-AES.xs (+11 lines)
Added Link Here
1
--- AES.xs.orig	2023-11-10 22:50:53 UTC
2
+++ AES.xs
3
@@ -2,7 +2,7 @@
4
 #include "EXTERN.h"
5
 #include "perl.h"
6
 #include "XSUB.h"
7
-#include "openssl/opensslv.h"
8
+#include <openssl/opensslv.h>
9
 
10
 #include <openssl/aes.h>
11
 #if OPENSSL_VERSION_NUMBER >= 0x00908000L
(-)b/security/p5-Crypt-OpenSSL-AES/files/patch-t_00-openssl-version.t (+11 lines)
Added Link Here
1
--- t/00-openssl-version.t.orig	2023-11-10 22:50:53 UTC
2
+++ t/00-openssl-version.t
3
@@ -3,7 +3,7 @@ use Test::More tests => 1;
4
 use File::Which qw(which);
5
 use Test::More tests => 1;
6
 
7
-my $openssl = which('openssl');
8
+my $openssl = "SSLBIN";
9
 like($openssl, qr/openssl/, "Found openssl");
10
 print "$openssl version: ";
11
 
(-)b/security/p5-Crypt-OpenSSL-AES/files/patch-t_09-key-size.t (-1 / +15 lines)
Added Link Here
0
- 
1
--- t/09-key-size.t.orig	2023-11-10 22:50:53 UTC
2
+++ t/09-key-size.t
3
@@ -19,9 +19,9 @@ ok($c->decrypt($c->encrypt("Hello World. 123")) eq "He
4
 ok($c->decrypt($encrypted) eq $plaintext, "decrypt with key length 32 (AES-256-ECB)");
5
 ok($c->decrypt($c->encrypt("Hello World. 123")) eq "Hello World. 123", "Simple String Encrypted/Decrypted Successfully with key length 32 AES-256-ECB");
6
 
7
-# echo -n "ABCDABCDABCDABCD"| openssl enc -nopad -e -aes-256-ecb -K '3031323330313233303132333031323330313233303132333031323330313233' | xxd -i
8
-# echo -n "ABCDABCDABCDABCD"| openssl enc -nopad -e -aes-192-ecb -K '303132333031323330313233303132333031323330313233'
9
-# echo -n "ABCDABCDABCDABCD"| openssl enc -nopad -e -aes-128-ecb -K '30313233303132333031323330313233' | xxd -i
10
+# echo -n "ABCDABCDABCDABCD"| SSLBIN enc -nopad -e -aes-256-ecb -K '3031323330313233303132333031323330313233303132333031323330313233' | xxd -i
11
+# echo -n "ABCDABCDABCDABCD"| SSLBIN enc -nopad -e -aes-192-ecb -K '303132333031323330313233303132333031323330313233'
12
+# echo -n "ABCDABCDABCDABCD"| SSLBIN enc -nopad -e -aes-128-ecb -K '30313233303132333031323330313233' | xxd -i
13
 
14
 #
15
 # test AES-192-ECB

Return to bug 275112