summaryrefslogtreecommitdiff
path: root/packages/openswan
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2007-01-10 07:37:23 +0000
committerPhilipp Zabel <philipp.zabel@gmail.com>2007-01-10 07:37:23 +0000
commit6f1172ac1e082bae9fc921d3f8cf2b422890427e (patch)
tree2d3c566f6d2dce1169fb4648fa4d601c368acd58 /packages/openswan
parentc94c025f10f859e08b55053230e9e395da49abb2 (diff)
linux-handhelds-2.6: magician defconfig: I2C_PXA=y
Diffstat (limited to 'packages/openswan')
-rw-r--r--packages/openswan/openswan-2.4.4/.mtn2git_empty0
-rw-r--r--packages/openswan/openswan-2.4.4/ld-library-path-breakage.patch26
-rw-r--r--packages/openswan/openswan_2.4.4.bb33
3 files changed, 59 insertions, 0 deletions
diff --git a/packages/openswan/openswan-2.4.4/.mtn2git_empty b/packages/openswan/openswan-2.4.4/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/openswan/openswan-2.4.4/.mtn2git_empty
diff --git a/packages/openswan/openswan-2.4.4/ld-library-path-breakage.patch b/packages/openswan/openswan-2.4.4/ld-library-path-breakage.patch
new file mode 100644
index 0000000000..e3cc8762cc
--- /dev/null
+++ b/packages/openswan/openswan-2.4.4/ld-library-path-breakage.patch
@@ -0,0 +1,26 @@
+--- openswan-2.2.0.orig/programs/Makefile.program 2004-06-03 03:06:27.000000000 +0200
++++ openswan-2.2.0/programs/Makefile.program 2005-03-05 13:50:19.000000000 +0100
+@@ -30,10 +30,6 @@
+
+ CFLAGS+= ${WERROR}
+
+-ifneq ($(LD_LIBRARY_PATH),)
+-LDFLAGS=-L$(LD_LIBRARY_PATH)
+-endif
+-
+ MANDIR8=$(MANTREE)/man8
+ MANDIR5=$(MANTREE)/man5
+
+--- openswan-2.2.0.orig/programs/pluto/Makefile 2005-01-03 20:40:45.000000000 +0100
++++ openswan-2.2.0/programs/pluto/Makefile 2005-03-05 13:51:21.000000000 +0100
+@@ -234,10 +234,6 @@
+ LIBSPLUTO+=${CURL_LIBS}
+ LIBSPLUTO+= -lgmp -lresolv # -lefence
+
+-ifneq ($(LD_LIBRARY_PATH),)
+-LDFLAGS=-L$(LD_LIBRARY_PATH)
+-endif
+-
+ LIBSADNS = $(OPENSWANLIB)
+ LIBSADNS += -lresolv # -lefence
+
diff --git a/packages/openswan/openswan_2.4.4.bb b/packages/openswan/openswan_2.4.4.bb
new file mode 100644
index 0000000000..ea4a0c2d66
--- /dev/null
+++ b/packages/openswan/openswan_2.4.4.bb
@@ -0,0 +1,33 @@
+SECTION = "console/network"
+DESCRIPTION = "Openswan is an Open Source implementation of IPsec for the \
+Linux operating system."
+HOMEPAGE = "http://www.openswan.org"
+LICENSE = "GPLv2"
+DEPENDS = "gmp flex-native"
+RRECOMMENDS = "kernel-module-ipsec"
+RDEPENDS_nylon = "perl"
+PR = "r0"
+
+SRC_URI = "http://www.openswan.org/download/openswan-${PV}.tar.gz \
+ file://ld-library-path-breakage.patch;patch=1"
+S = "${WORKDIR}/openswan-${PV}"
+
+PARALLEL_MAKE = ""
+EXTRA_OEMAKE = "DESTDIR=${D} \
+ USERCOMPILE="${CFLAGS}" \
+ FINALCONFDIR=${sysconfdir}/ipsec \
+ INC_RCDEFAULT=${sysconfdir}/init.d \
+ INC_USRLOCAL=${prefix} \
+ INC_MANDIR=share/man WERROR=''"
+
+do_compile () {
+ oe_runmake programs
+}
+
+do_install () {
+ oe_runmake install
+}
+
+FILES_${PN} += "${libdir}/ipsec/"
+
+CONFFILES_${PN} = "${sysconfdir}/ipsec/ipsec.conf"