| Submitter | Yauhen Kharuzhy |
|---|---|
| Date | Jan. 26, 2012, 8:50 p.m. |
| Message ID | <1327611041-7681-1-git-send-email-yauhen.kharuzhy@promwad.com> |
| Download | mbox | patch |
| Permalink | /patch/20203/ |
| State | Accepted, archived |
| Commit | db3a65d8dece68520d7bd3f8a89c1901d7a41fdc |
| Headers | show |
Comments
On Thu, Jan 26, 2012 at 11:50:41PM +0300, Yauhen Kharuzhy wrote: > Add building of MIT Kerberos implementation. > > The recipe was picked from OE-Classic & updated to new version > > Signed-off-by: Yauhen Kharuzhy <yauhen.kharuzhy@promwad.com> > --- > meta/recipes-connectivity/krb5/krb5_1.8.5.bb | 39 ++++++++++++++++++++++++++ > 1 files changed, 39 insertions(+), 0 deletions(-) > create mode 100644 meta/recipes-connectivity/krb5/krb5_1.8.5.bb > > diff --git a/meta/recipes-connectivity/krb5/krb5_1.8.5.bb b/meta/recipes-connectivity/krb5/krb5_1.8.5.bb > new file mode 100644 > index 0000000..2f497a3 > --- /dev/null > +++ b/meta/recipes-connectivity/krb5/krb5_1.8.5.bb > @@ -0,0 +1,39 @@ > +DESCRIPTION = "A network authentication protocol" > +HOMEPAGE = "http://web.mit.edu/Kerberos/" > +SECTION = "console/network" > +PR = "r0" > +LICENSE = "MIT" > +LIC_FILES_CHKSUM = "file://${S}/../README;md5=5595a75ae6fab5f825f579a817baa618" > +DEPENDS = "ncurses util-linux e2fsprogs-native" > + > +inherit autotools binconfig perlnative > + > +SRC_URI = "http://web.mit.edu/kerberos/dist/krb5/1.8/krb5-1.8.5-signed.tar" > + > +S = "${WORKDIR}/${PN}-${PV}/src/" > + > +EXTRA_OECONF += " --without-tcl --with-system-et" > +CACHED_CONFIGUREVARS += "krb5_cv_attr_constructor_destructor=yes ac_cv_func_regcomp=yes \ > + ac_cv_printf_positional=yes ac_cv_file__etc_environment=yes \ > + ac_cv_file__etc_TIMEZONE=no" > + > +CFLAGS_append += "-DDESTRUCTOR_ATTR_WORKS=1 -I${STAGING_INCDIR}/et" > +LDFLAGS_append += "-lpthread" > + > +FILES_${PN}-doc += ${datadir}/examples > + > +krb5_do_unpack() { > + tar xzf ${WORKDIR}/krb5-1.8.5.tar.gz -C ${WORKDIR}/ > +} How do this differ from the unpack in the normal classes? Are you able to clean it up? > + > +python do_unpack() { > + bb.build.exec_func('base_do_unpack', d) > + bb.build.exec_func('krb5_do_unpack', d) > +} > + > +do_configure() { > + oe_runconf > +} > + > +SRC_URI[md5sum] = "48b17caedf19d07d714a8d7a25422c95" > +SRC_URI[sha256sum] = "7d6989efaaf0b3330ce5b329edb1d0bf33250ca78b789fdd117e02c49c238812" > -- > 1.7.7.6 > Did you check if it is a version which do not have security bugs? Bye Henning
On Fri, Jan 27, 2012 at 02:03:11PM +0100, Henning Heinold wrote: > > +krb5_do_unpack() { > > + tar xzf ${WORKDIR}/krb5-1.8.5.tar.gz -C ${WORKDIR}/ > > +} > How do this differ from the unpack in the normal classes? > > Are you able to clean it up? krb5 release tarball contains two files: signature and release tarball :) > > + > > +python do_unpack() { > > + bb.build.exec_func('base_do_unpack', d) > > + bb.build.exec_func('krb5_do_unpack', d) > > +} > > + > > +do_configure() { > > + oe_runconf > > +} > > + > > +SRC_URI[md5sum] = "48b17caedf19d07d714a8d7a25422c95" > > +SRC_URI[sha256sum] = "7d6989efaaf0b3330ce5b329edb1d0bf33250ca78b789fdd117e02c49c238812" > > -- > > 1.7.7.6 > > > > Did you check if it is a version which do not have security bugs? 1.8.5 is latest maintenance release of 1.8 branch (02 Nov 2011). Maybe 1.9.2 is more suitable for OE, but we tested 1.8 as our customer required.
Patch
diff --git a/meta/recipes-connectivity/krb5/krb5_1.8.5.bb b/meta/recipes-connectivity/krb5/krb5_1.8.5.bb new file mode 100644 index 0000000..2f497a3 --- /dev/null +++ b/meta/recipes-connectivity/krb5/krb5_1.8.5.bb @@ -0,0 +1,39 @@ +DESCRIPTION = "A network authentication protocol" +HOMEPAGE = "http://web.mit.edu/Kerberos/" +SECTION = "console/network" +PR = "r0" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${S}/../README;md5=5595a75ae6fab5f825f579a817baa618" +DEPENDS = "ncurses util-linux e2fsprogs-native" + +inherit autotools binconfig perlnative + +SRC_URI = "http://web.mit.edu/kerberos/dist/krb5/1.8/krb5-1.8.5-signed.tar" + +S = "${WORKDIR}/${PN}-${PV}/src/" + +EXTRA_OECONF += " --without-tcl --with-system-et" +CACHED_CONFIGUREVARS += "krb5_cv_attr_constructor_destructor=yes ac_cv_func_regcomp=yes \ + ac_cv_printf_positional=yes ac_cv_file__etc_environment=yes \ + ac_cv_file__etc_TIMEZONE=no" + +CFLAGS_append += "-DDESTRUCTOR_ATTR_WORKS=1 -I${STAGING_INCDIR}/et" +LDFLAGS_append += "-lpthread" + +FILES_${PN}-doc += ${datadir}/examples + +krb5_do_unpack() { + tar xzf ${WORKDIR}/krb5-1.8.5.tar.gz -C ${WORKDIR}/ +} + +python do_unpack() { + bb.build.exec_func('base_do_unpack', d) + bb.build.exec_func('krb5_do_unpack', d) +} + +do_configure() { + oe_runconf +} + +SRC_URI[md5sum] = "48b17caedf19d07d714a8d7a25422c95" +SRC_URI[sha256sum] = "7d6989efaaf0b3330ce5b329edb1d0bf33250ca78b789fdd117e02c49c238812"
Add building of MIT Kerberos implementation. The recipe was picked from OE-Classic & updated to new version Signed-off-by: Yauhen Kharuzhy <yauhen.kharuzhy@promwad.com> --- meta/recipes-connectivity/krb5/krb5_1.8.5.bb | 39 ++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-connectivity/krb5/krb5_1.8.5.bb