summaryrefslogtreecommitdiff
path: root/packages/openswan
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openswan')
-rw-r--r--packages/openswan/openswan_2.1.2.bb27
-rw-r--r--packages/openswan/openswan_2.2.0.bb2
2 files changed, 28 insertions, 1 deletions
diff --git a/packages/openswan/openswan_2.1.2.bb b/packages/openswan/openswan_2.1.2.bb
index e69de29bb2..3346445b86 100644
--- a/packages/openswan/openswan_2.1.2.bb
+++ b/packages/openswan/openswan_2.1.2.bb
@@ -0,0 +1,27 @@
+LICENSE = GPL
+SECTION = "console/network"
+DESCRIPTION = "Openswan is an Open Source implementation of IPsec for the \
+Linux operating system."
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+DEPENDS = "gmp"
+
+SRC_URI = "http://www.openswan.org/code/openswan-${PV}.tar.gz \
+ file://flags.patch;patch=1"
+S = "${WORKDIR}/openswan-${PV}"
+
+EXTRA_OEMAKE = "-e DESTDIR=${D} \
+ USERCOMPILE="${CFLAGS}" \
+ FINALCONFDIR=${sysconfdir}/ipsec \
+ INC_RCDEFAULT=${sysconfdir}/init.d \
+ INC_USRLOCAL=${prefix} \
+ INC_MANDIR=share/man"
+
+do_compile () {
+ oe_runmake programs
+}
+
+do_install () {
+ oe_runmake install
+}
+
+FILES_${PN} += "${libdir}/ipsec/"
diff --git a/packages/openswan/openswan_2.2.0.bb b/packages/openswan/openswan_2.2.0.bb
index 110cc12b6e..f09f6c9faa 100644
--- a/packages/openswan/openswan_2.2.0.bb
+++ b/packages/openswan/openswan_2.2.0.bb
@@ -29,6 +29,6 @@ do_install () {
oe_runmake install
}
-FILES_${PN} += "/usr/lib/ipsec/"
+FILES_${PN} += "${libdir}/ipsec/"
CONFFILES_${PN}_nylon = "${sysconfdir}/ipsec/ipsec.conf"