|
|
@ -2,6 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: package/.../strongswan/strongswan.conf |
|
|
|
# Copyright (C) 2010 The OpenSDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
@ -21,44 +22,18 @@ if [ $prefix_auto = 1 ] ; then |
|
|
|
set_confopt |
|
|
|
fi |
|
|
|
|
|
|
|
var_append makeopt " " "programs" |
|
|
|
|
|
|
|
strongswan_premake () { |
|
|
|
|
|
|
|
# 2005-06-17: Christian Wiese <jeru@ixplanet.org> |
|
|
|
# it seems that strongswan doesn't like the appending of certain makeopt's |
|
|
|
# so we've to use sed for now for tweaking the Makefiles. |
|
|
|
# Any ideas for solving this issue are higly appreciated ;) |
|
|
|
|
|
|
|
PLUTO_MAKEFILE="programs/pluto/Makefile" |
|
|
|
|
|
|
|
# setting install prefix |
|
|
|
# var_append makeopt ' ' "DESTDIR=/" |
|
|
|
# var_append makeopt ' ' "INC_USRLOCAL=/$prefix" |
|
|
|
sed -i "/INC_USRLOCAL=/s,/.*,/$prefix," Makefile.inc |
|
|
|
|
|
|
|
# setting config file location |
|
|
|
var_append makeopt ' ' "FINALCONFDIR=$sysconfdir" |
|
|
|
|
|
|
|
# checking if we can enable CRL fetching using HTTP |
|
|
|
if pkginstalled curl; then |
|
|
|
# var_append makeopt ' ' "LIBCURL=1" |
|
|
|
sed -i 's/^#\(LIBCURL\)/\1/' $PLUTO_MAKEFILE |
|
|
|
fi |
|
|
|
# checking if we can enable CRL fetching using HTTP |
|
|
|
if pkginstalled curl; then |
|
|
|
var_append extraconfopt ' ' "--enable-curl" |
|
|
|
fi |
|
|
|
|
|
|
|
# checking if we can enable CRL fetching using LDAP |
|
|
|
if pkginstalled openldap; then |
|
|
|
pkgprefix -t openldap |
|
|
|
var_append CFLAGS ' ' "-I$( pkgprefix includedir openldap )" |
|
|
|
var_append CPPFLAGS ' ' "-I$( pkgprefix includedir openldap )" |
|
|
|
var_append LDFLAGS ' ' "-L$( pkgprefix libdir openldap )" |
|
|
|
export CPPFLAGS CFLAGS LDFLAGS |
|
|
|
# checking if we can enable CRL fetching using LDAP |
|
|
|
if pkginstalled openldap; then |
|
|
|
pkgprefix -t openldap |
|
|
|
var_append CFLAGS ' ' "-I$( pkgprefix includedir openldap )" |
|
|
|
var_append CPPFLAGS ' ' "-I$( pkgprefix includedir openldap )" |
|
|
|
var_append LDFLAGS ' ' "-L$( pkgprefix libdir openldap )" |
|
|
|
export CPPFLAGS CFLAGS LDFLAGS |
|
|
|
|
|
|
|
# var_append makeopt ' ' "LDAP_VERSION=3" |
|
|
|
sed -i 's/^#\(LDAP_VERSION=3\)/\1/' $PLUTO_MAKEFILE |
|
|
|
fi |
|
|
|
|
|
|
|
var_append makeopt ' ' "USERCOMPILE=$CFLAGS" |
|
|
|
var_append extraconfopt ' ' "--enable-ldap" |
|
|
|
} |
|
|
|
|
|
|
|
hook_add premake 5 "strongswan_premake" |