diff options
author | 2015-07-31 05:25:27 +0000 | |
---|---|---|
committer | 2015-07-31 05:25:27 +0000 | |
commit | fd354890fffa45b129e8ab8f1a09e2f51e59c6bd (patch) | |
tree | e16dcf5bfb1a98c22e253a59f285163ffc4c04be /app-crypt | |
parent | Version bump (untested). (diff) | |
download | historical-fd354890fffa45b129e8ab8f1a09e2f51e59c6bd.tar.gz historical-fd354890fffa45b129e8ab8f1a09e2f51e59c6bd.tar.bz2 historical-fd354890fffa45b129e8ab8f1a09e2f51e59c6bd.zip |
Remove old
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Manifest-Sign-Key: 0x77F1F175586A3B1F
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/mit-krb5/ChangeLog | 7 | ||||
-rw-r--r-- | app-crypt/mit-krb5/Manifest | 39 | ||||
-rw-r--r-- | app-crypt/mit-krb5/files/2015-001-patch-r113.patch | 343 | ||||
-rw-r--r-- | app-crypt/mit-krb5/files/mit-krb5-CVE-2014-5353.patch | 19 | ||||
-rw-r--r-- | app-crypt/mit-krb5/files/mit-krb5-CVE-2014-5354.patch | 56 | ||||
-rw-r--r-- | app-crypt/mit-krb5/mit-krb5-1.13-r1.ebuild | 154 | ||||
-rw-r--r-- | app-crypt/mit-krb5/mit-krb5-1.13.1.ebuild | 151 |
7 files changed, 23 insertions, 746 deletions
diff --git a/app-crypt/mit-krb5/ChangeLog b/app-crypt/mit-krb5/ChangeLog index 46f993c462c0..86011f5fbaba 100644 --- a/app-crypt/mit-krb5/ChangeLog +++ b/app-crypt/mit-krb5/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-crypt/mit-krb5 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.464 2015/07/23 09:34:07 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.465 2015/07/31 05:25:25 eras Exp $ + + 31 Jul 2015; Eray Aslan <eras@gentoo.org> -files/2015-001-patch-r113.patch, + -files/mit-krb5-CVE-2014-5353.patch, -files/mit-krb5-CVE-2014-5354.patch, + -mit-krb5-1.13-r1.ebuild, -mit-krb5-1.13.1.ebuild: + Remove old 23 Jul 2015; Agostino Sarubbo <ago@gentoo.org> mit-krb5-1.13.2.ebuild: Stable for sparc, wrt bug #548026 diff --git a/app-crypt/mit-krb5/Manifest b/app-crypt/mit-krb5/Manifest index 25a03f5f6cf2..2e2c33b5c0cc 100644 --- a/app-crypt/mit-krb5/Manifest +++ b/app-crypt/mit-krb5/Manifest @@ -1,37 +1,32 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 -AUX 2015-001-patch-r113.patch 12569 SHA256 c41cb0dd88abb53543697a6e91832d6e0639a99a811c3092904eff03fa4b5ec6 SHA512 9c3d1f75ba6814dc8864a6b6c5a5e53d729ec2f8fe468036bea5cb540ac4a58b4748c5af920c61347fe71af8d900501b68b5d3f538bc89791d7bfde70e1ebb69 WHIRLPOOL 771fa37b8496a77e9913c4882ea7ab8e03cc9dd32b00c024549f54c15d0dba1bbcf3e224abb567dc1acfc13d6e33ffa2b9973c777d4f730c3c5b95b1196e90aa AUX kpropd.xinetd 194 SHA256 eaa3838a6ca8db901db359cac3435d4f703a9a10534f02eeb37f494dd21a1736 SHA512 c9bbd13f2fadfd2a925bfae834ba61f227cd4386b4c4466b5227d93c792f4549778ef4d6e08353372df99804459277c71f61b41ec71f3afcc600d73c5705f72f WHIRLPOOL d77ae7b0094c4f42a7ea9cee5d36d0dba844a9ed5d59c621e47c7fa4b75c84fec3414e079c570513711b378d1b0fef61156f675a0df79ee61540d9492416fe42 AUX mit-krb5-1.12_warn_cflags.patch 448 SHA256 67d3c91061933bd5393b9a6ee8fe2e3f5cd287c4eee7b92798cc2e201712c681 SHA512 42364d9cd8c0a6fd28ae661eeac4d0dd3f2001fe290bf9731ee99c2c786a6488805fc93057d59e201e2cef1e5280af4c170187aa5603f4cf542906abc0fccc2b WHIRLPOOL 9fa704dde00b0201d765199893bf787c5c104070596b05bc12e7f41ae21c4c60c8d25b21fe8573ecd3e63ab769238a78c5cf70f4d086a23f71423b1cad283eaa -AUX mit-krb5-CVE-2014-5353.patch 820 SHA256 dbe25b16592a11e4c04652f0fc0267cf09bf7d6536b1eae063022ea2f90c4c81 SHA512 db45cf33516483024cc11242d35b011c750c61c77fc4baaa952172d36a2484f2ffee0bc6170e3d54ac34155f284bb40d73bbb9843fc78cfc127807efb960b8ea WHIRLPOOL 27150b91e0b9d055caff9bd6e8bb736e0bf25836ad719384a1b1456c70a48f64c815dabe445ccfe7eb42280ae7d91440994c2ce46cf9ca77195621ed0ece399a -AUX mit-krb5-CVE-2014-5354.patch 2344 SHA256 8cb9458dba6bd3e195c95d09097d69a2dedf687a7f5111f9d4ba54498b1e524c SHA512 134e3efb0fc9e562ba47b8ac013f62c6e3fa438ee8df1b68426303c8892f647aa74a6476be80d54ed7a1dd68dc60430f1bd15d6a04ae840a3c7fbe5a9f86298d WHIRLPOOL 611fe25ea4e9e5ffef5fab294843f1fd566c0cb5dbbd9e75879159ab902c42b0b127b451c35e50797cb36d8af2f131661773b0b856eaf762f8081310de4d498e AUX mit-krb5-config_LDFLAGS.patch 466 SHA256 fbb4d9be71ef536a344d415b9c56ea42c5c2a2ef02ec3a866d9da47b3acd93d3 SHA512 9a1ca9b33e7708346eda78d199fdc51f0d7bd08d3d65ea15a19955a6155ab71b8ee0c8989859d6dff293a141f197ea19394a91b3b641181140a289b743e0f0e7 WHIRLPOOL f6c58e652c4c365c4f28894d404413a075cc6c5323f83b18d711dc831bb574623db371ccbc1a5aae0ddf030a1b85e1ad50c06f5904ae5554bb4026e464a2c75f AUX mit-krb5kadmind.initd-r1 592 SHA256 3e55c79f19aaa6ef6b64a621c03dbb2eac3ad923916dc803f4c1bfe48ce89fbb SHA512 f0595e9bbcd85badb403af7febce1fa28278bd7fc8118498948171ea12a27ce8b3c479a34b36639d7370193bc69a0b093ae7e3b66473078dabc38864fec931e9 WHIRLPOOL 16147fc873ad16c16410e82df817fdb7ff068ef5cc1c50d9bb5558f134db36d516ab80628714e836a20883d0d1dfd17bfca5a41225be4ecca270580f2db28e70 AUX mit-krb5kdc.initd-r1 556 SHA256 709309dea043aa306c2fcf0960e0993a6db540c220de64cf92d6b85f1cca23c5 SHA512 d6d0076886ce284fc395fafc2dc253b4b3ee97b2986dea51388d96a1e1294680fb171f475efc7844559e2c6aac44b26678a9255921db9a58dcf2e7164f0aeec5 WHIRLPOOL 87e54c3df6b8b45058fe0c90c25946e37228aba32077ebcb595a82a0a6fc7268a516dcb1cfd0ce3fd82afedf19b5df2399ac05931f207d0f3d2e26afd590abef AUX mit-krb5kpropd.initd-r1 595 SHA256 c374ea05d7e9f15e10c8f9dbd0cad6548e0f92aef7de33e5dbc27222e9407e7b SHA512 a18c523aebbb6b8512cd261eac2149c7422214ef6a233e1ceb1b4da9187eeca317ddd75a153b13382571778931bbed00b1803ed015ff01875c8d565b3f3a593f WHIRLPOOL 869f8aec4764a12b5b5506a2fab8ea2641b58cb347a1db60110cccbb011dc51ab9115824828184abc55efccf540d6b014a57e0891b1d6d4ce28ff35405197aeb -DIST krb5-1.13-signed.tar 12083200 SHA256 dc8f79ae9ab777d0f815e84ed02ac4ccfe3d5826eb4947a195dfce9fd95a9582 SHA512 99cf647ab39f5a34acaf2049908f91d3f3822f4afd3b9dad1630b31c72518398069f4f3d3840168122cb12aa5e5540466729bc714fbda96eb9403e635f88d244 WHIRLPOOL 4cb9bff7c9bf97cbe2a41eaa0f253a8c891b9beff9a2e65f1652eae235c90b811efeae1ee7b608e90ad993a3959a787a06a34f62cec1a709b2fe6ec59f91e3d1 -DIST krb5-1.13.1-signed.tar 12093440 SHA256 4df629fdf97f362cf81edbf38d613b32b492dd88c876cf3aa1c66562f296663e SHA512 f26dce8f682bd3fbf38a15df5f91722b573d4df4cc193f7ba8dc369cbbee8f4bc2a72f56513d2cf27697ce8baaf954afe04e3eefc15c2883fa1d5260145aef6e WHIRLPOOL ec44c449661124e5352c67a8256f2e314e5ef1e9fbdd49405d70f461d9f5bc925b5b71fd4d4ef15f28d233337fb44c09ba89edeb86ac8e750b2252b8cbd38ec1 DIST krb5-1.13.2-signed.tar 12113920 SHA256 e528c30b0209c741f6f320cb83122ded92f291802b6a1a1dc1a01dcdb3ff6de1 SHA512 d3f8dde220876bd24703c488122ba8e54ffaa7f8f2c7d325e5d198a4e171248673fc1d5d3c997c6d2e66c314e2b7f4609eb980a789c3556a79458ab4411e61b5 WHIRLPOOL 9f29f4d76b7b2225f18707a95b217ce0eab7ae963ba547460fa6e7ffdc43e3c350ae070265c52b9751a70f80a95086e39c29dc2c44e0a22d17f9b48f7bf838f7 -EBUILD mit-krb5-1.13-r1.ebuild 4000 SHA256 46cf2daaa9ce394868ff57f03f730db17b24d7b24a1fe863a59e96b3895fc342 SHA512 04a0c93533ee3a8ab88e5da3b3b64ff20edac58838b1329a085d1d8970331c89a91732b612953e62ccbd10c9fe02601c4479b4492a1a5397aeca71b71daf8cd8 WHIRLPOOL 283f2e5f6773f776b7352b69984b0cf993ec80cb07660937bf7b345c6129004a2767fa7792a9095219c9913a31ff86f6e408902338d02c7c477d0ce647d99345 -EBUILD mit-krb5-1.13.1.ebuild 3863 SHA256 66dd40093eaa089dca02f1768549104f596413589ba8a0f8adf22e5348d2096e SHA512 ea256ce47f0bf7916ea7a8068142edf3d0396e1c3e605ca046b169b0f14f3f3cae851db9f10d15d21041ea109626faf09d981d0411fe0e0e1949b4a3a14a1ad8 WHIRLPOOL 1b8a9b676f37935befa01e279a4215ad59751972ab5742b5d7759ff969fd318984b3aae60fc839a11bd7ca526fbff59447f9b56babe5953bb5291c9c54341022 EBUILD mit-krb5-1.13.2.ebuild 3854 SHA256 539460b81f61d0377955c1f74e1a1df627aa1e4a56b8b9c39127dae69cea4f6f SHA512 c83dd0df69ebea519ca6d346d0c6a5c3cc3397949f1d03e6a84b4f197f81fc8c8fd125fa48bea1ffb32b1b23987b46c8ae6bbdc6a496fd88ece8e1817955640a WHIRLPOOL 7849e5ccb5c02a8c52f204a4fdc7aeff1099d982677404fa33db089d67194ff81ef8272c5046df1493e4fe22c5da14b77c4ba20fda4f13ae3f092e9617f88841 -MISC ChangeLog 69509 SHA256 c9225008cc473c3dfc52586e43d436488ed96989ba66dec1419ba72c2ab42f1c SHA512 42b51382da7942913727cab86100a9f8cf8d4e9d87e69f2674a252b8bf3c14039995f7ede3d67f447c05cdef09cc91c1ff78f54a937aece64dcbd1af94ff57ae WHIRLPOOL 908c785a20965a08851c4a05a44063398d4fc8599b860d4555bac1549e5753718bef5761bf87b54fbd2562f6e281936622f7f85e192538433ddc8bd6a221ff8d +MISC ChangeLog 69731 SHA256 b36a2d9ca5172503de725c371c312d47f4eea26af2d43011d1c2c23f6f637a6f SHA512 9d54838fda9eade825266ff2480848c0d1cdd89dba306fd2598f75399eca04440517ed78844d742c17da48cbb6f3c80c6212eed2fba715a0f8dd58f8635badfa WHIRLPOOL 47435d373fa97d0eaa99f92870f7e759b8a1defc0f41b668ea05b3c72b93d0b4d0516639f326417744cc30008a871b20365301c5bf0b6676b22e61d092c7cd4b MISC metadata.xml 668 SHA256 da5862dde92f34b882870961cb9f1e4aa8209fc549e32a43d99770a9de8b232d SHA512 0038aeb7cda74161d2e2fe97c5124ee6cc86a24b9503714c128cd8b9af8b8050a89cf5dd3aadd66b1714c1d1aeb8564d50479547a586200793ea485e9f9c6c8b WHIRLPOOL 52394a4f4d5acb11f3bf2e76e036707c7f7741990d70bafb5c87a6da5d191b6aee3cb8383f6e66694cbda7458eb1a869c7ec8758750741835e2f1af4e028378c -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2 +Version: GnuPG v2.1 -iQIcBAEBCAAGBQJVsLUQAAoJELp701BxlEWfc7MP/2agHkt+2pdoHFrnKaj5wazG -ByfC5QGa6WHm+XzPBf8F7wzitrJeCf8hHNdOdVuRusXSkWiC3xq7OdayFS9wkIYa -stCwqN1wXR3vwJPGxbUcpN0JNPJCq0vwVvok47IkayjI4bSoS3b0na3ZI289owQq -XQ4TSVkf513o8vtQLKRh2Y8xMHXAYDBobHy1k6z60TnFloTZMBq3XlLM82eh6SM1 -NXT6Oe6DX/kbpe+YurN230WErtQBLJSFCITkvu0etTQRvPW83gFpkPEw/+12mLLM -L1IY4vjsLyC0P7+UXKip4mep3Z9frCjDHG3sw4h2cuykNIEQvWzKl1Ty9VibGY2C -cvhw4GUTiwGzc+FBbnMJjhF4XLWciI9R2x2MFH1TEzJ7XX8plQpm2/x+UEulRPCY -rdQ4U/JLAF63VRvbPIJG22VAX5DpwkcaKsy5acyjVcrrCcZ5cTw02FO3zz6BD3YN -yq4EZ9a4tfOhR4auUid7YtFxSFFGKT2wtDfKr6+tw/7FmoLUu37YlcD/TCmamEwi -HMxOM2rTRFlt22DFU295mZkDzUNi/vTNFfpd5QLSux8Nq4WgsbXb6IuRc5n8ZLEl -Bcdo2eGQC9t+cNBePkRQtxQooquCohsyfgLP6PSremrJUkAWFCeIIQM0nB0i+rWK -W1Y1cMYhiXbj92BKker5 -=1SIe +iQJ8BAEBCABmBQJVuwbHXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBQjk1NkM0NUMxNzFCRTY4Rjk4NENDMDk3 +N0YxRjE3NTU4NkEzQjFGAAoJEHfx8XVYajsftGsP/ikD72dztENkjhyv0Mpme2N3 +TjnzHr3SVQejhhUUv0dLgWPpd40+4gmQqcspET6Z6CpR9F8UKp0YdElmM9ud3vHh +lK1R3x5sLphhqCAq02988F+/U8pelTSnObZmIz5vDscw89AH2et1KufoTLbVvoNz +63/bu65xI4vd64kFZNiwW/4IxQ1CyyZ/ifNYXM/Mj7EypJOC26Kc7OLNdpPNzCY9 +v0TDaVXxVtWDUP2hg9e/BvGGyQeyfa76u+M3yWcQ2qp+cpaA3Y7TG3CaVeSUeNqU +xVVJOeJ+0FPjCOm/0Iozhj18Or/MGxTG6wtYBE6JPOcovXslb45nTp3L8AS8i+4G +pP4eKDrbEAurA+jd5HRY5f01wkTQI4UJ0Gv06/1y+GOrJvza5hrrHE0mhf1TrBo/ +OsozyQo7bpIUtGZNXtp+m18239r33+CdzUOf4brbbRtHIheLXwBZkywTwgMjdLH0 +cNtISRhzQN5s8/euPz1BoaV9mg15Q3pqb7FPzusvgR6icgRmlpIC61+V/CcX+1W3 +xmWCUjFaxNa65kPLkdBGhCmLn/+80xplBSuSOPEr6WIfGkEJqpQtzzgOM1aVS+h5 +ekrA01Ldrm7Row1q08WfeHRgUjNcuydmm7S3pQP/Nf/EZnirRJNnWO/8z/CYJWLG +ifi6AojStrsqAPUS91Uf +=tnMu -----END PGP SIGNATURE----- diff --git a/app-crypt/mit-krb5/files/2015-001-patch-r113.patch b/app-crypt/mit-krb5/files/2015-001-patch-r113.patch deleted file mode 100644 index 455735ba41c8..000000000000 --- a/app-crypt/mit-krb5/files/2015-001-patch-r113.patch +++ /dev/null @@ -1,343 +0,0 @@ -diff --git a/src/kadmin/server/kadm_rpc_svc.c b/src/kadmin/server/kadm_rpc_svc.c -index 3837931..f4d2a7c 100644 ---- a/src/kadmin/server/kadm_rpc_svc.c -+++ b/src/kadmin/server/kadm_rpc_svc.c -@@ -4,7 +4,7 @@ - * - */ - --#include <k5-platform.h> -+#include <k5-int.h> - #include <gssrpc/rpc.h> - #include <gssapi/gssapi_krb5.h> /* for gss_nt_krb5_name */ - #include <syslog.h> -@@ -296,14 +296,8 @@ check_rpcsec_auth(struct svc_req *rqstp) - c1 = krb5_princ_component(kctx, princ, 0); - c2 = krb5_princ_component(kctx, princ, 1); - realm = krb5_princ_realm(kctx, princ); -- if (strncmp(handle->params.realm, realm->data, realm->length) == 0 -- && strncmp("kadmin", c1->data, c1->length) == 0) { -- -- if (strncmp("history", c2->data, c2->length) == 0) -- goto fail_princ; -- else -- success = 1; -- } -+ success = data_eq_string(*realm, handle->params.realm) && -+ data_eq_string(*c1, "kadmin") && !data_eq_string(*c2, "history"); - - fail_princ: - if (!success) { -diff --git a/src/lib/gssapi/krb5/context_time.c b/src/lib/gssapi/krb5/context_time.c -index b3d1db0..a18cfb0 100644 ---- a/src/lib/gssapi/krb5/context_time.c -+++ b/src/lib/gssapi/krb5/context_time.c -@@ -40,7 +40,7 @@ krb5_gss_context_time(minor_status, context_handle, time_rec) - - ctx = (krb5_gss_ctx_id_rec *) context_handle; - -- if (! ctx->established) { -+ if (ctx->terminated || !ctx->established) { - *minor_status = KG_CTX_INCOMPLETE; - return(GSS_S_NO_CONTEXT); - } -diff --git a/src/lib/gssapi/krb5/export_sec_context.c b/src/lib/gssapi/krb5/export_sec_context.c -index 18a3a34..1b3de68 100644 ---- a/src/lib/gssapi/krb5/export_sec_context.c -+++ b/src/lib/gssapi/krb5/export_sec_context.c -@@ -45,6 +45,11 @@ krb5_gss_export_sec_context(minor_status, context_handle, interprocess_token) - *minor_status = 0; - - ctx = (krb5_gss_ctx_id_t) *context_handle; -+ if (ctx->terminated) { -+ *minor_status = KG_CTX_INCOMPLETE; -+ return (GSS_S_NO_CONTEXT); -+ } -+ - context = ctx->k5_context; - kret = krb5_gss_ser_init(context); - if (kret) -diff --git a/src/lib/gssapi/krb5/gssapiP_krb5.h b/src/lib/gssapi/krb5/gssapiP_krb5.h -index 7e807cc..a0e8625 100644 ---- a/src/lib/gssapi/krb5/gssapiP_krb5.h -+++ b/src/lib/gssapi/krb5/gssapiP_krb5.h -@@ -206,6 +206,7 @@ typedef struct _krb5_gss_ctx_id_rec { - unsigned int established : 1; - unsigned int have_acceptor_subkey : 1; - unsigned int seed_init : 1; /* XXX tested but never actually set */ -+ unsigned int terminated : 1; - OM_uint32 gss_flags; - unsigned char seed[16]; - krb5_gss_name_t here; -diff --git a/src/lib/gssapi/krb5/gssapi_krb5.c b/src/lib/gssapi/krb5/gssapi_krb5.c -index 6456b23..77b7fff 100644 ---- a/src/lib/gssapi/krb5/gssapi_krb5.c -+++ b/src/lib/gssapi/krb5/gssapi_krb5.c -@@ -369,7 +369,7 @@ krb5_gss_inquire_sec_context_by_oid (OM_uint32 *minor_status, - - ctx = (krb5_gss_ctx_id_rec *) context_handle; - -- if (!ctx->established) -+ if (ctx->terminated || !ctx->established) - return GSS_S_NO_CONTEXT; - - for (i = 0; i < sizeof(krb5_gss_inquire_sec_context_by_oid_ops)/ -diff --git a/src/lib/gssapi/krb5/inq_context.c b/src/lib/gssapi/krb5/inq_context.c -index eacb0fd..096df2a 100644 ---- a/src/lib/gssapi/krb5/inq_context.c -+++ b/src/lib/gssapi/krb5/inq_context.c -@@ -105,7 +105,7 @@ krb5_gss_inquire_context(minor_status, context_handle, initiator_name, - - ctx = (krb5_gss_ctx_id_rec *) context_handle; - -- if (! ctx->established) { -+ if (ctx->terminated || !ctx->established) { - *minor_status = KG_CTX_INCOMPLETE; - return(GSS_S_NO_CONTEXT); - } -diff --git a/src/lib/gssapi/krb5/k5seal.c b/src/lib/gssapi/krb5/k5seal.c -index 7665cba..f1c74dd 100644 ---- a/src/lib/gssapi/krb5/k5seal.c -+++ b/src/lib/gssapi/krb5/k5seal.c -@@ -342,7 +342,7 @@ kg_seal(minor_status, context_handle, conf_req_flag, qop_req, - - ctx = (krb5_gss_ctx_id_rec *) context_handle; - -- if (! ctx->established) { -+ if (ctx->terminated || !ctx->established) { - *minor_status = KG_CTX_INCOMPLETE; - return(GSS_S_NO_CONTEXT); - } -diff --git a/src/lib/gssapi/krb5/k5sealiov.c b/src/lib/gssapi/krb5/k5sealiov.c -index a129670..b53e348 100644 ---- a/src/lib/gssapi/krb5/k5sealiov.c -+++ b/src/lib/gssapi/krb5/k5sealiov.c -@@ -281,7 +281,7 @@ kg_seal_iov(OM_uint32 *minor_status, - } - - ctx = (krb5_gss_ctx_id_rec *)context_handle; -- if (!ctx->established) { -+ if (ctx->terminated || !ctx->established) { - *minor_status = KG_CTX_INCOMPLETE; - return GSS_S_NO_CONTEXT; - } -diff --git a/src/lib/gssapi/krb5/k5unseal.c b/src/lib/gssapi/krb5/k5unseal.c -index 0573958..673c883 100644 ---- a/src/lib/gssapi/krb5/k5unseal.c -+++ b/src/lib/gssapi/krb5/k5unseal.c -@@ -492,7 +492,7 @@ kg_unseal(minor_status, context_handle, input_token_buffer, - - ctx = (krb5_gss_ctx_id_rec *) context_handle; - -- if (! ctx->established) { -+ if (ctx->terminated || !ctx->established) { - *minor_status = KG_CTX_INCOMPLETE; - return(GSS_S_NO_CONTEXT); - } -diff --git a/src/lib/gssapi/krb5/k5unsealiov.c b/src/lib/gssapi/krb5/k5unsealiov.c -index f34d802..8b67042 100644 ---- a/src/lib/gssapi/krb5/k5unsealiov.c -+++ b/src/lib/gssapi/krb5/k5unsealiov.c -@@ -625,7 +625,7 @@ kg_unseal_iov(OM_uint32 *minor_status, - OM_uint32 code; - - ctx = (krb5_gss_ctx_id_rec *)context_handle; -- if (!ctx->established) { -+ if (ctx->terminated || !ctx->established) { - *minor_status = KG_CTX_INCOMPLETE; - return GSS_S_NO_CONTEXT; - } -diff --git a/src/lib/gssapi/krb5/lucid_context.c b/src/lib/gssapi/krb5/lucid_context.c -index 85df7fd..449e71f 100644 ---- a/src/lib/gssapi/krb5/lucid_context.c -+++ b/src/lib/gssapi/krb5/lucid_context.c -@@ -75,6 +75,11 @@ gss_krb5int_export_lucid_sec_context( - *minor_status = 0; - *data_set = GSS_C_NO_BUFFER_SET; - -+ if (ctx->terminated || !ctx->established) { -+ *minor_status = KG_CTX_INCOMPLETE; -+ return GSS_S_NO_CONTEXT; -+ } -+ - retval = generic_gss_oid_decompose(minor_status, - GSS_KRB5_EXPORT_LUCID_SEC_CONTEXT_OID, - GSS_KRB5_EXPORT_LUCID_SEC_CONTEXT_OID_LENGTH, -diff --git a/src/lib/gssapi/krb5/prf.c b/src/lib/gssapi/krb5/prf.c -index e19291f..e897074 100644 ---- a/src/lib/gssapi/krb5/prf.c -+++ b/src/lib/gssapi/krb5/prf.c -@@ -58,6 +58,10 @@ krb5_gss_pseudo_random(OM_uint32 *minor_status, - ns.data = NULL; - - ctx = (krb5_gss_ctx_id_t)context; -+ if (ctx->terminated || !ctx->established) { -+ *minor_status = KG_CTX_INCOMPLETE; -+ return GSS_S_NO_CONTEXT; -+ } - - switch (prf_key) { - case GSS_C_PRF_KEY_FULL: -diff --git a/src/lib/gssapi/krb5/process_context_token.c b/src/lib/gssapi/krb5/process_context_token.c -index ae33180..a672f48 100644 ---- a/src/lib/gssapi/krb5/process_context_token.c -+++ b/src/lib/gssapi/krb5/process_context_token.c -@@ -39,11 +39,18 @@ krb5_gss_process_context_token(minor_status, context_handle, - - ctx = (krb5_gss_ctx_id_t) context_handle; - -- if (! ctx->established) { -+ if (ctx->terminated || !ctx->established) { - *minor_status = KG_CTX_INCOMPLETE; - return(GSS_S_NO_CONTEXT); - } - -+ /* We only support context deletion tokens for now, and RFC 4121 does not -+ * define a context deletion token. */ -+ if (ctx->proto) { -+ *minor_status = 0; -+ return(GSS_S_DEFECTIVE_TOKEN); -+ } -+ - /* "unseal" the token */ - - if (GSS_ERROR(majerr = kg_unseal(minor_status, context_handle, -@@ -52,8 +59,8 @@ krb5_gss_process_context_token(minor_status, context_handle, - KG_TOK_DEL_CTX))) - return(majerr); - -- /* that's it. delete the context */ -- -- return(krb5_gss_delete_sec_context(minor_status, &context_handle, -- GSS_C_NO_BUFFER)); -+ /* Mark the context as terminated, but do not delete it (as that would -+ * leave the caller with a dangling context handle). */ -+ ctx->terminated = 1; -+ return(GSS_S_COMPLETE); - } -diff --git a/src/lib/gssapi/krb5/wrap_size_limit.c b/src/lib/gssapi/krb5/wrap_size_limit.c -index 7bc4221..ed5c599 100644 ---- a/src/lib/gssapi/krb5/wrap_size_limit.c -+++ b/src/lib/gssapi/krb5/wrap_size_limit.c -@@ -95,7 +95,7 @@ krb5_gss_wrap_size_limit(minor_status, context_handle, conf_req_flag, - } - - ctx = (krb5_gss_ctx_id_rec *) context_handle; -- if (! ctx->established) { -+ if (ctx->terminated || !ctx->established) { - *minor_status = KG_CTX_INCOMPLETE; - return(GSS_S_NO_CONTEXT); - } -diff --git a/src/lib/gssapi/mechglue/mglueP.h b/src/lib/gssapi/mechglue/mglueP.h -index e56b9c1..2b5145e 100644 ---- a/src/lib/gssapi/mechglue/mglueP.h -+++ b/src/lib/gssapi/mechglue/mglueP.h -@@ -25,7 +25,6 @@ do { \ - */ - typedef struct gss_union_ctx_id_struct { - struct gss_union_ctx_id_struct *loopback; -- struct gss_union_ctx_id_struct *interposer; - gss_OID mech_type; - gss_ctx_id_t internal_ctx_id; - } gss_union_ctx_id_desc, *gss_union_ctx_id_t; -diff --git a/src/lib/kadm5/kadm_rpc_xdr.c b/src/lib/kadm5/kadm_rpc_xdr.c -index 42ac783..975f94c 100644 ---- a/src/lib/kadm5/kadm_rpc_xdr.c -+++ b/src/lib/kadm5/kadm_rpc_xdr.c -@@ -320,6 +320,7 @@ bool_t xdr_krb5_tl_data(XDR *xdrs, krb5_tl_data **tl_data_head) - free(tl); - tl = tl2; - } -+ *tl_data_head = NULL; - break; - - case XDR_ENCODE: -@@ -1096,6 +1097,7 @@ xdr_krb5_principal(XDR *xdrs, krb5_principal *objp) - case XDR_FREE: - if(*objp != NULL) - krb5_free_principal(context, *objp); -+ *objp = NULL; - break; - } - return TRUE; -diff --git a/src/lib/rpc/auth_gssapi_misc.c b/src/lib/rpc/auth_gssapi_misc.c -index 53bdb98..a05ea19 100644 ---- a/src/lib/rpc/auth_gssapi_misc.c -+++ b/src/lib/rpc/auth_gssapi_misc.c -@@ -322,7 +322,6 @@ bool_t auth_gssapi_unwrap_data( - if (! (*xdr_func)(&temp_xdrs, xdr_ptr)) { - PRINTF(("gssapi_unwrap_data: deserializing arguments failed\n")); - gss_release_buffer(minor, &out_buf); -- xdr_free(xdr_func, xdr_ptr); - XDR_DESTROY(&temp_xdrs); - return FALSE; - } -diff --git a/src/lib/rpc/svc_auth_gss.c b/src/lib/rpc/svc_auth_gss.c -index 09a3534..b81c4a3 100644 ---- a/src/lib/rpc/svc_auth_gss.c -+++ b/src/lib/rpc/svc_auth_gss.c -@@ -65,16 +65,6 @@ extern const gss_OID_desc * const gss_mech_spkm3; - - extern SVCAUTH svc_auth_none; - --/* -- * from mit-krb5-1.2.1 mechglue/mglueP.h: -- * Array of context IDs typed by mechanism OID -- */ --typedef struct gss_union_ctx_id_t { -- gss_OID mech_type; -- gss_ctx_id_t internal_ctx_id; --} gss_union_ctx_id_desc, *gss_union_ctx_id_t; -- -- - static auth_gssapi_log_badauth_func log_badauth = NULL; - static caddr_t log_badauth_data = NULL; - static auth_gssapi_log_badauth2_func log_badauth2 = NULL; -@@ -239,16 +229,8 @@ svcauth_gss_accept_sec_context(struct svc_req *rqst, - gd->ctx = GSS_C_NO_CONTEXT; - goto errout; - } -- /* -- * ANDROS: krb5 mechglue returns ctx of size 8 - two pointers, -- * one to the mechanism oid, one to the internal_ctx_id -- */ -- if ((gr->gr_ctx.value = mem_alloc(sizeof(gss_union_ctx_id_desc))) == NULL) { -- fprintf(stderr, "svcauth_gss_accept_context: out of memory\n"); -- goto errout; -- } -- memcpy(gr->gr_ctx.value, gd->ctx, sizeof(gss_union_ctx_id_desc)); -- gr->gr_ctx.length = sizeof(gss_union_ctx_id_desc); -+ gr->gr_ctx.value = "xxxx"; -+ gr->gr_ctx.length = 4; - - /* gr->gr_win = 0x00000005; ANDROS: for debugging linux kernel version... */ - gr->gr_win = sizeof(gd->seqmask) * 8; -@@ -520,8 +502,6 @@ gssrpc__svcauth_gss(struct svc_req *rqst, struct rpc_msg *msg, - - if (!svcauth_gss_nextverf(rqst, htonl(gr.gr_win))) { - gss_release_buffer(&min_stat, &gr.gr_token); -- mem_free(gr.gr_ctx.value, -- sizeof(gss_union_ctx_id_desc)); - ret_freegc (AUTH_FAILED); - } - *no_dispatch = TRUE; -@@ -531,7 +511,6 @@ gssrpc__svcauth_gss(struct svc_req *rqst, struct rpc_msg *msg, - - gss_release_buffer(&min_stat, &gr.gr_token); - gss_release_buffer(&min_stat, &gd->checksum); -- mem_free(gr.gr_ctx.value, sizeof(gss_union_ctx_id_desc)); - if (!call_stat) - ret_freegc (AUTH_FAILED); - -diff --git a/src/tests/gssapi/t_prf.c b/src/tests/gssapi/t_prf.c -index 254f8fb..7f04899 100644 ---- a/src/tests/gssapi/t_prf.c -+++ b/src/tests/gssapi/t_prf.c -@@ -127,6 +127,7 @@ main(int argc, char *argv[]) - uctx.mech_type = &mech_krb5; - uctx.internal_ctx_id = (gss_ctx_id_t)&kgctx; - kgctx.k5_context = NULL; -+ kgctx.established = 1; - kgctx.have_acceptor_subkey = 1; - kb1.contents = k1buf; - kb2.contents = k2buf; diff --git a/app-crypt/mit-krb5/files/mit-krb5-CVE-2014-5353.patch b/app-crypt/mit-krb5/files/mit-krb5-CVE-2014-5353.patch deleted file mode 100644 index 8f8712beec5f..000000000000 --- a/app-crypt/mit-krb5/files/mit-krb5-CVE-2014-5353.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c -index 522773e..6779f51 100644 ---- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c -+++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c -@@ -314,10 +314,11 @@ krb5_ldap_get_password_policy_from_dn(krb5_context context, char *pol_name, - LDAP_SEARCH(pol_dn, LDAP_SCOPE_BASE, "(objectclass=krbPwdPolicy)", password_policy_attributes); - - ent=ldap_first_entry(ld, result); -- if (ent != NULL) { -- if ((st = populate_policy(context, ld, ent, pol_name, *policy)) != 0) -- goto cleanup; -+ if (ent == NULL) { -+ st = KRB5_KDB_NOENTRY; -+ goto cleanup; - } -+ st = populate_policy(context, ld, ent, pol_name, *policy); - - cleanup: - ldap_msgfree(result); diff --git a/app-crypt/mit-krb5/files/mit-krb5-CVE-2014-5354.patch b/app-crypt/mit-krb5/files/mit-krb5-CVE-2014-5354.patch deleted file mode 100644 index 3ec02bed0d8e..000000000000 --- a/app-crypt/mit-krb5/files/mit-krb5-CVE-2014-5354.patch +++ /dev/null @@ -1,56 +0,0 @@ -diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c -index 3e560d9..10b5982 100644 ---- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c -+++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c -@@ -406,14 +406,14 @@ krb5_encode_krbsecretkey(krb5_key_data *key_data_in, int n_key_data, - int num_versions = 1; - int i, j, last; - krb5_error_code err = 0; -- krb5_key_data *key_data; -+ krb5_key_data *key_data = NULL; - -- if (n_key_data <= 0) -+ if (n_key_data < 0) - return NULL; - - /* Make a shallow copy of the key data so we can alter it. */ - key_data = k5calloc(n_key_data, sizeof(*key_data), &err); -- if (key_data_in == NULL) -+ if (key_data == NULL) - goto cleanup; - memcpy(key_data, key_data_in, n_key_data * sizeof(*key_data)); - -@@ -467,9 +467,8 @@ krb5_encode_krbsecretkey(krb5_key_data *key_data_in, int n_key_data, - free(key_data); - if (err != 0) { - if (ret != NULL) { -- for (i = 0; i <= num_versions; i++) -- if (ret[i] != NULL) -- free (ret[i]); -+ for (i = 0; ret[i] != NULL; i++) -+ free (ret[i]); - free (ret); - ret = NULL; - } -@@ -1036,9 +1035,19 @@ krb5_ldap_put_principal(krb5_context context, krb5_db_entry *entry, - bersecretkey = krb5_encode_krbsecretkey (entry->key_data, - entry->n_key_data, mkvno); - -- if ((st=krb5_add_ber_mem_ldap_mod(&mods, "krbprincipalkey", -- LDAP_MOD_REPLACE | LDAP_MOD_BVALUES, bersecretkey)) != 0) -+ if (bersecretkey == NULL) { -+ st = ENOMEM; - goto cleanup; -+ } -+ /* An empty list of bervals is only accepted for modify operations, -+ * not add operations. */ -+ if (bersecretkey[0] != NULL || !create_standalone_prinicipal) { -+ st = krb5_add_ber_mem_ldap_mod(&mods, "krbprincipalkey", -+ LDAP_MOD_REPLACE | LDAP_MOD_BVALUES, -+ bersecretkey); -+ if (st != 0) -+ goto cleanup; -+ } - - if (!(entry->mask & KADM5_PRINCIPAL)) { - memset(strval, 0, sizeof(strval)); diff --git a/app-crypt/mit-krb5/mit-krb5-1.13-r1.ebuild b/app-crypt/mit-krb5/mit-krb5-1.13-r1.ebuild deleted file mode 100644 index 72caa35b4a62..000000000000 --- a/app-crypt/mit-krb5/mit-krb5-1.13-r1.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.13-r1.ebuild,v 1.11 2015/03/25 08:00:31 jlec Exp $ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit autotools eutils flag-o-matic multilib-minimal python-any-r1 versionator - -MY_P="${P/mit-}" -P_DIR=$(get_version_component_range 1-2) -DESCRIPTION="MIT Kerberos V" -HOMEPAGE="http://web.mit.edu/kerberos/www/" -SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar" - -LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 || ( BSD-2 GPL-2+ )" -SLOT="0" -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86" -IUSE="doc +keyutils openldap +pkinit selinux +threads test xinetd" - -CDEPEND=" - !!app-crypt/heimdal - >=sys-libs/e2fsprogs-libs-1.42.9[${MULTILIB_USEDEP}] - || ( - >=dev-libs/libverto-0.2.5[libev,${MULTILIB_USEDEP}] - >=dev-libs/libverto-0.2.5[libevent,${MULTILIB_USEDEP}] - >=dev-libs/libverto-0.2.5[tevent,${MULTILIB_USEDEP}] - ) - keyutils? ( >=sys-apps/keyutils-1.5.8[${MULTILIB_USEDEP}] ) - openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] ) - pkinit? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) - xinetd? ( sys-apps/xinetd ) - abi_x86_32? ( - !<=app-emulation/emul-linux-x86-baselibs-20140508-r1 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] - )" -DEPEND="${CDEPEND} - ${PYTHON_DEPS} - virtual/yacc - doc? ( virtual/latex-base ) - test? ( - ${PYTHON_DEPS} - dev-lang/tcl:0 - dev-util/dejagnu - )" -RDEPEND="${CDEPEND} - selinux? ( sec-policy/selinux-kerberos )" - -S=${WORKDIR}/${MY_P}/src - -MULTILIB_CHOST_TOOLS=( - /usr/bin/krb5-config -) - -src_unpack() { - unpack ${A} - unpack ./"${MY_P}".tar.gz -} - -src_prepare() { - epatch "${FILESDIR}/${PN}-1.12_warn_cflags.patch" - epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch" - epatch "${FILESDIR}/${PN}-CVE-2014-5353.patch" - epatch "${FILESDIR}/${PN}-CVE-2014-5354.patch" - epatch "${FILESDIR}/2015-001-patch-r113.patch" - - eautoreconf -} - -src_configure() { - append-cppflags "-I${EPREFIX}/usr/include/et" - # QA - append-flags -fno-strict-aliasing - append-flags -fno-strict-overflow - - multilib-minimal_src_configure -} - -multilib_src_configure() { - use keyutils || export ac_cv_header_keyutils_h=no - ECONF_SOURCE=${S} \ - WARN_CFLAGS="set" \ - econf \ - $(use_with openldap ldap) \ - "$(multilib_native_use_with test tcl "${EPREFIX}/usr")" \ - $(use_enable pkinit) \ - $(use_enable threads thread-support) \ - --without-hesiod \ - --enable-shared \ - --with-system-et \ - --with-system-ss \ - --enable-dns-for-realm \ - --enable-kdc-lookaside-cache \ - --with-system-verto \ - --disable-rpath -} - -multilib_src_compile() { - emake -j1 -} - -multilib_src_test() { - multilib_is_native_abi && emake -j1 check -} - -multilib_src_install() { - emake \ - DESTDIR="${D}" \ - EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \ - install -} - -multilib_src_install_all() { - # default database dir - keepdir /var/lib/krb5kdc - - cd .. - dodoc README - - if use doc; then - dohtml -r doc/html/* - docinto pdf - dodoc doc/pdf/*.pdf - fi - - newinitd "${FILESDIR}"/mit-krb5kadmind.initd-r1 mit-krb5kadmind - newinitd "${FILESDIR}"/mit-krb5kdc.initd-r1 mit-krb5kdc - newinitd "${FILESDIR}"/mit-krb5kpropd.initd-r1 mit-krb5kpropd - - insinto /etc - newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example - insinto /var/lib/krb5kdc - newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example - - if use openldap ; then - insinto /etc/openldap/schema - doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema" - fi - - if use xinetd ; then - insinto /etc/xinetd.d - newins "${FILESDIR}/kpropd.xinetd" kpropd - fi -} - -pkg_preinst() { - if has_version "<${CATEGORY}/${PN}-1.8.0" ; then - elog "MIT split the Kerberos applications from the base Kerberos" - elog "distribution. Kerberized versions of telnet, rlogin, rsh, rcp," - elog "ftp clients and telnet, ftp deamons now live in" - elog "\"app-crypt/mit-krb5-appl\" package." - fi -} diff --git a/app-crypt/mit-krb5/mit-krb5-1.13.1.ebuild b/app-crypt/mit-krb5/mit-krb5-1.13.1.ebuild deleted file mode 100644 index 7f134d8c1947..000000000000 --- a/app-crypt/mit-krb5/mit-krb5-1.13.1.ebuild +++ /dev/null @@ -1,151 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.13.1.ebuild,v 1.2 2015/03/25 08:00:31 jlec Exp $ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit autotools eutils flag-o-matic multilib-minimal python-any-r1 versionator - -MY_P="${P/mit-}" -P_DIR=$(get_version_component_range 1-2) -DESCRIPTION="MIT Kerberos V" -HOMEPAGE="http://web.mit.edu/kerberos/www/" -SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar" - -LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 || ( BSD-2 GPL-2+ )" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="doc +keyutils openldap +pkinit selinux +threads test xinetd" - -CDEPEND=" - !!app-crypt/heimdal - >=sys-libs/e2fsprogs-libs-1.42.9[${MULTILIB_USEDEP}] - || ( - >=dev-libs/libverto-0.2.5[libev,${MULTILIB_USEDEP}] - >=dev-libs/libverto-0.2.5[libevent,${MULTILIB_USEDEP}] - >=dev-libs/libverto-0.2.5[tevent,${MULTILIB_USEDEP}] - ) - keyutils? ( >=sys-apps/keyutils-1.5.8[${MULTILIB_USEDEP}] ) - openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] ) - pkinit? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) - xinetd? ( sys-apps/xinetd ) - abi_x86_32? ( - !<=app-emulation/emul-linux-x86-baselibs-20140508-r1 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] - )" -DEPEND="${CDEPEND} - ${PYTHON_DEPS} - virtual/yacc - doc? ( virtual/latex-base ) - test? ( - ${PYTHON_DEPS} - dev-lang/tcl:0 - dev-util/dejagnu - )" -RDEPEND="${CDEPEND} - selinux? ( sec-policy/selinux-kerberos )" - -S=${WORKDIR}/${MY_P}/src - -MULTILIB_CHOST_TOOLS=( - /usr/bin/krb5-config -) - -src_unpack() { - unpack ${A} - unpack ./"${MY_P}".tar.gz -} - -src_prepare() { - epatch "${FILESDIR}/${PN}-1.12_warn_cflags.patch" - epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch" - - eautoreconf -} - -src_configure() { - append-cppflags "-I${EPREFIX}/usr/include/et" - # QA - append-flags -fno-strict-aliasing - append-flags -fno-strict-overflow - - multilib-minimal_src_configure -} - -multilib_src_configure() { - use keyutils || export ac_cv_header_keyutils_h=no - ECONF_SOURCE=${S} \ - WARN_CFLAGS="set" \ - econf \ - $(use_with openldap ldap) \ - "$(multilib_native_use_with test tcl "${EPREFIX}/usr")" \ - $(use_enable pkinit) \ - $(use_enable threads thread-support) \ - --without-hesiod \ - --enable-shared \ - --with-system-et \ - --with-system-ss \ - --enable-dns-for-realm \ - --enable-kdc-lookaside-cache \ - --with-system-verto \ - --disable-rpath -} - -multilib_src_compile() { - emake -j1 -} - -multilib_src_test() { - multilib_is_native_abi && emake -j1 check -} - -multilib_src_install() { - emake \ - DESTDIR="${D}" \ - EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \ - install -} - -multilib_src_install_all() { - # default database dir - keepdir /var/lib/krb5kdc - - cd .. - dodoc README - - if use doc; then - dohtml -r doc/html/* - docinto pdf - dodoc doc/pdf/*.pdf - fi - - newinitd "${FILESDIR}"/mit-krb5kadmind.initd-r1 mit-krb5kadmind - newinitd "${FILESDIR}"/mit-krb5kdc.initd-r1 mit-krb5kdc - newinitd "${FILESDIR}"/mit-krb5kpropd.initd-r1 mit-krb5kpropd - - insinto /etc - newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example - insinto /var/lib/krb5kdc - newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example - - if use openldap ; then - insinto /etc/openldap/schema - doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema" - fi - - if use xinetd ; then - insinto /etc/xinetd.d - newins "${FILESDIR}/kpropd.xinetd" kpropd - fi -} - -pkg_preinst() { - if has_version "<${CATEGORY}/${PN}-1.8.0" ; then - elog "MIT split the Kerberos applications from the base Kerberos" - elog "distribution. Kerberized versions of telnet, rlogin, rsh, rcp," - elog "ftp clients and telnet, ftp deamons now live in" - elog "\"app-crypt/mit-krb5-appl\" package." - fi -} |