Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | DESCRIPTION = "strongSwan is an OpenSource IPsec implementation for the \ |
| 2 | Linux operating system." |
| 3 | SUMMARY = "strongSwan is an OpenSource IPsec implementation" |
| 4 | HOMEPAGE = "http://www.strongswan.org" |
| 5 | SECTION = "net" |
| 6 | LICENSE = "GPLv2" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 8 | DEPENDS = "gmp openssl flex-native flex bison-native" |
| 9 | |
| 10 | SRC_URI = "http://download.strongswan.org/strongswan-${PV}.tar.bz2 \ |
| 11 | file://fix-funtion-parameter.patch \ |
| 12 | file://support-newer-systemd.patch \ |
| 13 | file://install-strongswan-swanctl-service.patch \ |
| 14 | " |
| 15 | |
| 16 | SRC_URI[md5sum] = "fab014be1477ef4ebf9a765e10f8802c" |
| 17 | SRC_URI[sha256sum] = "a4a9bc8c4e42bdc4366a87a05a02bf9f425169a7ab0c6f4482d347e44acbf225" |
| 18 | |
| 19 | EXTRA_OECONF = " \ |
| 20 | --without-lib-prefix \ |
| 21 | " |
| 22 | |
| 23 | EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}" |
| 24 | |
| 25 | |
| 26 | PACKAGECONFIG ??= "charon curl gmp openssl stroke sqlite3 \ |
| 27 | ${@base_contains('DISTRO_FEATURES', 'ldap', 'ldap', '', d)} \ |
| 28 | " |
| 29 | PACKAGECONFIG[aesni] = "--enable-aesni,--disable-aesni," |
| 30 | PACKAGECONFIG[charon] = "--enable-charon,--disable-charon," |
| 31 | PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl," |
| 32 | PACKAGECONFIG[gmp] = "--enable-gmp,--disable-gmp,gmp," |
| 33 | PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap,openldap," |
| 34 | PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5," |
| 35 | PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl," |
| 36 | PACKAGECONFIG[scep] = "--enable-scepclient,--disable-scepclient," |
| 37 | PACKAGECONFIG[soup] = "--enable-soup,--disable-soup,libsoup-2.4," |
| 38 | PACKAGECONFIG[sqlite3] = "--enable-sqlite,--disable-sqlite,sqlite3," |
| 39 | PACKAGECONFIG[stroke] = "--enable-stroke,--disable-stroke," |
| 40 | PACKAGECONFIG[swanctl] = "--enable-swanctl,--disable-swanctl,,libgcc" |
| 41 | |
| 42 | # requires swanctl |
| 43 | PACKAGECONFIG[systemd-charon] = "--enable-systemd,--disable-systemd,systemd," |
| 44 | |
| 45 | inherit autotools systemd pkgconfig |
| 46 | |
| 47 | RRECOMMENDS_${PN} = "kernel-module-ipsec" |
| 48 | |
| 49 | FILES_${PN} += "${libdir}/ipsec/lib*${SOLIBS} ${libdir}/ipsec/plugins/*.so" |
| 50 | FILES_${PN}-dbg += "${libdir}/ipsec/.debug ${libdir}/ipsec/plugins/.debug ${libexecdir}/ipsec/.debug" |
| 51 | FILES_${PN}-dev += "${libdir}/ipsec/lib*${SOLIBSDEV} ${libdir}/ipsec/*.la ${libdir}/ipsec/plugins/*.la" |
| 52 | FILES_${PN}-staticdev += "${libdir}/ipsec/*.a ${libdir}/ipsec/plugins/*.a" |
| 53 | |
| 54 | RPROVIDES_${PN} += "${PN}-systemd" |
| 55 | RREPLACES_${PN} += "${PN}-systemd" |
| 56 | RCONFLICTS_${PN} += "${PN}-systemd" |
| 57 | SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'swanctl', '${BPN}-swanctl.service', '${BPN}.service', d)}" |