Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "UW c-client library for mail protocols" |
| 2 | SECTION = "devel" |
| 3 | |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a6a4ddbb7cd2999f6827ee143f6fcd97" |
| 6 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 7 | DEPENDS = "openssl virtual/crypt" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 8 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 9 | SRC_URI = "https://fossies.org/linux/misc/old/imap-${PV}.tar.gz \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | file://quote_cctype.patch \ |
| 11 | file://imap-2007e-shared.patch \ |
| 12 | file://imap-2007f-format-security.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 13 | file://0001-Support-OpenSSL-1.1.patch \ |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 14 | file://0001-Define-prototype-for-safe_flock.patch \ |
| 15 | file://0001-Do-not-build-mtest.patch \ |
| 16 | file://0002-tmail-Include-ctype.h-for-isdigit.patch \ |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 17 | file://0001-Fix-Wincompatible-function-pointer-types.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | " |
| 19 | |
| 20 | SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369" |
| 21 | SRC_URI[sha256sum] = "53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28" |
| 22 | |
| 23 | S = "${WORKDIR}/imap-${PV}" |
| 24 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 25 | CVE_CHECK_IGNORE += "\ |
| 26 | CVE-2005-0198 \ |
| 27 | " |
| 28 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 29 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 30 | PACKAGECONFIG[pam] = ",,libpam" |
| 31 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 32 | EXTRA_OEMAKE = "CC='${CC} -std=c99 -D_GNU_SOURCE' ARRC='${AR} -rc' RANLIB='${RANLIB}'" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 33 | |
| 34 | HEADERS = "src/c-client/*.h src/osdep/unix/*.h c-client/auths.c c-client/linkage.c c-client/linkage.h c-client/osdep.h" |
| 35 | |
| 36 | do_compile() { |
| 37 | echo "SSLINCLUDE=${STAGING_INCDIR} SSLLIB=${STAGING_LIBDIR}" > ${S}/SPECIALS |
| 38 | oe_runmake ${@bb.utils.contains('PACKAGECONFIG', 'pam', 'lnp', 'slx', d)} |
| 39 | } |
| 40 | |
| 41 | do_install() { |
| 42 | install -d ${D}${includedir}/c-client |
| 43 | install ${HEADERS} ${D}${includedir}/c-client |
| 44 | install -d ${D}${libdir} |
| 45 | install c-client/c-client.a ${D}${libdir}/libc-client.a |
| 46 | } |
| 47 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 48 | RPROVIDES:${PN} = "libc-client" |
| 49 | RREPLACES:${PN} = "libc-client" |
| 50 | RCONFLICTS:${PN} = "libc-client" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 51 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 52 | ALLOW_EMPTY:${PN} = "1" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 53 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 54 | PARALLEL_MAKE = "" |
| 55 | |