2017-07-12 23:50:21 +00:00
|
|
|
# Maintainer : Christian Rebischke <Chris.Rebischke@archlinux.org>
|
|
|
|
# Contributor: dkorzhevin <dkorzhevin at gmail dot com>
|
|
|
|
# Contributor: Thermi <noel [at] familie-kuntze dot de>
|
|
|
|
# Contributor: nikicat <develniks at gmail dot com>
|
|
|
|
# Contributor: danilo <gezuru at gmail dot com>
|
|
|
|
# Contributor: Jason Begley <jayray at digitalgoat dot com>
|
|
|
|
# Contributor: Ray Kohler <ataraxia937 at gmail dot com>
|
|
|
|
# Contributor: Daniel Riedemann <daniel.riedemann [at] googlemail [dot] com>
|
|
|
|
# Contributor: 458italia <svenskaparadox [at] gmail dot com>
|
|
|
|
# Contributor: Thermi <noel [at] familie-kuntze dot com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove --enable-aesni from configure
|
|
|
|
|
|
|
|
pkgname=strongswan
|
2023-12-20 02:27:47 +00:00
|
|
|
pkgver=5.9.13
|
2024-04-27 16:10:53 +00:00
|
|
|
pkgrel=2
|
2018-10-01 23:48:42 +00:00
|
|
|
pkgdesc='Open source IPsec implementation'
|
|
|
|
url='https://www.strongswan.org'
|
|
|
|
license=('GPL2')
|
2017-11-22 13:51:45 +00:00
|
|
|
arch=('x86_64')
|
2021-11-06 20:07:27 +00:00
|
|
|
makedepends=('libnm' 'systemd' 'python' 'ruby' 'mariadb' 'python-setuptools')
|
2019-06-05 12:46:13 +00:00
|
|
|
depends=('curl' 'gmp' 'iproute2' 'openssl' 'sqlite' 'libcap' 'systemd-libs' 'pam')
|
2019-09-08 16:19:02 +00:00
|
|
|
optdepends=('libnm: for networkmanager support'
|
2019-12-23 03:37:08 +00:00
|
|
|
'mariadb: MySQL support'
|
|
|
|
'ruby: Ruby support'
|
|
|
|
'python: Python support'
|
|
|
|
'resolvconf: Resolveplugin'
|
|
|
|
'openldap: LDAP support')
|
2018-10-01 23:48:42 +00:00
|
|
|
# TODO: move to package() and use find
|
2017-07-12 23:50:21 +00:00
|
|
|
backup=(
|
2019-12-23 03:37:08 +00:00
|
|
|
etc/ipsec.conf
|
|
|
|
etc/ipsec.secrets
|
|
|
|
etc/swanctl/swanctl.conf
|
|
|
|
etc/strongswan.conf
|
|
|
|
etc/strongswan.d/{charon-logging.conf,charon.conf,pki.conf,pool.conf,scepclient.conf,starter.conf,swanctl.conf}
|
|
|
|
etc/strongswan.d/charon/{aesni.conf,attr-sql.conf,attr.conf,bliss.conf,chapoly.conf,cmac.conf,connmark.conf,constraints.conf,curl.conf,des.conf,dhcp.conf,dnskey.conf,eap-aka-3gpp2.conf,eap-aka.conf,eap-gtc.conf,eap-identity.conf,eap-md5.conf,eap-mschapv2.conf,eap-radius.conf,eap-sim-file.conf,eap-sim.conf,eap-simaka-pseudonym.conf,eap-simaka-reauth.conf,eap-tls.conf,ext-auth.conf,farp.conf,fips-prf.conf,forecast.conf,gmp.conf,ha.conf,hmac.conf,kernel-netlink.conf,md5.conf,mgf1.conf,nonce.conf,newhope.conf,ntru.conf,openssl.conf,pem.conf,pgp.conf,pkcs1.conf,pkcs12.conf,pkcs7.conf,pkcs8.conf,pubkey.conf,random.conf,rc2.conf,resolve.conf,revocation.conf,sha1.conf,sha2.conf,sha3.conf,socket-default.conf,sql.conf,sqlite.conf,sshkey.conf,stroke.conf,updown.conf,vici.conf,x509.conf,xauth-eap.conf,xauth-generic.conf,xcbc.conf,unity.conf,curve25519.conf,bypass-lan.conf})
|
2018-10-01 23:48:42 +00:00
|
|
|
source=("https://download.strongswan.org/strongswan-${pkgver}.tar.bz2"{,.sig}
|
2019-12-23 03:37:08 +00:00
|
|
|
'configure_ac.patch')
|
2017-07-12 23:50:21 +00:00
|
|
|
validpgpkeys=("948F158A4E76A27BF3D07532DF42C170B34DBA77")
|
2023-12-20 02:27:47 +00:00
|
|
|
sha512sums=('a929c1fb2a5e7d3064f6cd0be76703198406dad981f4b345311a004c18aa3c12adcb49eb33705fe4c3c31daf556cef5906d8753f5d9fbff5a27b732f93d8f19f'
|
2020-08-20 03:21:10 +00:00
|
|
|
'SKIP'
|
2023-11-21 18:16:50 +00:00
|
|
|
'645f6e3c9df8634ac06cbafc314ad46ede45b5412140c20236d25187a7405a5a941f74c52ca3ee3cc3a8e97d7af88b22209cae854d6e99f0ad9c489db78026c4')
|
|
|
|
|
2017-07-15 00:28:55 +00:00
|
|
|
prepare() {
|
2022-08-13 00:09:15 +00:00
|
|
|
cd ${pkgname}-${pkgver}
|
2023-11-21 18:16:50 +00:00
|
|
|
patch -Np1 -i ../configure_ac.patch
|
2022-08-13 00:09:15 +00:00
|
|
|
autoreconf -fiv
|
2017-07-12 23:50:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-08-13 00:09:15 +00:00
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
./configure --prefix=/usr \
|
2019-12-23 03:37:08 +00:00
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--with-ipsecdir=/usr/lib/strongswan \
|
|
|
|
--with-nm-ca-dir=/etc/ssl/certs \
|
|
|
|
--enable-integrity-test \
|
|
|
|
--enable-sqlite \
|
|
|
|
--enable-pkcs11 \
|
|
|
|
--enable-openssl \
|
|
|
|
--enable-curl \
|
|
|
|
--enable-sql \
|
|
|
|
--enable-attr-sql \
|
|
|
|
--enable-farp \
|
|
|
|
--enable-dhcp \
|
|
|
|
--enable-eap-sim \
|
|
|
|
--enable-eap-sim-file \
|
|
|
|
--enable-eap-simaka-pseudonym \
|
|
|
|
--enable-eap-simaka-reauth \
|
|
|
|
--enable-eap-identity \
|
|
|
|
--enable-eap-md5 \
|
|
|
|
--enable-eap-gtc \
|
|
|
|
--enable-eap-aka \
|
|
|
|
--enable-eap-aka-3gpp2 \
|
|
|
|
--enable-eap-mschapv2 \
|
|
|
|
--enable-eap-radius \
|
|
|
|
--enable-xauth-eap \
|
|
|
|
--enable-ha \
|
|
|
|
--enable-vici \
|
|
|
|
--enable-swanctl \
|
|
|
|
--enable-systemd \
|
|
|
|
--enable-ext-auth \
|
|
|
|
--enable-mysql \
|
|
|
|
--enable-ldap \
|
|
|
|
--enable-cmd \
|
|
|
|
--enable-forecast \
|
|
|
|
--enable-connmark \
|
|
|
|
--enable-eap-ttls \
|
|
|
|
--enable-radattr \
|
|
|
|
--enable-xauth-pam \
|
|
|
|
--enable-xauth-noauth \
|
|
|
|
--enable-eap-dynamic \
|
|
|
|
--enable-eap-peap \
|
|
|
|
--enable-eap-tls \
|
|
|
|
--enable-chapoly \
|
|
|
|
--enable-unity \
|
|
|
|
--with-capabilities=libcap \
|
|
|
|
--enable-newhope \
|
|
|
|
--enable-ntru \
|
|
|
|
--enable-mgf1 \
|
|
|
|
--enable-sha3 \
|
|
|
|
--enable-bliss \
|
|
|
|
--enable-dnscert \
|
|
|
|
--enable-nm \
|
|
|
|
--enable-agent \
|
|
|
|
--enable-bypass-lan \
|
|
|
|
--enable-ruby-gems \
|
|
|
|
--enable-python-eggs
|
|
|
|
make
|
2017-07-12 23:50:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-11-21 18:16:50 +00:00
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2017-07-12 23:50:21 +00:00
|
|
|
}
|