summaryrefslogtreecommitdiff
path: root/freeswan
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-01-23 08:18:42 +0000
committerChris Larson <clarson@kergoth.com>2004-01-23 08:18:42 +0000
commit0a11a28335b73a06f26379822ce88aae6f1f4954 (patch)
tree8351b0b432463d4162054c5691ae8e5adcdbda10 /freeswan
parent9cab31775d14a06c80c354650d27855a1fdc92db (diff)
Packaging fixes, pass 2.
BKrev: 4010d8e2zRgIc2lz8zqu_17RxVRQ9g
Diffstat (limited to 'freeswan')
-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
}