20 lines
503 B
Bash
20 lines
503 B
Bash
#!/bin/sh
|
|
pkg_ver="todo"
|
|
|
|
pkg_install(){
|
|
git clone https://github.com/openssl/openssl.git
|
|
cd openssl
|
|
./config --prefix=$1/usr \
|
|
--openssldir=$1/etc/ssl \
|
|
--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
|
|
}
|