33 lines
1.3 KiB
Bash
33 lines
1.3 KiB
Bash
# Template file for 'strongswan'
|
|
pkgname=strongswan
|
|
version=5.5.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
# tpm support waits on libtss2
|
|
configure_args="--disable-static --enable-blowfish --enable-curl
|
|
--enable-eap-radius --enable-eap-mschapv2 --enable-eap-md5 --enable-led
|
|
--enable-ha --enable-dhcp --enable-mediation --enable-soup --disable-des
|
|
--enable-chapoly"
|
|
depends="iproute2 sqlite"
|
|
hostmakedepends="pkg-config flex bison python"
|
|
makedepends="gmp-devel libsoup-devel libldns-devel unbound-devel libcurl-devel"
|
|
conf_files="/etc/*.conf /etc/strongswan.d/*.conf /etc/strongswan.d/charon/*.conf"
|
|
short_desc="IPsec-based VPN solution, supporting IKEv1/IKEv2 and MOBIKE"
|
|
maintainer="Toyam Cox <Vaelatern@gmail.com>"
|
|
license="GPL-2"
|
|
# changelog="https://wiki.strongswan.org/projects/strongswan/wiki/Changelog"
|
|
homepage="http://www.strongswan.org/"
|
|
distfiles="http://download.strongswan.org/${pkgname}-${version}.tar.bz2"
|
|
checksum=720b301991f77bdedd8d551a956f52e2d11686a0ec18e832094f86cf2b842ab7
|
|
|
|
post_install() {
|
|
touch .empty
|
|
# ipsec.d/{,aacerts,acerts,cacerts,certs,crls,oscpcerts,reqs}
|
|
for dir in /etc/ipsec.d/{,{aa,a,ca,oscp,}certs,crls,reqs}; do
|
|
vmkdir "$dir"
|
|
vcopy .empty "$dir"
|
|
done
|
|
vmkdir /etc/ipsec.d/private 750
|
|
vcopy .empty /etc/ipsec.d/private/
|
|
vsv strongswan
|
|
}
|