repo/openssl/PACKAGE

21 lines
516 B
Text
Raw Permalink Normal View History

#!/bin/sh
pkg_ver="todo"
pkg_install(){
git clone https://github.com/openssl/openssl.git
cd openssl
2021-07-02 00:22:51 +03:00
./config --prefix=$1/usr \
--openssldir=$1/etc/ssl \
--libdir=lib \
shared \
zlib-dynamic
make
sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
2021-07-02 00:29:58 +03:00
make MANSUFFIX=ssl DESTDIR="$1" install
mv -v /usr/share/doc/openssl /usr/share/doc/openssl-1.1.1d
cp -vfr doc/* /usr/share/doc/openssl-1.1.1d
}
pkg_uninstall(){
make uninstall
}