diff options
Diffstat (limited to 'meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.28.bb')
-rw-r--r-- | meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.28.bb | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.28.bb b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.28.bb new file mode 100644 index 000000000..95a093cd1 --- /dev/null +++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.28.bb | |||
@@ -0,0 +1,97 @@ | |||
1 | SUMMARY = "Generic client/server library for SASL authentication" | ||
2 | SECTION = "libs" | ||
3 | HOMEPAGE = "http://asg.web.cmu.edu/sasl/" | ||
4 | DEPENDS = "openssl db groff-native" | ||
5 | LICENSE = "BSD-4-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=3f55e0974e3d6db00ca6f57f2d206396" | ||
7 | |||
8 | SRCREV = "7a6b45b177070198fed0682bea5fa87c18abb084" | ||
9 | |||
10 | SRC_URI = "git://github.com/cyrusimap/cyrus-sasl;protocol=https;branch=cyrus-sasl-2.1 \ | ||
11 | file://avoid-to-call-AC_TRY_RUN.patch \ | ||
12 | file://debian_patches_0014_avoid_pic_overwrite.diff \ | ||
13 | file://saslauthd.service \ | ||
14 | file://saslauthd.conf \ | ||
15 | file://CVE-2019-19906.patch \ | ||
16 | " | ||
17 | |||
18 | UPSTREAM_CHECK_URI = "https://github.com/cyrusimap/cyrus-sasl/archives" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | inherit autotools pkgconfig useradd systemd | ||
23 | |||
24 | EXTRA_OECONF += "--with-dblib=berkeley \ | ||
25 | --with-plugindir='${libdir}/sasl2' \ | ||
26 | andrew_cv_runpath_switch=none" | ||
27 | |||
28 | PACKAGECONFIG ??= "\ | ||
29 | ${@bb.utils.filter('DISTRO_FEATURES', 'ldap pam', d)} \ | ||
30 | " | ||
31 | PACKAGECONFIG[gssapi] = "--enable-gssapi=yes,--enable-gssapi=no,krb5," | ||
32 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," | ||
33 | PACKAGECONFIG[opie] = "--with-opie,--without-opie,opie," | ||
34 | PACKAGECONFIG[des] = "--with-des,--without-des,," | ||
35 | PACKAGECONFIG[ldap] = "--with-ldap=${STAGING_LIBDIR} --enable-ldapdb,--without-ldap --disable-ldapdb,openldap," | ||
36 | PACKAGECONFIG[ntlm] = "--enable-ntlm=yes,--enable-ntlm=no,," | ||
37 | |||
38 | CFLAGS += "-fPIC" | ||
39 | |||
40 | do_configure:prepend () { | ||
41 | # make it be able to work with db 5.0 version | ||
42 | local sed_files="sasldb/db_berkeley.c utils/dbconverter-2.c" | ||
43 | for sed_file in $sed_files; do | ||
44 | sed -i 's#DB_VERSION_MAJOR == 4.*#(&) || DB_VERSION_MAJOR == 5#' ${S}/$sed_file | ||
45 | done | ||
46 | } | ||
47 | |||
48 | do_compile:prepend () { | ||
49 | cd include | ||
50 | ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} ${S}/include/makemd5.c -o makemd5 | ||
51 | touch makemd5.o makemd5.lo makemd5 | ||
52 | cd .. | ||
53 | } | ||
54 | |||
55 | do_install:append() { | ||
56 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
57 | install -d ${D}${systemd_unitdir}/system | ||
58 | install -m 0644 ${WORKDIR}/saslauthd.service ${D}${systemd_unitdir}/system | ||
59 | |||
60 | sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/saslauthd.service | ||
61 | sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${systemd_unitdir}/system/saslauthd.service | ||
62 | sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/saslauthd.service | ||
63 | |||
64 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
65 | echo "d /run/saslauthd/ - - - -" > ${D}${sysconfdir}/tmpfiles.d/saslauthd.conf | ||
66 | |||
67 | install -d ${D}${sysconfdir}/default/ | ||
68 | install -m 0644 ${WORKDIR}/saslauthd.conf ${D}${sysconfdir}/default/saslauthd | ||
69 | sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${sysconfdir}/default/saslauthd | ||
70 | fi | ||
71 | } | ||
72 | |||
73 | USERADD_PACKAGES = "${PN}-bin" | ||
74 | USERADD_PARAM:${PN}-bin = "--system --home=/var/spool/mail -g mail cyrus" | ||
75 | |||
76 | SYSTEMD_PACKAGES = "${PN}-bin" | ||
77 | SYSTEMD_SERVICE:${PN}-bin = "saslauthd.service" | ||
78 | SYSTEMD_AUTO_ENABLE = "disable" | ||
79 | |||
80 | SRC_URI[md5sum] = "a7f4e5e559a0e37b3ffc438c9456e425" | ||
81 | SRC_URI[sha256sum] = "8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3" | ||
82 | |||
83 | PACKAGES =+ "${PN}-bin" | ||
84 | |||
85 | FILES:${PN} += "${libdir}/sasl2/*.so*" | ||
86 | FILES:${PN}-bin += "${bindir} \ | ||
87 | ${sysconfdir}/default/saslauthd \ | ||
88 | ${systemd_unitdir}/system/saslauthd.service \ | ||
89 | ${sysconfdir}/tmpfiles.d/saslauthd.conf" | ||
90 | FILES:${PN}-dev += "${libdir}/sasl2/*.la" | ||
91 | FILES:${PN}-dbg += "${libdir}/sasl2/.debug" | ||
92 | FILES:${PN}-staticdev += "${libdir}/sasl2/*.a" | ||
93 | |||
94 | INSANE_SKIP:${PN} += "dev-so" | ||
95 | |||
96 | # CVE-2020-8032 affects only openSUSE | ||
97 | CVE_CHECK_IGNORE += "CVE-2020-8032" | ||