2010-03-13 23:25:19 +08:00
|
|
|
pkgname=openssl
|
2018-03-28 07:04:51 +08:00
|
|
|
_ver=1.0.2o
|
2010-06-07 19:43:02 +08:00
|
|
|
# use a pacman compatible version scheme
|
|
|
|
pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
|
2016-05-04 06:48:27 +08:00
|
|
|
pkgrel=1
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
|
2012-11-28 08:14:07 +08:00
|
|
|
arch=('x86_64')
|
2010-04-04 22:20:41 +08:00
|
|
|
url='https://www.openssl.org'
|
2010-03-13 23:25:19 +08:00
|
|
|
license=('custom:BSD')
|
2014-04-08 13:49:33 +08:00
|
|
|
depends=('zlib' 'perl')
|
2010-03-13 23:25:19 +08:00
|
|
|
optdepends=('ca-certificates')
|
|
|
|
options=('!makeflags')
|
|
|
|
backup=('etc/ssl/openssl.cnf')
|
2010-06-07 19:43:02 +08:00
|
|
|
source=("https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz"
|
2014-04-08 13:49:33 +08:00
|
|
|
"https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz.asc"
|
2010-04-04 22:20:41 +08:00
|
|
|
'no-rpath.patch'
|
2016-03-02 07:30:32 +08:00
|
|
|
'ssl3-test-failure.patch'
|
2014-06-05 21:42:35 +08:00
|
|
|
'ca-dir.patch')
|
2018-03-28 07:04:51 +08:00
|
|
|
md5sums=('44279b8557c3247cbe324e2322ecd114'
|
2014-04-08 13:49:33 +08:00
|
|
|
'SKIP'
|
2010-04-04 22:20:41 +08:00
|
|
|
'dc78d3d06baffc16217519242ce92478'
|
2016-03-02 07:30:32 +08:00
|
|
|
'62fc492252edd3283871632bb77fadbe'
|
2014-06-05 21:42:35 +08:00
|
|
|
'3bf51be3a1bbd262be46dc619f92aa90')
|
2015-07-10 02:21:04 +08:00
|
|
|
|
2015-06-14 20:39:26 +08:00
|
|
|
# Matt Caswell
|
|
|
|
validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491')
|
2010-04-04 22:20:41 +08:00
|
|
|
|
2014-04-08 13:49:33 +08:00
|
|
|
prepare() {
|
2010-06-07 19:43:02 +08:00
|
|
|
cd $srcdir/$pkgname-$_ver
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
# remove rpath: http://bugs.archlinux.org/task/14367
|
2011-02-09 20:29:56 +08:00
|
|
|
patch -p0 -i $srcdir/no-rpath.patch
|
2016-03-02 07:30:32 +08:00
|
|
|
|
|
|
|
# disable a test that fails when ssl3 is disabled
|
|
|
|
patch -p1 -i $srcdir/ssl3-test-failure.patch
|
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
# set ca dir to /etc/ssl by default
|
2011-02-09 20:29:56 +08:00
|
|
|
patch -p0 -i $srcdir/ca-dir.patch
|
2014-04-08 13:49:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-$_ver
|
|
|
|
|
|
|
|
openssltarget='linux-x86_64'
|
|
|
|
optflags='enable-ec_nistp_64_gcc_128'
|
2016-03-02 07:30:32 +08:00
|
|
|
# not disable ssl3-method yet, keep more compatibility
|
2012-11-28 08:14:07 +08:00
|
|
|
./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
|
2016-03-02 07:30:32 +08:00
|
|
|
shared zlib no-ssl3 ${optflags} \
|
2012-11-28 08:14:07 +08:00
|
|
|
"${openssltarget}" \
|
2014-04-08 13:49:33 +08:00
|
|
|
"-Wa,--noexecstack ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-11-28 08:14:07 +08:00
|
|
|
make depend
|
2011-02-09 20:29:56 +08:00
|
|
|
make
|
2012-11-28 08:14:07 +08:00
|
|
|
}
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-11-28 08:14:07 +08:00
|
|
|
check() {
|
|
|
|
cd $srcdir/$pkgname-$_ver
|
2010-03-13 23:25:19 +08:00
|
|
|
# the test fails due to missing write permissions in /etc/ssl
|
|
|
|
# revert this patch for make test
|
2012-11-28 08:14:07 +08:00
|
|
|
patch -p0 -R -i $srcdir/ca-dir.patch
|
|
|
|
make test
|
|
|
|
patch -p0 -i $srcdir/ca-dir.patch
|
2010-03-13 23:25:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2010-06-07 19:43:02 +08:00
|
|
|
cd $srcdir/$pkgname-$_ver
|
2013-03-28 20:54:14 +08:00
|
|
|
make INSTALL_PREFIX=$pkgdir MANDIR=/usr/share/man MANSUFFIX=ssl install
|
2010-03-13 23:25:19 +08:00
|
|
|
install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
}
|