libreswan: this patch adds libreswan to meta-networking
PATCH 1/1 libreswan: this patch adds libreswan to meta-networking
Libreswan is an IPsec implementation for Linux
--- .../recipes-support/libreswan/libreswan_3.20.bb | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 meta-networking/recipes-support/libreswan/libreswan_3.20.bb
meta-networking/recipes-support/libreswan/libreswan_3.20.bb new file +48 -0
@@ -0,0 +1,48 @@ +SUMMERY = "Libreswan is an IPsec implementation for Linux." +DESCRIPTION = "IPsec implementation with IKEv1 and IKEv2 keying protocols" +HOMEPAGE = "http://www.libreswan.org" +SECTION = "net" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" +DEPENDS = "gmp nss libcap-ng libevent iproute2 iptables unbound flex-native" +RRECOMMENDS_${PN} = "kernel-module-ipsec" +RDEPENDS_${PN} = "python curl libpam" +RDEPENDS_${PN}_nylon = "perl" +PR = "r0" + +SRC_URI = "http://download.libreswan.org/libreswan-${PV}.tar.gz" +SRC_URI[md5sum] = "72aecdf8314c0c47546d5ae2cf918191" +SRC_URI[sha256sum] = "2f0931c11ea0b9303ce1e4ee76ffe9db6f3bd70ceead51fe4ec11e2f40a9ae2e" + +S = "${WORKDIR}/libreswan-${PV}" + +EXTRA_OEMAKE = "DESTDIR=${D} \ + FINALCONFDIR=${sysconfdir}/ipsec \ + INC_RCDEFAULT=${sysconfdir}/init.d \ + INC_USRLOCAL=${prefix} \ + INC_MANDIR=/share/man \ + FINALSBINDIR=${bindir} \ + FINALLIBEXECDIR=${libexecdir}/ipsec \ + USE_XAUTH=true \ + USE_LIBCAP_NG=true \ + USE_LEAK_DETECTIVE=false \ + WERROR='' \ + " + +do_compile () { + export ARCH=${TARGET_ARCH} + ${S}/CROSSCOMPILE.sh + make \ + #programs + oe_runmake programs +} + +do_install () { + oe_runmake install + install -d ${D}${datadir}/doc +} + +FILES_${PN} = "${sysconfdir} ${libdir}/ipsec/* ${sbindir}/* ${bindir}/* ${localstatedir}/* ${libexecdir}/ipsec/* /run" +FILES_${PN}-dbg += "${libdir}/ipsec/.debug ${libexecdir}/ipsec/.debug" +FILES_${PN}-doc += "${datadir}/libreswan/* ${mandir}/*" +CONFFILES_${PN} = "${sysconfdir}/ipsec/ipsec.conf"
Signature · 1 line
1.9.1
Quoted 14 lines · Oliver Graute
Libreswan is an IPsec implementation for Linux
Signed-off-by Oliver Graute <[email protected]>--- .../recipes-support/libreswan/libreswan_3.20.bb | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 meta-networking/recipes-support/libreswan/libreswan_3.20.bbmeta-networking/recipes-support/libreswan/libreswan_3.20.bb new file +0
-0
meta-networking/recipes-support/libreswan/libreswan_3.20.bb line 10
Quoted 10 lines
meta-networking/recipes-support/libreswan/libreswan_3.20.bb new file +10
-0@@ -0,0 +1,48 @@ +SUMMERY = "Libreswan is an IPsec implementation for Linux." +DESCRIPTION = "IPsec implementation with IKEv1 and IKEv2 keying protocols" +HOMEPAGE = "http://www.libreswan.org" +SECTION = "net" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" +DEPENDS = "gmp nss libcap-ng libevent iproute2 iptables unbound flex-native" +RRECOMMENDS_${PN} = "kernel-module-ipsec" +RDEPENDS_${PN} = "python curl libpam" +RDEPENDS_${PN}_nylon = "perl"
call it ${PN}-nylon for naming consistency
meta-networking/recipes-support/libreswan/libreswan_3.20.bb line 11
Quoted 1 line
meta-networking/recipes-support/libreswan/libreswan_3.20.bb new file +1
-0+PR = "r0"
Drop this, its default
Quoted 14 lines
meta-networking/recipes-support/libreswan/libreswan_3.20.bb new file +14
-0+ +SRC_URI = "http://download.libreswan.org/libreswan-${PV}.tar.gz" +SRC_URI[md5sum] = "72aecdf8314c0c47546d5ae2cf918191" +SRC_URI[sha256sum] = "2f0931c11ea0b9303ce1e4ee76ffe9db6f3bd70ceead51fe4ec11e2f40a9ae2e" + +S = "${WORKDIR}/libreswan-${PV}" + +EXTRA_OEMAKE = "DESTDIR=${D} \ + FINALCONFDIR=${sysconfdir}/ipsec \ + INC_RCDEFAULT=${sysconfdir}/init.d \ + INC_USRLOCAL=${prefix} \ + INC_MANDIR=/share/man \ + FINALSBINDIR=${bindir} \ + FINALLIBEXECDIR=${libexecdir}/ipsec \
meta-networking/recipes-support/libreswan/libreswan_3.20.bb line 35
Quoted 10 lines
meta-networking/recipes-support/libreswan/libreswan_3.20.bb new file +10
-0+ USE_XAUTH=true \ + USE_LIBCAP_NG=true \ + USE_LEAK_DETECTIVE=false \ + WERROR='' \ + " + +do_compile () { + export ARCH=${TARGET_ARCH} + ${S}/CROSSCOMPILE.sh + make \
can we call oe_runmake here
meta-networking/recipes-support/libreswan/libreswan_3.20.bb line 45
Quoted 10 lines
meta-networking/recipes-support/libreswan/libreswan_3.20.bb new file +10
-0+ #programs + oe_runmake programs +} + +do_install () { + oe_runmake install + install -d ${D}${datadir}/doc +} + +FILES_${PN} = "${sysconfdir} ${libdir}/ipsec/* ${sbindir}/* ${bindir}/* ${localstatedir}/* ${libexecdir}/ipsec/* /run"
/run is a generated file. You should not package it instead just delete it if empty. If not empty find a way to generate the files in /run at runtime.
Quoted 11 lines
meta-networking/recipes-support/libreswan/libreswan_3.20.bb new file +3
-1+FILES_${PN}-dbg += "${libdir}/ipsec/.debug ${libexecdir}/ipsec/.debug" +FILES_${PN}-doc += "${datadir}/libreswan/* ${mandir}/*" +CONFFILES_${PN} = "${sysconfdir}/ipsec/ipsec.conf" --1.9.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel