summaryrefslogtreecommitdiff
path: root/freeswan/freeswan_2.0.4.oe
diff options
context:
space:
mode:
Diffstat (limited to 'freeswan/freeswan_2.0.4.oe')
-rw-r--r--freeswan/freeswan_2.0.4.oe14
1 files changed, 12 insertions, 2 deletions
diff --git a/freeswan/freeswan_2.0.4.oe b/freeswan/freeswan_2.0.4.oe
index 031e31f017..d080dd1cce 100644
--- a/freeswan/freeswan_2.0.4.oe
+++ b/freeswan/freeswan_2.0.4.oe
@@ -1,6 +1,7 @@
DESCRIPTION = FreeS/WAN IPSEC
DEPENDS = virtual/libc gmp
RDEPENDS = libc6 gmp
+FILES_freeswan_append = ' ${libdir}/ipsec'
SRC_URI = ftp://ftp.xs4all.nl/pub/crypto/freeswan/freeswan-2.04.tar.gz \
file://${FILESDIR}/pathnames.patch;patch=1 \
@@ -8,11 +9,20 @@ SRC_URI = ftp://ftp.xs4all.nl/pub/crypto/freeswan/freeswan-2.04.tar.gz \
S = "${WORKDIR}/freeswan-2.04"
+# "local" part of tree, used in building other pathnames
+EXTRA_OEMAKE = "'INC_USRLOCAL=${prefix}' \
+ 'FINALLIBEXECDIR=${libexecdir}/ipsec' \
+ 'FINALSBINDIR=${sbindir}' \
+ 'FINALLIBDIR=${libdir}/ipsec' \
+ 'MANTREE=${DESTDIR}/${mandir}' \
+ 'FINALCONFFILE?=${sysconfdir}/ipsec.conf' \
+ 'FINALCONFDIR?=${sysconfdir}'"
+
do_compile () {
- oe_runmake INC_USRLOCAL=${prefix} 'CFLAGS=${CFLAGS}' 'CPPFLAGS=${CPPFLAGS}' 'LDFLAGS=${LDFLAGS}' programs
+ oe_runmake 'CFLAGS=${CFLAGS}' 'CPPFLAGS=${CPPFLAGS}' 'LDFLAGS=${LDFLAGS}' programs
}
do_install () {
install -d ${D}/${sysconfdir}/init.d
- oe_runmake INC_USRLOCAL=${prefix} DESTDIR=${D} install
+ oe_runmake DESTDIR=${D} install
}