void-packages/srcpkgs/strongswan/template
2015-11-30 04:52:54 -05:00

37 lines
1.1 KiB
Bash

# Template file for 'strongswan'
pkgname=strongswan
version=5.3.5
revision=1
build_style=gnu-configure
configure_args="--disable-static"
depends="iproute2 sqlite"
makedepends="gmp-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=2c84b663da652b1ff180a1a73c24a3d7b9fc4b9b8ba6bd07f94a1e33092e6350
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
}