42 lines
1.4 KiB
Bash
42 lines
1.4 KiB
Bash
# Template file for 'strongswan'
|
|
pkgname=strongswan
|
|
version=5.4.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
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 <Vaelatern@gmail.com>"
|
|
license="GPL-2"
|
|
homepage="http://www.strongswan.org/"
|
|
distfiles="http://download.strongswan.org/${pkgname}-${version}.tar.bz2"
|
|
checksum=f8288faaea6a9cd8a7d413c0b76b7922be5da3dfcd01fd05cb30d2c55d3bbe89
|
|
|
|
post_install() {
|
|
touch .empty
|
|
vmkdir /etc/ipsec.d
|
|
vmkdir /etc/ipsec.d/aacerts
|
|
vcopy .empty /etc/ipsec.d/aacerts/
|
|
vmkdir /etc/ipsec.d/acerts
|
|
vcopy .empty /etc/ipsec.d/acerts/
|
|
vmkdir /etc/ipsec.d/cacerts
|
|
vcopy .empty /etc/ipsec.d/cacerts/
|
|
vmkdir /etc/ipsec.d/certs
|
|
vcopy .empty /etc/ipsec.d/certs/
|
|
vmkdir /etc/ipsec.d/crls
|
|
vcopy .empty /etc/ipsec.d/crls/
|
|
vmkdir /etc/ipsec.d/ocspcerts
|
|
vcopy .empty /etc/ipsec.d/ocspcerts/
|
|
vmkdir /etc/ipsec.d/private 750
|
|
vcopy .empty /etc/ipsec.d/private/
|
|
vmkdir /etc/ipsec.d/reqs
|
|
vcopy .empty /etc/ipsec.d/reqs/
|
|
vsv strongswan
|
|
}
|