1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/strongswan/strongswan.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if [ $prefix_auto = 1 ]; then
13 if [ "$ROCKCFG_PKG_STRONGSWAN_PREFIX" ]; then
14 prefix="$ROCKCFG_PKG_STRONGSWAN_PREFIX"
16 prefix="opt/strongswan"
21 # checking if we can enable CRL fetching using HTTP
22 if pkginstalled curl; then
23 var_append confopt ' ' --enable-http
26 # checking if we can enable CRL fetching using LDAP
27 if pkginstalled openldap; then
29 var_append confopt ' ' --enable-ldap
30 var_append GCC_WRAPPER_INSERT ' ' "-I$( pkgprefix includedir openldap )"
31 var_append GCC_WRAPPER_INSERT ' ' "-L$( pkgprefix libdir openldap )"