blob: dcb59f4ea03fc6a5f888f199ac8f49ef9cb1ce61 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "UW c-client library for mail protocols"
2SECTION = "devel"
3
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a6a4ddbb7cd2999f6827ee143f6fcd97"
6
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08007DEPENDS = "openssl virtual/crypt"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008
Brad Bishopd7bf8c12018-02-25 22:55:05 -05009SRC_URI = "https://fossies.org/linux/misc/old/imap-${PV}.tar.gz \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010 file://quote_cctype.patch \
11 file://imap-2007e-shared.patch \
12 file://imap-2007f-format-security.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013 file://0001-Support-OpenSSL-1.1.patch \
Andrew Geissler87f5cff2022-09-30 13:13:31 -050014 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 Geisslerc5535c92023-01-27 16:10:19 -060017 file://0001-Fix-Wincompatible-function-pointer-types.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018 "
19
20SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369"
21SRC_URI[sha256sum] = "53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28"
22
23S = "${WORKDIR}/imap-${PV}"
24
Patrick Williams2a254922023-08-11 09:48:11 -050025CVE_STATUS[CVE-2005-0198] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions."
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050026
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050028PACKAGECONFIG[pam] = ",,libpam"
29
Andrew Geissler3eeda902023-05-19 10:14:02 -050030EXTRA_OEMAKE = "CC='${CC} -std=c99 -D_GNU_SOURCE' ARRC='${AR} -rc' RANLIB='${RANLIB}' EXTRACFLAGS='${CFLAGS}'"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050031
32HEADERS = "src/c-client/*.h src/osdep/unix/*.h c-client/auths.c c-client/linkage.c c-client/linkage.h c-client/osdep.h"
33
34do_compile() {
35 echo "SSLINCLUDE=${STAGING_INCDIR} SSLLIB=${STAGING_LIBDIR}" > ${S}/SPECIALS
36 oe_runmake ${@bb.utils.contains('PACKAGECONFIG', 'pam', 'lnp', 'slx', d)}
37}
38
39do_install() {
40 install -d ${D}${includedir}/c-client
41 install ${HEADERS} ${D}${includedir}/c-client
42 install -d ${D}${libdir}
43 install c-client/c-client.a ${D}${libdir}/libc-client.a
44}
45
Patrick Williams213cb262021-08-07 19:21:33 -050046RPROVIDES:${PN} = "libc-client"
47RREPLACES:${PN} = "libc-client"
48RCONFLICTS:${PN} = "libc-client"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050049
Patrick Williams213cb262021-08-07 19:21:33 -050050ALLOW_EMPTY:${PN} = "1"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050051
Andrew Geissler517393d2023-01-13 08:55:19 -060052PARALLEL_MAKE = ""
53