3 changed files with 16 additions and 81 deletions
@ -1,40 +0,0 @@ |
|||||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
||||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
||||||
#
|
|
||||||
# Filename: package/.../strongswan/ar-usage.patch
|
|
||||||
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
|
||||||
#
|
|
||||||
# More information can be found in the files COPYING and README.
|
|
||||||
#
|
|
||||||
# This patch file is dual-licensed. It is available under the license the
|
|
||||||
# patched project is licensed under, as long as it is an OpenSource license
|
|
||||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
|
||||||
# of the GNU General Public License as published by the Free Software
|
|
||||||
# Foundation; either version 2 of the License, or (at your option) any later
|
|
||||||
# version.
|
|
||||||
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
||||||
|
|
||||||
AR might be set to a cross toolchain -ar ...
|
|
||||||
|
|
||||||
- Rene Rebe <[email protected]>
|
|
||||||
|
|
||||||
--- strongswan-2.4.4/lib/libcrypto/libblowfish/Makefile.vanilla 2005-06-22 20:33:19.000000000 +0200
|
|
||||||
+++ strongswan-2.4.4/lib/libcrypto/libblowfish/Makefile 2005-06-22 20:33:32.000000000 +0200
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
MAKE= make -f Makefile.ssl
|
|
||||||
MAKEDEPEND= $(TOP)/util/domd $(TOP)
|
|
||||||
MAKEFILE= Makefile.ssl
|
|
||||||
-AR= ar r
|
|
||||||
+AR= ar
|
|
||||||
RANLIB= ranlib
|
|
||||||
PERL= perl
|
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@
|
|
||||||
lib: $(LIB)
|
|
||||||
|
|
||||||
$(LIB): $(LIBOBJ)
|
|
||||||
- $(AR) $(LIB) $(LIBOBJ)
|
|
||||||
+ $(AR) r $(LIB) $(LIBOBJ)
|
|
||||||
$(RANLIB) $(LIB)
|
|
||||||
|
|
||||||
# elf
|
|
@ -2,6 +2,7 @@ |
|||||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||||
# |
# |
||||||
# Filename: package/.../strongswan/strongswan.conf |
# Filename: package/.../strongswan/strongswan.conf |
||||||
|
# Copyright (C) 2010 The OpenSDE Project |
||||||
# Copyright (C) 2004 - 2006 The T2 SDE Project |
# Copyright (C) 2004 - 2006 The T2 SDE Project |
||||||
# |
# |
||||||
# More information can be found in the files COPYING and README. |
# More information can be found in the files COPYING and README. |
||||||
@ -21,44 +22,18 @@ if [ $prefix_auto = 1 ] ; then |
|||||||
set_confopt |
set_confopt |
||||||
fi |
fi |
||||||
|
|
||||||
var_append makeopt " " "programs" |
# checking if we can enable CRL fetching using HTTP |
||||||
|
if pkginstalled curl; then |
||||||
strongswan_premake () { |
var_append extraconfopt ' ' "--enable-curl" |
||||||
|
fi |
||||||
# 2005-06-17: Christian Wiese <[email protected]> |
|
||||||
# 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 LDAP |
# checking if we can enable CRL fetching using LDAP |
||||||
if pkginstalled openldap; then |
if pkginstalled openldap; then |
||||||
pkgprefix -t openldap |
pkgprefix -t openldap |
||||||
var_append CFLAGS ' ' "-I$( pkgprefix includedir openldap )" |
var_append CFLAGS ' ' "-I$( pkgprefix includedir openldap )" |
||||||
var_append CPPFLAGS ' ' "-I$( pkgprefix includedir openldap )" |
var_append CPPFLAGS ' ' "-I$( pkgprefix includedir openldap )" |
||||||
var_append LDFLAGS ' ' "-L$( pkgprefix libdir openldap )" |
var_append LDFLAGS ' ' "-L$( pkgprefix libdir openldap )" |
||||||
export CPPFLAGS CFLAGS LDFLAGS |
export CPPFLAGS CFLAGS LDFLAGS |
||||||
|
|
||||||
# var_append makeopt ' ' "LDAP_VERSION=3" |
var_append extraconfopt ' ' "--enable-ldap" |
||||||
sed -i 's/^#\(LDAP_VERSION=3\)/\1/' $PLUTO_MAKEFILE |
|
||||||
fi |
|
||||||
|
|
||||||
var_append makeopt ' ' "USERCOMPILE=$CFLAGS" |
|
||||||
} |
} |
||||||
|
|
||||||
hook_add premake 5 "strongswan_premake" |
|
||||||
|
Loading…
Reference in new issue