core/openssl/Pkgfile
Juergen Daubert 3b84e89b81 openssl: cleanup Pkgfile
- split 'make' and 'make install' to allow parallel build
- use selective make install rule to avoid the installation
  of html docs and remove them afterwards
- we use config instead of Configure because detection of
  arch works just fine that way
- we must define LIBDIR to avoid installation into lib64
2019-03-17 13:38:55 +01:00

29 lines
729 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
name=openssl
version=1.1.1b
release=1
source=(http://www.openssl.org/source/$name-$version.tar.gz \
mksslcert.sh)
build() {
cd $name-$version
./config --prefix=/usr \
--libdir=lib \
--openssldir=/etc/ssl \
shared \
enable-ec_nistp_64_gcc_128
sed -i "s|-O3|$CFLAGS|" 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
}