summaryrefslogtreecommitdiff
path: root/freeswan/freeswan_2.0.4.oe
blob: d080dd1cce7c0ea0b7eeecdcc2bfd8af15c5351b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 \
	  file://${FILESDIR}/flags.patch;patch=1

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 'CFLAGS=${CFLAGS}' 'CPPFLAGS=${CPPFLAGS}' 'LDFLAGS=${LDFLAGS}' programs
}

do_install () {
	install -d ${D}/${sysconfdir}/init.d
	oe_runmake DESTDIR=${D} install
}