diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb')
-rw-r--r-- | meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb b/meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb new file mode 100644 index 000000000..72de38b07 --- /dev/null +++ b/meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb | |||
@@ -0,0 +1,77 @@ | |||
1 | SUMMARY = "A network authentication protocol" | ||
2 | DESCRIPTION = "Kerberos is a system for authenticating users and services on a network. \ | ||
3 | Kerberos is a trusted third-party service. That means that there is a \ | ||
4 | third party (the Kerberos server) that is trusted by all the entities on \ | ||
5 | the network (users and services, usually called "principals"). \ | ||
6 | . \ | ||
7 | This is the MIT reference implementation of Kerberos V5. \ | ||
8 | . \ | ||
9 | This package contains the Kerberos key server (KDC). The KDC manages all \ | ||
10 | authentication credentials for a Kerberos realm, holds the master keys \ | ||
11 | for the realm, and responds to authentication requests. This package \ | ||
12 | should be installed on both master and slave KDCs." | ||
13 | |||
14 | HOMEPAGE = "http://web.mit.edu/Kerberos/" | ||
15 | SECTION = "console/network" | ||
16 | LICENSE = "MIT" | ||
17 | LIC_FILES_CHKSUM = "file://${S}/../NOTICE;md5=450c80c6258ce03387bd09df37638ebc" | ||
18 | DEPENDS = "ncurses util-linux e2fsprogs e2fsprogs-native" | ||
19 | |||
20 | inherit autotools-brokensep binconfig perlnative | ||
21 | |||
22 | SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
23 | SRC_URI = "http://web.mit.edu/kerberos/dist/${BPN}/${SHRT_VER}/${BP}-signed.tar \ | ||
24 | file://0001-aclocal-Add-parameter-to-disable-keyutils-detection.patch \ | ||
25 | file://0001-Return-only-new-keys-in-randkey-CVE-2014-5351.patch \ | ||
26 | file://debian-suppress-usr-lib-in-krb5-config.patch;striplevel=2 \ | ||
27 | file://crosscompile_nm.patch \ | ||
28 | file://etc/init.d/krb5-kdc \ | ||
29 | file://etc/init.d/krb5-admin-server \ | ||
30 | file://etc/default/krb5-kdc \ | ||
31 | file://etc/default/krb5-admin-server \ | ||
32 | " | ||
33 | SRC_URI[md5sum] = "357f1312b7720a0a591e22db0f7829fe" | ||
34 | SRC_URI[sha256sum] = "09bd180107b5c2b3b7378c57c023fb02a103d4cac39d6f2dd600275d7a4f3744" | ||
35 | |||
36 | S = "${WORKDIR}/${BP}/src/" | ||
37 | |||
38 | PACKAGECONFIG ??= "openssl" | ||
39 | PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit" | ||
40 | PACKAGECONFIG[openssl] = "--with-pkinit-crypto-impl=openssl,,openssl" | ||
41 | PACKAGECONFIG[keyutils] = "--enable-keyutils,--disable-keyutils,keyutils" | ||
42 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" | ||
43 | PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" | ||
44 | |||
45 | EXTRA_OECONF += " --without-tcl --with-system-et --disable-rpath" | ||
46 | CACHED_CONFIGUREVARS += "krb5_cv_attr_constructor_destructor=yes ac_cv_func_regcomp=yes \ | ||
47 | ac_cv_printf_positional=yes ac_cv_file__etc_environment=yes \ | ||
48 | ac_cv_file__etc_TIMEZONE=no" | ||
49 | |||
50 | CFLAGS_append += "-DDESTRUCTOR_ATTR_WORKS=1 -I${STAGING_INCDIR}/et" | ||
51 | LDFLAGS_append += "-lpthread" | ||
52 | |||
53 | FILES_${PN} += "${datadir}/gnats" | ||
54 | FILES_${PN}-doc += "${datadir}/examples" | ||
55 | FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug" | ||
56 | |||
57 | krb5_do_unpack() { | ||
58 | # ${P}-signed.tar contains ${P}.tar.gz.asc and ${P}.tar.gz | ||
59 | tar xzf ${WORKDIR}/${BP}.tar.gz -C ${WORKDIR}/ | ||
60 | } | ||
61 | |||
62 | python do_unpack() { | ||
63 | bb.build.exec_func('base_do_unpack', d) | ||
64 | bb.build.exec_func('krb5_do_unpack', d) | ||
65 | } | ||
66 | |||
67 | do_configure() { | ||
68 | gnu-configize --force | ||
69 | autoreconf | ||
70 | oe_runconf | ||
71 | } | ||
72 | |||
73 | do_install_append() { | ||
74 | mkdir -p ${D}/etc/init.d ${D}/etc/default | ||
75 | install -m 0755 ${WORKDIR}/etc/init.d/* ${D}/etc/init.d | ||
76 | install -m 0644 ${WORKDIR}/etc/default/* ${D}/etc/default | ||
77 | } | ||