|
|
|
@ -24,10 +24,7 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# versions of individual parts |
|
|
|
|
%define P_archname i386-freebsd |
|
|
|
|
%define V_perl 5.6.1 |
|
|
|
|
%define V_digest_sha1 2.01 |
|
|
|
|
%define V_class_loader 2.02 |
|
|
|
|
%define V_digest_md2 2.00 |
|
|
|
|
%define V_digest_md4 1.1 |
|
|
|
|
%define V_digest_md5 2.20 |
|
|
|
@ -48,8 +45,7 @@
|
|
|
|
|
%define V_crypt_null 1.02 |
|
|
|
|
%define V_crypt_ecb 1.1 |
|
|
|
|
%define V_crypt_cbc 2.02 |
|
|
|
|
#%define V_crypt_cbceasy 0.24 |
|
|
|
|
#%define V_crypt_random 1.11 |
|
|
|
|
#%define V_crypt_random 1.11 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: perl-crypto |
|
|
|
@ -60,47 +56,44 @@ Packager: The OpenPKG Project
|
|
|
|
|
Distribution: OpenPKG [REL] |
|
|
|
|
Group: Language |
|
|
|
|
License: GPL/Artistic |
|
|
|
|
Version: 20020512 |
|
|
|
|
Release: 20020512 |
|
|
|
|
Version: 20020514 |
|
|
|
|
Release: 20020514 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://www.cpan.org/modules/by-module/Digest/Digest-SHA1-%{V_digest_sha1}.tar.gz |
|
|
|
|
Source1: http://www.cpan.org/modules/by-module/Class/Class-Loader-%{V_class_loader}.tar.gz |
|
|
|
|
Source2: http://www.cpan.org/modules/by-module/Digest/Digest-MD2-%{V_digest_md2}.tar.gz |
|
|
|
|
Source3: http://www.cpan.org/modules/by-module/Digest/Digest-MD4-%{V_digest_md4}.tar.gz |
|
|
|
|
Source4: http://www.cpan.org/modules/by-module/Digest/Digest-MD5-%{V_digest_md5}.tar.gz |
|
|
|
|
Source5: http://www.cpan.org/modules/by-module/Digest/Digest-HMAC-%{V_digest_hmac}.tar.gz |
|
|
|
|
Source6: http://www.cpan.org/modules/by-module/Crypt/Crypt-RIPEMD160-%{V_crypt_ripemd160}.tar.gz |
|
|
|
|
Source7: http://www.cpan.org/modules/by-module/Crypt/Crypt-Enigma-%{V_crypt_enigma}.tar.gz |
|
|
|
|
Source8: http://www.cpan.org/modules/by-module/Crypt/Crypt-UnixCrypt-%{V_crypt_unixcrypt}.tar.gz |
|
|
|
|
Source9: http://www.cpan.org/modules/by-module/Crypt/Crypt-PasswdMD5-%{V_crypt_passwdmd5}.tar.gz |
|
|
|
|
Source10: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES-%{V_crypt_des}.tar.gz |
|
|
|
|
Source11: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES_EDE3-%{V_crypt_des_ede3}.tar.gz |
|
|
|
|
Source12: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC4-%{V_crypt_rc4}.tar.gz |
|
|
|
|
Source13: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC5-%{V_crypt_rc5}.tar.gz |
|
|
|
|
Source14: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC6-%{V_crypt_rc6}.tar.gz |
|
|
|
|
Source15: http://www.cpan.org/modules/by-module/Crypt/Crypt-GOST-%{V_crypt_ghost}.tar.gz |
|
|
|
|
Source16: http://www.cpan.org/modules/by-module/Crypt/Crypt-Blowfish-%{V_crypt_blowfish}.tar.gz |
|
|
|
|
Source17: http://www.cpan.org/modules/by-module/Crypt/Crypt-Twofish-%{V_crypt_twofish}.tar.gz |
|
|
|
|
Source18: http://www.cpan.org/modules/by-module/Crypt/Crypt-Rot13-%{V_crypt_rot13}.tar.gz |
|
|
|
|
Source19: http://www.cpan.org/modules/by-module/Crypt/Crypt-NULL-%{V_crypt_null}.tar.gz |
|
|
|
|
Source20: http://www.cpan.org/modules/by-module/Crypt/Crypt-ECB-%{V_crypt_ecb}.tar.gz |
|
|
|
|
Source21: http://www.cpan.org/modules/by-module/Crypt/Crypt-CBC-%{V_crypt_cbc}.tar.gz |
|
|
|
|
#Source22: http://www.cpan.org/modules/by-module/Crypt/Crypt-CBCeasy-%{V_crypt_cbceasy}.tar.gz |
|
|
|
|
#Source23: http://www.cpan.org/modules/by-module/Crypt/Crypt-Random-%{V_crypt_random}.tar.gz |
|
|
|
|
Source1: http://www.cpan.org/modules/by-module/Digest/Digest-MD2-%{V_digest_md2}.tar.gz |
|
|
|
|
Source2: http://www.cpan.org/modules/by-module/Digest/Digest-MD4-%{V_digest_md4}.tar.gz |
|
|
|
|
Source3: http://www.cpan.org/modules/by-module/Digest/Digest-MD5-%{V_digest_md5}.tar.gz |
|
|
|
|
Source4: http://www.cpan.org/modules/by-module/Digest/Digest-HMAC-%{V_digest_hmac}.tar.gz |
|
|
|
|
Source5: http://www.cpan.org/modules/by-module/Crypt/Crypt-RIPEMD160-%{V_crypt_ripemd160}.tar.gz |
|
|
|
|
Source6: http://www.cpan.org/modules/by-module/Crypt/Crypt-Enigma-%{V_crypt_enigma}.tar.gz |
|
|
|
|
Source7: http://www.cpan.org/modules/by-module/Crypt/Crypt-UnixCrypt-%{V_crypt_unixcrypt}.tar.gz |
|
|
|
|
Source8: http://www.cpan.org/modules/by-module/Crypt/Crypt-PasswdMD5-%{V_crypt_passwdmd5}.tar.gz |
|
|
|
|
Source9: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES-%{V_crypt_des}.tar.gz |
|
|
|
|
Source10: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES_EDE3-%{V_crypt_des_ede3}.tar.gz |
|
|
|
|
Source11: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC4-%{V_crypt_rc4}.tar.gz |
|
|
|
|
Source12: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC5-%{V_crypt_rc5}.tar.gz |
|
|
|
|
Source13: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC6-%{V_crypt_rc6}.tar.gz |
|
|
|
|
Source14: http://www.cpan.org/modules/by-module/Crypt/Crypt-GOST-%{V_crypt_ghost}.tar.gz |
|
|
|
|
Source15: http://www.cpan.org/modules/by-module/Crypt/Crypt-Blowfish-%{V_crypt_blowfish}.tar.gz |
|
|
|
|
Source16: http://www.cpan.org/modules/by-module/Crypt/Crypt-Twofish-%{V_crypt_twofish}.tar.gz |
|
|
|
|
Source17: http://www.cpan.org/modules/by-module/Crypt/Crypt-Rot13-%{V_crypt_rot13}.tar.gz |
|
|
|
|
Source18: http://www.cpan.org/modules/by-module/Crypt/Crypt-NULL-%{V_crypt_null}.tar.gz |
|
|
|
|
Source19: http://www.cpan.org/modules/by-module/Crypt/Crypt-ECB-%{V_crypt_ecb}.tar.gz |
|
|
|
|
Source20: http://www.cpan.org/modules/by-module/Crypt/Crypt-CBC-%{V_crypt_cbc}.tar.gz |
|
|
|
|
#Source21: http://www.cpan.org/modules/by-module/Crypt/Crypt-Random-%{V_crypt_random}.tar.gz |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
Prefix: %{l_prefix} |
|
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20020206, perl, gcc, gzip |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20020206, perl |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-util, gcc, gzip |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20020206, perl, perl-util |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
Perl module bundle related to Cryptography. |
|
|
|
|
- Digest::SHA1 (%{V_digest_sha1}) |
|
|
|
|
- Class::Loader (%{V_class_loader}) |
|
|
|
|
- Digest::MD2 (%{V_digest_md2}) |
|
|
|
|
- Digest::MD4 (%{V_digest_md4}) |
|
|
|
|
- Digest::MD5 (%{V_digest_md5}) |
|
|
|
@ -121,8 +114,7 @@ AutoReqProv: no
|
|
|
|
|
- Crypt::NULL (%{V_crypt_null}) |
|
|
|
|
- Crypt::ECB (%{V_crypt_ecb}) |
|
|
|
|
- Crypt::CBC (%{V_crypt_cbc}) |
|
|
|
|
# - Crypt::CBCeasy (%{V_crypt_cbceasy}) |
|
|
|
|
# - Crypt::Random (%{V_crypt_random}) |
|
|
|
|
# - Crypt::Random (%{V_crypt_random}) |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup0 -q -c -n %{name}-%{version} |
|
|
|
@ -134,15 +126,15 @@ AutoReqProv: no
|
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/lib/perl5 |
|
|
|
|
|
|
|
|
|
# create a wrapper script which finds the includes |
|
|
|
|
# FIXME eval `grep "^archname=" $RPM_BUILD_ROOT%{l_prefix}/lib/perl5/%{V_perl}/*/Config.pm` |
|
|
|
|
eval `%{l_prefix}/bin/perl -V:version -V:archname` |
|
|
|
|
perl=$RPM_BUILD_ROOT/perl |
|
|
|
|
echo "#!/bin/sh" >$perl |
|
|
|
|
echo "exec %{l_prefix}/bin/perl \\" >>$perl |
|
|
|
|
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/%{V_perl} \\" >>$perl |
|
|
|
|
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/%{V_perl}/%{P_archname} \\" >>$perl |
|
|
|
|
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/${version} \\" >>$perl |
|
|
|
|
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/${version}/${archname} \\" >>$perl |
|
|
|
|
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl \\" >>$perl |
|
|
|
|
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl/%{V_perl} \\" >>$perl |
|
|
|
|
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl/%{V_perl}/%{P_archname} \\" >>$perl |
|
|
|
|
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl/${version} \\" >>$perl |
|
|
|
|
echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl/${version}/${archname} \\" >>$perl |
|
|
|
|
echo " \"\$@\"" >>$perl |
|
|
|
|
chmod a+x $perl |
|
|
|
|
|
|
|
|
@ -151,7 +143,7 @@ AutoReqProv: no
|
|
|
|
|
%{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} \ |
|
|
|
|
%{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} \ |
|
|
|
|
%{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE17} \ |
|
|
|
|
%{SOURCE18} %{SOURCE19} %{SOURCE20} %{SOURCE21} |
|
|
|
|
%{SOURCE18} %{SOURCE19} %{SOURCE20} |
|
|
|
|
do |
|
|
|
|
%{l_gzip} -dc $mod | %{l_tar} xf - |
|
|
|
|
dir=`echo "$mod" | sed -e 's;^.*/\([^/]*\)\.tar\.gz$;\1;'` |
|
|
|
|