openssl
This commit is contained in:
1 parent
3a10e0052b
commit
2fe4ebc819
2 files changed
+57
No files matched your search
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh -e
|
||||||
|
# fork from KISS linux
|
||||||
|
|
||||||
|
[ -w /etc/ssl ] || {
|
||||||
|
printf '%s\n' "${0##*/}: root required to update cert." >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /etc/ssl && {
|
||||||
|
wget -O cacert.pem https://curl.haxx.se/ca/cacert.pem
|
||||||
|
mv -f cacert.pem cert.pem
|
||||||
|
printf '%s\n' "${0##*/}: updated cert.pem"
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='openssl'
|
||||||
|
release='1'
|
||||||
|
version='1.1.1s'
|
||||||
|
url='https://www.openssl.org/source/'
|
||||||
|
description='Package description missing'
|
||||||
|
email=' aliriza.keskin@pardus.org.tr'
|
||||||
|
maintainer=' aliriza'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://www.openssl.org/source/openssl-$version.tar.gz"
|
||||||
|
"https://curl.haxx.se/ca/cacert.pem"
|
||||||
|
"update-certdata.sh")
|
||||||
|
depends=( )
|
||||||
|
makedepends=( )
|
||||||
|
md5sums=('077f69d357758c7d6ef686f813e16f30'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP')
|
||||||
|
arch=('x86_64')
|
||||||
|
group=(system.base)
|
||||||
|
|
||||||
|
cd $name-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
./Configure --prefix=/usr \
|
||||||
|
--openssldir=/etc/ssl \
|
||||||
|
--libdir=lib64 \
|
||||||
|
shared linux-x86_64
|
||||||
|
}
|
||||||
|
|
||||||
|
build(){
|
||||||
|
make depend -j`nproc`
|
||||||
|
make -j`nproc`
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
mkdir -p "${DESTDIR}/etc/ssl/"
|
||||||
|
install ../update-certdata.sh "${DESTDIR}/etc/ssl/"
|
||||||
|
install ../cacert.pem "${DESTDIR}/etc/ssl/cert.pem"
|
||||||
|
make DESTDIR="${DESTDIR}" \
|
||||||
|
install_sw \
|
||||||
|
install_ssldirs \
|
||||||
|
install_man_docs -j`nproc`
|
||||||
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user