2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
2022-05-03 22:35:55 +02:00
|
|
|
# Website : https://pozol.eu
|
2022-03-20 13:19:37 +01:00
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=openssl
|
2022-07-06 01:34:43 +02:00
|
|
|
_ver=1.1.1q
|
2022-03-20 13:19:37 +01:00
|
|
|
# use a pacman compatible version scheme
|
|
|
|
pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
|
|
|
|
## Joborun: All this manouver with _ver instead of pkgver is for naming the pkg 1.1.1.l instead of 1.1.1l
|
|
|
|
## Does it really affect alphanumeric order as 1l, while 1.l works better? Just in case you were wondering, I decided to leave it in tact.
|
|
|
|
pkgrel=01
|
|
|
|
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://www.openssl.org'
|
|
|
|
depends=('glibc')
|
|
|
|
makedepends=('perl')
|
|
|
|
optdepends=('ca-certificates' 'perl')
|
|
|
|
replaces=('openssl-perl' 'openssl-doc')
|
|
|
|
backup=('etc/ssl/openssl.cnf')
|
|
|
|
source=("https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz"{,.asc}
|
|
|
|
'ca-dir.patch')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/$pkgname-$_ver"
|
|
|
|
|
|
|
|
# set ca dir to /etc/ssl by default
|
|
|
|
patch -p0 -i "$srcdir/ca-dir.patch"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$_ver"
|
|
|
|
|
|
|
|
# mark stack as non-executable: http://bugs.archlinux.org/task/12434
|
|
|
|
./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
|
|
|
|
shared no-ssl3-method enable-ec_nistp_64_gcc_128 linux-x86_64 \
|
|
|
|
"-Wa,--noexecstack ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"
|
|
|
|
|
|
|
|
make depend
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$srcdir/$pkgbase-$_ver"
|
|
|
|
|
|
|
|
# the test fails due to missing write permissions in /etc/ssl
|
|
|
|
# revert this patch for make test
|
|
|
|
patch -p0 -R -i "$srcdir/ca-dir.patch"
|
|
|
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
patch -p0 -i "$srcdir/ca-dir.patch"
|
|
|
|
# re-run make to re-generate CA.pl from th patched .in file.
|
|
|
|
make apps/CA.pl
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$_ver"
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" MANDIR=/usr/share/man MANSUFFIX=ssl install_sw install_ssldirs install_man_docs
|
|
|
|
|
|
|
|
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|
|
|
|
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
|
|
|
|
license=('custom:BSD')
|
|
|
|
|
|
|
|
validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491'
|
|
|
|
'7953AC1FBC3DC8B3B292393ED5E9E43F7DF9EE8C')
|
|
|
|
|
2022-07-06 01:34:43 +02:00
|
|
|
sha256sums=(d7939ce614029cdff0b6c20f0e2e5703158a489a72b2507b8bd51bf8c8fd10ca # openssl-1.1.1q.tar.gz
|
|
|
|
3ca1d670075b9dcd213071c701a5334cf6a206cf7686ae6db4e79db3090ad9ad # openssl-1.1.1q.tar.gz.asc
|
2022-03-20 13:19:37 +01:00
|
|
|
75aa8c2c638c8a3ebfd9fa146fc61c7ff878fc997dc6aa10d39e4b2415d669b2) # ca-dir.patch
|