2018-06-09 00:06:58 +02:00
|
|
|
|
# Tanım: OpenSSL'yi kullanmak için Perl uzantısı
|
|
|
|
|
# URL: http://search.cpan.org/dist/Net-SSLeay
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2018-07-31 09:10:01 +02:00
|
|
|
|
# Grup: ağ
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
_cpanisim=Net-SSLeay
|
|
|
|
|
isim=perl-net-ssleay
|
|
|
|
|
surum=1.63
|
|
|
|
|
devir=1
|
|
|
|
|
|
|
|
|
|
kaynak=(http://www.cpan.org/authors/id/M/MI/MIKEM/${_cpanname}-$surum.tar.gz)
|
|
|
|
|
|
|
|
|
|
derle() {
|
|
|
|
|
cd ${_cpanname}-$surum
|
|
|
|
|
sed -i \
|
|
|
|
|
-e "/\$opts->{optimize} = '-O2 -g';/d" \
|
|
|
|
|
inc/Module/Install/PRIVATE/Net/SSLeay.pm
|
|
|
|
|
|
|
|
|
|
export OPTIMIZE="$CFLAGS"
|
|
|
|
|
export OPENSSL_PREFIX=/usr
|
|
|
|
|
|
|
|
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL -- INSTALLDIRS=vendor
|
|
|
|
|
make
|
|
|
|
|
make install DESTDIR=$PKG
|
|
|
|
|
|
|
|
|
|
install -D -m644 README $PKG/usr/share/licenses/$isim/LICENSE
|
|
|
|
|
find $PKG \
|
|
|
|
|
-name '*.bs' -or \
|
|
|
|
|
-name '.packlist' -or \
|
|
|
|
|
-name 'perllocal.pod' | xargs rm
|
|
|
|
|
}
|