30 lines
787 B
Plaintext

# Description: Secure Sockets Layer and Transport Layer Security tools
# URL: http://www.openssl.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
name=openssl
version=1.1.1q
release=1
source=(http://www.openssl.org/source/$name-$version.tar.gz \
mksslcert.sh)
build() {
cd $name-$version
export MAKEFLAGS="$MAKEFLAGS -j1"
./config --prefix=/usr \
--openssldir=/etc/ssl \
shared
sed -e "s|-O3|$CFLAGS|" -e "s|\-mcpu=cortex-a7||" -e "s|-march=armv7-a||g" -i Makefile
make depend
make
make MANSUFFIX=ssl DESTDIR=$PKG install_sw install_ssldirs install_man_docs
find $PKG -name "*fips*" -delete
install -D -m 755 $SRC/mksslcert.sh $PKG/usr/bin/mksslcert
}