2021-07-01 21:19:30 +03:00
|
|
|
#!/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 \
|
2021-07-01 21:19:30 +03:00
|
|
|
--libdir=lib \
|
|
|
|
shared \
|
|
|
|
zlib-dynamic
|
|
|
|
make
|
|
|
|
sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
|
|
|
|
make MANSUFFIX=ssl 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
|
|
|
|
}
|