iglunix/base/openssl/build.sh

56 lines
1.2 KiB
Bash
Raw Normal View History

2021-09-11 08:24:20 +00:00
pkgname=openssl
pkgver=3.0.0
ext="dev"
2022-04-21 10:27:25 +00:00
auto_cross
2021-09-11 08:24:20 +00:00
fetch() {
curl "https://www.openssl.org/source/openssl-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
2022-04-22 09:59:57 +00:00
PREFIX=/usr
[ -z "$FOR_CROSS" ] || PREFIX=$FOR_CROSS_DIR
2021-09-11 08:24:20 +00:00
build() {
cd $pkgname-$pkgver
./Configure \
2022-04-22 10:01:22 +00:00
--prefix=/$PREFIX \
2021-09-11 08:24:20 +00:00
--openssldir=/etc/ssl \
--libdir=lib \
linux-generic64 \
2021-09-11 08:24:20 +00:00
shared no-zlib no-async \
no-comp no-idea no-mdc2 \
no-rc5 no-ec2m no-sm2 \
no-sm4 -no-ssl2 no-ssl3 \
no-seed no-weak-ssl-ciphers \
-Wa,--noexecstack
2022-04-21 10:28:54 +00:00
make
2021-09-11 08:24:20 +00:00
}
package() {
cd $pkgname-$pkgver
2022-04-21 10:54:33 +00:00
make install_sw DESTDIR=$pkgdir
2022-04-22 09:59:57 +00:00
if [ -z "$FOR_CROSS" ]; then
install -d $pkgdir/usr/sbin
install -Dm755 ../../update-ca.sh $pkgdir/usr/sbin/update-ca
else
rm -rf $pkgdir/$PREFIX/bin
fi
2021-09-11 08:24:20 +00:00
}
2022-02-12 13:32:06 +00:00
backup() {
return
}
2021-09-11 08:24:20 +00:00
license() {
cd $pkgname-$pkgver
echo 'Copyright 20xx-20yy The OpenSSL Project Authors. All Rights Reserved.'
echo
echo 'Licensed under the Apache License 2.0 (the "License"). You may not use'
echo 'this file except in compliance with the License. You can obtain a copy'
echo 'in the file LICENSE in the source distribution or at'
echo 'https://www.openssl.org/source/license.html'
2021-09-11 08:24:20 +00:00
}