Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:AntMan
openssl
PKGBUILD
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PKGBUILD of Package openssl
# Maintainer: Pierre Schmitz <pierre@archlinux.de> pkgname=openssl pkgver=3.1.2 pkgrel=1.2 pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security' arch=('x86_64') url='https://www.openssl.org' license=('Apache') depends=('glibc') makedepends=('perl') optdepends=('ca-certificates' 'perl') replaces=('openssl-perl' 'openssl-doc') provides=('libcrypto.so' 'libssl.so') backup=('etc/ssl/openssl.cnf') buildenv=(!check) source=("https://www.openssl.org/source/${pkgname}-${pkgver}.tar.gz"{,.asc} 'ca-dir.patch') sha256sums=('a0ce69b8b97ea6a35b96875235aa453b966ba3cba8af2de23657d8b6767d6539' 'SKIP' '0a32d9ca68e8d985ce0bfef6a4c20b46675e06178cc2d0bf6d91bd6865d648b7') validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491' '7953AC1FBC3DC8B3B292393ED5E9E43F7DF9EE8C' 'A21FAB74B0088AA361152586B8EF1A6BA9DA2D5C' 'EFC0A467D613CB83C7ED6D30D894E2CE8B3D79F5') prepare() { cd "$srcdir/$pkgname-$pkgver" # set ca dir to /etc/ssl by default patch -Np1 -i "$srcdir/ca-dir.patch" } build() { cd "$srcdir/$pkgname-$pkgver" unset CFLAGS unset CPPFLAGS unset CXXFLAGS unset LDFLAGS unset LTOFLAGS unset RUSTFLAGS unset DEBUG_CFLAGS unset DEBUG_CXXFLAGS unset DEBUG_RUSTFLAGS export CFLAGS="-march=alderlake -mtune=alderlake -O3 -fno-plt -fomit-frame-pointer -fno-common -finline-functions -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -fipa-pta -fno-semantic-interposition -fopenmp" export CXXFLAGS="$CFLAGS" export LDFLAGS="-Wl,-O3,--sort-common,--as-needed,--strip-all,--hash-style=gnu,-Bsymbolic-functions" export RUSTFLAGS="-Copt-level=3 -Ctarget-cpu=alderlake" # mark stack as non-executable: http://bugs.archlinux.org/task/12434 ./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \ shared enable-ktls enable-ec_nistp_64_gcc_128 linux-x86_64 \ "-Wa,--noexecstack ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}" make depend make } check() { cd "$srcdir/$pkgbase-$pkgver" # the test fails due to missing write permissions in /etc/ssl # revert this patch for make test patch -Rp1 -i "$srcdir/ca-dir.patch" make HARNESS_JOBS=$(nproc) test patch -Np1 -i "$srcdir/ca-dir.patch" # re-run make to re-generate CA.pl from the patched .in file. make apps/CA.pl } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" MANDIR=/usr/share/man MANSUFFIX=ssl install_sw install_ssldirs install_man_docs install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor