diff options
author | Tim 'timtim' Ellis <tim.ellis@foonas.org> | 2009-01-26 17:59:28 +0000 |
---|---|---|
committer | Tim 'timtim' Ellis <tim.ellis@foonas.org> | 2009-01-26 17:59:28 +0000 |
commit | 68cc4e5cd5ffb157eefcfc9f870863b3f05b6490 (patch) | |
tree | 7af03f6cf76f87aaba8e3d9658c4d717676a5c2a /packages/krb | |
parent | ba8842f69554d6acb2caedc43e6f35af9bf6c077 (diff) |
krb5: Add krb5 1.6.3 - the MIT kerberos 5 implementation
Diffstat (limited to 'packages/krb')
-rw-r--r-- | packages/krb/krb5_1.6.3.bb | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/packages/krb/krb5_1.6.3.bb b/packages/krb/krb5_1.6.3.bb new file mode 100644 index 0000000000..c77c606eb5 --- /dev/null +++ b/packages/krb/krb5_1.6.3.bb @@ -0,0 +1,93 @@ +DESCRIPTION = "A network authentication protocol" +HOMEPAGE = "http://web.mit.edu/Kerberos/" +SECTION = "console/network" +PR = "r3" +LICENSE = "MIT" +DEPENDS = "perl-native ncurses e2fsprogs-libs" + +inherit autotools binconfig + +SRC_URI = "http://web.mit.edu/kerberos/dist/krb5/1.6/krb5-1.6.3-signed.tar" +S = "${WORKDIR}/${PN}-${PV}/src/" + +# Will clean this up... +EXTRA_OECONF += " 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 --with-system-et" +CFLAGS_append += "-DDESTRUCTOR_ATTR_WORKS=1 -I${STAGING_INCDIR}/et" +LDFLAGS_append += "-lpthread" + +FILES_${PN}-doc += /usr/share/examples + +do_configure() { + tar xzf ${WORKDIR}/krb5-1.6.3.tar.gz -C ${WORKDIR}/ + oe_runconf +} + +do_install_append () { + mv ${D}${bindir}/ftp ${D}${bindir}/ftp.${PN} + mv ${D}${sbindir}/ftpd ${D}${sbindir}/ftpd.${PN} + mv ${D}${bindir}/telnet ${D}${bindir}/telnet.${PN} + mv ${D}${sbindir}/telnetd ${D}${sbindir}/telnetd.${PN} +} + +pkg_postinst_${PN} () { +#!/bin/sh + update-alternatives --install ${bindir}/ftp ftp ftp.${PN} 100 + update-alternatives --install ${sbindir}/ftpd ftpd ftpd.${PN} 100 + update-alternatives --install ${bindir}/telnet telnet telnet.${PN} 100 + update-alternatives --install ${sbindir}/telnetd telnetd telnetd.${PN} 100 +} + +pkg_prerm_${PN} () { +#!/bin/sh + update-alternatives --remove ftp ftp.${PN} 100 + update-alternatives --remove ftpd ftpd.${PN} 100 + update-alternatives --remove telnet telnet.${PN} 100 + update-alternatives --remove telnetd telnetd.${PN} 100 +} + +do_stage() { + oe_libinstall -so -C util/support libkrb5support ${STAGING_LIBDIR} + oe_libinstall -so -C util/et libcom_err ${STAGING_LIBDIR} + oe_libinstall -so -C lib/crypto libk5crypto ${STAGING_LIBDIR} + oe_libinstall -so -C lib/krb5 libkrb5 ${STAGING_LIBDIR} + oe_libinstall -so -C lib/des425 libdes425 ${STAGING_LIBDIR} + oe_libinstall -so -C lib/krb4 libkrb4 ${STAGING_LIBDIR} + oe_libinstall -so -C lib/gssapi libgssapi_krb5 ${STAGING_LIBDIR} + oe_libinstall -so -C lib/rpc libgssrpc ${STAGING_LIBDIR} + oe_libinstall -so -C lib/kdb libkdb5 ${STAGING_LIBDIR} + oe_libinstall -so -C lib/kadm5/clnt libkadm5clnt ${STAGING_LIBDIR} + oe_libinstall -so -C lib/kadm5/srv libkadm5srv ${STAGING_LIBDIR} + + install -d ${STAGING_INCDIR}/krb5 + for X in krb5.h locate_plugin.h + do + install -m 0644 ${S}/include/krb5/$X ${STAGING_INCDIR}/krb5/$X + done + + install -d ${STAGING_INCDIR}/gssapi + for X in gssapi_generic.h gssapi.h gssapi_krb5.h + do + install -m 0644 ${S}/include/gssapi/$X ${STAGING_INCDIR}/gssapi/$X + done + install -m 0644 ${S}/lib/gssapi/mechglue/mechglue.h ${STAGING_INCDIR}/gssapi/mechglue.h + + install -d ${STAGING_INCDIR}/kerberosIV + for X in krb.h des.h mit-copyright.h krb_err.h kadm_err.h + do + install -m 0644 ${S}/include/kerberosIV/$X ${STAGING_INCDIR}/kerberosIV/$X + done + + install -d ${STAGING_INCDIR}/gssrpc + for X in auth.h auth_gss.h auth_gssapi.h auth_unix.h clnt.h netdb.h pmap_clnt.h pmap_prot.h pmap_rmt.h rename.h rpc.h rpc_msg.h svc.h svc_auth.h xdr.h types.h + do + install -m 0644 ${S}/include/gssrpc/$X ${STAGING_INCDIR}/gssrpc/$X + done + + # com_err.h needs to be added here if you choose to use this builtin + for X in krb5.h profile.h gssapi.h + do + install -m 0644 ${S}/include/$X ${STAGING_INCDIR}/$X + done +} |