# Copyright 2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # Autogenerated by pycargoebuild 0.15.0 EAPI=8 CRATES=" addr2line@0.25.1 adler2@2.0.1 aead@0.5.2 aes-gcm@0.10.3 aes-kw@0.2.1 aes@0.8.4 ahash@0.8.12 aho-corasick@1.1.4 allocator-api2@0.2.21 android_system_properties@0.1.5 anstream@0.6.21 anstyle-parse@0.2.7 anstyle-query@1.1.5 anstyle-wincon@3.0.11 anstyle@1.0.13 anyhow@1.0.101 ar_archive_writer@0.5.1 arbitrary@1.4.2 arc-swap@1.8.1 argon2@0.5.3 askama@0.15.4 askama_derive@0.15.4 askama_macros@0.15.4 askama_parser@0.15.4 askama_web@0.15.1 askama_web_derive@0.2.0 asn1-rs-derive@0.5.1 asn1-rs-impl@0.2.0 asn1-rs@0.6.2 async-compression@0.4.39 async-stream-impl@0.3.6 async-stream@0.3.6 async-trait@0.1.89 atomic-waker@1.1.2 authenticator@0.4.1 autocfg@1.5.0 aws-lc-rs@1.15.4 aws-lc-sys@0.37.0 axum-core@0.5.6 axum-extra@0.12.5 axum-htmx@0.8.1 axum-macros@0.5.0 axum@0.8.8 backtrace@0.3.76 base16ct@0.2.0 base32@0.5.1 base64@0.13.1 base64@0.21.7 base64@0.22.1 base64ct@1.8.3 base64urlsafedata@0.5.4 basic-toml@0.1.10 bindgen@0.66.1 bindgen@0.72.1 bit-set@0.5.3 bit-set@0.8.0 bit-vec@0.6.3 bit-vec@0.8.0 bitfield@0.13.2 bitflags@1.3.2 bitflags@2.10.0 blake2@0.10.6 block-buffer@0.10.4 block-buffer@0.11.0 block-padding@0.3.3 borrow-or-share@0.2.4 bstr@1.12.1 bumpalo@3.19.1 bytecount@0.6.9 bytemuck@1.25.0 byteorder-lite@0.1.0 byteorder@1.5.0 bytes@1.11.1 cbc@0.1.2 cc@1.2.55 cesu8@1.1.0 cexpr@0.6.0 cfg-if@1.0.4 cfg_aliases@0.2.1 chrono@0.4.43 chumsky@0.9.3 cidr@0.3.2 cipher@0.4.4 cipher@0.5.0 clang-sys@1.8.1 clap@4.5.57 clap_builder@4.5.57 clap_complete@4.5.65 clap_derive@4.5.55 clap_lex@0.7.7 clru@0.6.2 cmake@0.1.57 color_quant@1.1.0 colorchoice@1.0.4 combine@4.6.7 compact_jwt@0.5.4 compression-codecs@0.4.36 compression-core@0.4.31 concread@0.5.10 console@0.16.2 const-oid@0.10.2 const-oid@0.9.6 cookie@0.16.2 cookie@0.18.1 cookie_store@0.22.0 core-foundation-sys@0.8.7 core-foundation@0.10.1 core-foundation@0.9.4 core_maths@0.1.1 cpufeatures@0.2.17 crc32fast@1.5.0 cron@0.15.0 crossbeam-channel@0.5.15 crossbeam-deque@0.8.6 crossbeam-epoch@0.9.18 crossbeam-queue@0.3.12 crossbeam-utils@0.8.21 crossbeam@0.8.4 crunchy@0.2.4 crypto-bigint@0.5.5 crypto-common@0.1.7 crypto-common@0.2.0 crypto-glue@0.1.12 csv-core@0.1.13 csv@1.4.0 ctr@0.9.2 darling@0.20.11 darling@0.21.3 darling_core@0.20.11 darling_core@0.21.3 darling_macro@0.20.11 darling_macro@0.21.3 data-encoding@2.10.0 der-parser@9.0.0 der@0.7.10 der_derive@0.7.3 deranged@0.5.5 derive_arbitrary@1.4.2 derive_builder@0.20.2 derive_builder_core@0.20.2 derive_builder_macro@0.20.2 devd-rs@0.3.6 dhat@0.3.3 dialoguer@0.12.0 digest@0.10.7 digest@0.11.0-rc.11 dirs-sys@0.5.0 dirs@6.0.0 displaydoc@0.2.5 document-features@0.2.12 dunce@1.0.5 dyn-clone@1.0.20 ecdsa@0.16.9 either@1.15.0 elliptic-curve@0.13.8 email-encoding@0.4.1 email_address@0.2.9 encode_unicode@1.0.0 encoding_rs@0.8.35 enum-iterator-derive@1.5.0 enum-iterator@2.3.0 enumflags2@0.7.12 enumflags2_derive@0.7.12 equivalent@1.0.2 errno@0.3.14 escargot@0.5.15 fallible-iterator@0.3.0 fallible-streaming-iterator@0.1.9 fancy-regex@0.13.0 fancy-regex@0.17.0 fantoccini@0.22.0 faster-hex@0.10.0 fastrand@2.3.0 ff@0.13.1 file-id@0.2.3 filetime@0.2.27 find-msvc-tools@0.1.9 flagset@0.4.7 flate2@1.1.9 fluent-uri@0.4.1 fnv@1.0.7 foldhash@0.1.5 foldhash@0.2.0 foreign-types-shared@0.1.1 foreign-types@0.3.2 form_urlencoded@1.2.2 fraction@0.15.3 fs4@0.13.1 fs_extra@1.3.0 fsevent-sys@4.1.0 futures-channel@0.3.31 futures-core@0.3.31 futures-executor@0.3.31 futures-io@0.3.31 futures-macro@0.3.31 futures-sink@0.3.31 futures-task@0.3.31 futures-util@0.3.31 futures@0.3.31 generic-array@0.14.7 gethostname@1.1.0 getrandom@0.2.17 getrandom@0.3.4 getrandom@0.4.1 ghash@0.5.1 gif@0.14.1 gimli@0.32.3 gix-actor@0.38.0 gix-chunk@0.5.0 gix-command@0.7.1 gix-commitgraph@0.32.0 gix-config-value@0.17.1 gix-config@0.51.0 gix-date@0.13.0 gix-diff@0.58.0 gix-discover@0.46.0 gix-error@0.0.0 gix-features@0.46.1 gix-fs@0.19.1 gix-glob@0.24.0 gix-hash@0.22.1 gix-hashtable@0.12.0 gix-lock@21.0.1 gix-object@0.55.0 gix-odb@0.75.0 gix-pack@0.65.0 gix-packetline@0.21.1 gix-path@0.11.1 gix-protocol@0.56.0 gix-quote@0.6.2 gix-ref@0.58.0 gix-refspec@0.36.0 gix-revision@0.40.0 gix-revwalk@0.26.0 gix-sec@0.13.1 gix-shallow@0.8.1 gix-tempfile@21.0.1 gix-trace@0.1.18 gix-transport@0.53.0 gix-traverse@0.52.0 gix-url@0.35.1 gix-utils@0.3.1 gix-validate@0.11.0 gix@0.78.0 glob@0.3.3 group@0.13.0 h2@0.3.27 h2@0.4.13 half@1.8.3 half@2.7.1 haproxy-protocol@0.0.4 hash32@0.3.1 hashbrown@0.12.3 hashbrown@0.14.5 hashbrown@0.15.5 hashbrown@0.16.1 hashlink@0.11.0 heapless@0.8.0 heck@0.5.0 hermit-abi@0.5.2 hex@0.4.3 hkdf@0.12.4 hmac@0.12.1 hmac@0.13.0-rc.5 home@0.5.12 hostname-validator@1.1.1 hostname@0.4.2 http-body-util@0.1.3 http-body@0.4.6 http-body@1.0.1 http-range-header@0.4.2 http@0.2.12 http@1.4.0 httparse@1.10.1 httpdate@1.0.3 hybrid-array@0.4.7 hyper-rustls@0.27.7 hyper-timeout@0.5.2 hyper-tls@0.6.0 hyper-util@0.1.20 hyper@0.14.32 hyper@1.8.1 iana-time-zone-haiku@0.1.2 iana-time-zone@0.1.65 icu_collections@1.5.0 icu_collections@2.1.1 icu_locale_core@2.1.1 icu_locid@1.5.0 icu_normalizer@2.1.1 icu_normalizer_data@2.1.1 icu_properties@2.1.2 icu_properties_data@2.1.2 icu_provider@1.5.0 icu_provider@2.1.1 icu_provider_macros@1.5.0 icu_segmenter@1.5.0 icu_segmenter_data@1.5.1 id-arena@2.3.0 ident_case@1.0.1 idlset@0.2.5 idna@1.1.0 idna_adapter@1.2.1 image-webp@0.2.4 image@0.25.9 indexmap@1.9.3 indexmap@2.13.0 inotify-sys@0.1.5 inotify@0.11.0 inout@0.1.4 inout@0.2.2 ipnet@2.11.0 iri-string@0.7.10 is_terminal_polyfill@1.70.2 itertools@0.13.0 itertools@0.14.0 itoa@1.0.17 jiff-static@0.2.19 jiff-tzdb-platform@0.1.3 jiff-tzdb@0.1.5 jiff@0.2.19 jni-sys@0.3.0 jni@0.21.1 jobserver@0.1.34 js-sys@0.3.85 jsonschema@0.40.2 kanidm-hsm-crypto@0.3.5 kbkdf@0.1.0-rc.1 kqueue-sys@1.0.4 kqueue@1.1.1 lambert_w@1.2.34 lazy_static@1.5.0 lazycell@1.3.0 lber@0.4.2 ldap3_client@0.6.2 ldap3_proto@0.6.2 leb128fmt@0.1.0 lettre@0.11.19 libc@0.2.181 libloading@0.8.9 libm@0.2.16 libmimalloc-sys@0.1.44 libnss@0.9.0 libredox@0.1.12 libsqlite3-sys@0.36.0 libudev-sys@0.1.4 libudev@0.2.0 linked-hash-map@0.5.6 linux-raw-sys@0.11.0 linux-raw-sys@0.4.15 litemap@0.7.5 litemap@0.8.1 litrs@1.0.0 lock_api@0.4.14 lodepng@3.12.1 log@0.4.29 lru-slab@0.1.2 lru@0.16.3 malloced@1.3.1 matchers@0.2.0 matchit@0.8.4 mathru@0.16.2 matrixmultiply@0.3.10 maybe-async@0.2.10 mcf@0.6.0-rc.3 md-5@0.10.6 md4@0.10.2 memchr@2.8.0 memmap2@0.9.9 memoffset@0.8.0 mimalloc@0.1.48 mime@0.3.17 mime_guess@2.0.5 minimal-lexical@0.2.1 miniz_oxide@0.8.9 mintex@0.1.4 mio@1.1.1 moxcms@0.7.11 multer@3.1.0 native-tls@0.2.14 nix@0.30.1 nom@7.1.3 nom@8.0.0 nonempty@0.12.0 notify-debouncer-full@0.7.0 notify-types@2.1.0 notify@8.2.0 nu-ansi-term@0.50.3 num-bigint-dig@0.8.6 num-bigint@0.4.6 num-cmp@0.1.0 num-complex@0.4.6 num-conv@0.2.0 num-derive@0.3.3 num-derive@0.4.2 num-integer@0.1.46 num-iter@0.1.45 num-rational@0.4.2 num-traits@0.2.19 num@0.4.3 num_cpus@1.17.0 num_enum@0.7.5 num_enum_derive@0.7.5 num_threads@0.1.7 oauth2@4.4.2 oauth2@5.0.0 objc2-core-foundation@0.3.2 objc2-system-configuration@0.3.2 object@0.37.3 oid-registry@0.7.1 oid@0.2.1 once_cell@1.21.3 once_cell_polyfill@1.70.2 opaque-debug@0.3.1 openssl-macros@0.1.1 openssl-probe@0.1.6 openssl-probe@0.2.1 openssl-sys@0.9.111 openssl@0.10.75 opentelemetry-http@0.31.0 opentelemetry-otlp@0.31.0 opentelemetry-proto@0.31.0 opentelemetry-semantic-conventions@0.31.0 opentelemetry@0.31.0 opentelemetry_sdk@0.31.0 option-ext@0.2.0 outref@0.5.2 p256@0.13.2 p384@0.13.1 p521@0.13.3 parking_lot@0.12.5 parking_lot_core@0.9.12 password-hash@0.5.0 password-hash@0.6.0-rc.12 paste@1.0.15 pastey@0.1.1 pbkdf2@0.13.0-rc.9 peeking_take_while@0.1.2 peg-macros@0.8.5 peg-runtime@0.8.5 peg@0.8.5 pem-rfc7468@0.7.0 percent-encoding@2.3.2 phc@0.6.0-rc.1 picky-asn1-der@0.4.1 picky-asn1-x509@0.12.0 picky-asn1@0.8.0 pin-project-internal@1.1.10 pin-project-lite@0.2.16 pin-project@1.1.10 pin-utils@0.1.0 pkcs1@0.7.5 pkcs8@0.10.2 pkg-config@0.3.32 polyval@0.6.2 portable-atomic-util@0.2.5 portable-atomic@1.13.1 potential_utf@0.1.4 powerfmt@0.2.0 ppv-lite86@0.2.21 prctl@1.0.0 prettyplease@0.2.37 primeorder@0.13.6 proc-macro-crate@3.4.0 proc-macro2@1.0.106 prodash@31.0.0 prost-derive@0.14.3 prost@0.14.3 psl-types@2.0.11 psm@0.1.30 publicsuffix@2.3.0 pxfm@0.1.27 qrcode@0.14.1 quick-error@2.0.1 quinn-proto@0.11.13 quinn-udp@0.5.14 quinn@0.11.9 quote@1.0.44 quoted_printable@0.5.1 r-efi@5.3.0 rand@0.8.5 rand@0.9.2 rand_chacha@0.3.1 rand_chacha@0.9.0 rand_core@0.10.0 rand_core@0.6.4 rand_core@0.9.5 rawpointer@0.2.1 redox_syscall@0.5.18 redox_syscall@0.7.0 redox_users@0.5.2 ref-cast-impl@1.0.25 ref-cast@1.0.25 referencing@0.40.2 regex-automata@0.4.14 regex-syntax@0.8.9 regex@1.12.3 reqwest@0.11.27 reqwest@0.12.28 reqwest@0.13.2 rfc6979@0.4.0 rgb@0.8.52 ring@0.17.14 rpassword@5.0.1 rsa@0.9.10 rsqlite-vfs@0.1.0 runloop@0.1.0 rusqlite@0.38.0 rust-embed-impl@8.11.0 rust-embed-utils@8.11.0 rust-embed@8.11.0 rustc-demangle@0.1.27 rustc-hash@1.1.0 rustc-hash@2.1.1 rusticata-macros@4.1.0 rustix@0.38.44 rustix@1.1.3 rustls-native-certs@0.8.3 rustls-pki-types@1.14.0 rustls-platform-verifier-android@0.1.1 rustls-platform-verifier@0.5.3 rustls-platform-verifier@0.6.2 rustls-webpki@0.103.9 rustls@0.23.36 rustversion@1.0.22 ryu@1.0.23 salsa20@0.11.0-rc.2 same-file@1.0.6 schannel@0.1.28 schemars@0.9.0 schemars@1.2.1 scopeguard@1.2.0 sd-notify@0.4.5 sec1@0.7.3 security-framework-sys@2.15.0 security-framework@2.11.1 security-framework@3.5.1 selinux-sys@0.6.15 selinux@0.5.3 semver@1.0.27 serde-hjson@1.1.0 serde@1.0.228 serde_bytes@0.11.19 serde_cbor@0.11.2 serde_cbor_2@0.12.0-dev serde_cbor_2@0.13.0 serde_core@1.0.228 serde_derive@1.0.228 serde_html_form@0.2.8 serde_json@1.0.149 serde_path_to_error@0.1.20 serde_spanned@1.0.4 serde_urlencoded@0.7.1 serde_with@3.16.1 serde_with_macros@3.16.1 sha-crypt@0.5.0 sha1-checked@0.10.0 sha1@0.10.6 sha2@0.10.9 sha2@0.11.0-rc.5 sharded-slab@0.1.7 shell-words@1.1.1 shellexpand@3.1.1 shlex@1.3.0 signal-hook-registry@1.4.8 signature@2.2.0 simd-adler32@0.3.8 slab@0.4.12 smallvec@1.15.1 smartstring@1.0.1 smolset@1.3.1 socket2@0.5.10 socket2@0.6.2 spin@0.9.8 spki@0.7.3 sptr@0.3.2 sqlite-wasm-rs@0.5.2 sshkey-attest@0.5.4 sshkeys@0.3.4 stable_deref_trait@1.2.1 stacker@0.1.23 static_assertions@1.1.0 strsim@0.11.1 subtle@2.6.1 svg@0.18.0 syn@1.0.109 syn@2.0.114 sync_wrapper@0.1.2 sync_wrapper@1.0.2 synstructure@0.13.2 system-configuration-sys@0.5.0 system-configuration@0.5.1 target-lexicon@0.12.16 tempfile@3.25.0 thiserror-impl@1.0.69 thiserror-impl@2.0.18 thiserror@1.0.69 thiserror@2.0.18 thousands@0.2.0 thread-tree@0.3.3 thread_local@1.1.9 time-core@0.1.8 time-macros@0.2.27 time@0.3.47 tinystr@0.7.6 tinystr@0.8.2 tinyvec@1.10.0 tinyvec_macros@0.1.1 tls_codec@0.4.2 tls_codec_derive@0.4.2 tokio-macros@2.6.0 tokio-native-tls@0.3.1 tokio-openssl@0.6.5 tokio-rustls@0.26.4 tokio-stream@0.1.18 tokio-util@0.7.18 tokio@1.49.0 toml@0.9.12+spec-1.1.0 toml_datetime@0.7.5+spec-1.1.0 toml_edit@0.23.10+spec-1.0.0 toml_parser@1.0.7+spec-1.1.0 toml_writer@1.0.6+spec-1.1.0 tonic-prost@0.14.3 tonic@0.14.3 tower-http@0.6.8 tower-layer@0.3.3 tower-service@0.3.3 tower@0.5.3 tracing-attributes@0.1.31 tracing-core@0.1.36 tracing-forest@0.3.1 tracing-log@0.2.0 tracing-opentelemetry@0.32.1 tracing-subscriber@0.3.22 tracing@0.1.44 try-lock@0.2.5 tss-esapi-sys@0.5.0 tss-esapi@8.0.0-alpha typenum@1.19.0 unicase@2.9.0 unicode-bom@2.0.3 unicode-general-category@1.1.0 unicode-ident@1.0.23 unicode-normalization@0.1.25 unicode-width@0.2.2 unicode-xid@0.2.6 universal-hash@0.5.1 untrusted@0.9.0 url@2.5.8 urlencoding@2.1.3 utf8_iter@1.0.4 utf8parse@0.2.2 utoipa-gen@5.4.0 utoipa-swagger-ui-vendored@0.1.2 utoipa-swagger-ui@9.0.2 utoipa@5.4.0 uuid-simd@0.8.0 uuid@1.20.0 valuable@0.1.1 vcpkg@0.2.15 version_check@0.9.5 vsimd@0.8.0 walkdir@2.5.0 want@0.3.1 wasi@0.11.1+wasi-snapshot-preview1 wasi@0.14.7+wasi-0.2.4 wasip2@1.0.2+wasi-0.2.9 wasip3@0.4.0+wasi-0.3.0-rc-2026-01-06 wasite@1.0.2 wasm-bindgen-futures@0.4.58 wasm-bindgen-macro-support@0.2.108 wasm-bindgen-macro@0.2.108 wasm-bindgen-shared@0.2.108 wasm-bindgen@0.2.108 wasm-encoder@0.244.0 wasm-metadata@0.244.0 wasmparser@0.244.0 web-sys@0.3.85 web-time@1.1.0 webauthn-attestation-ca@0.5.4 webauthn-authenticator-rs@0.5.4 webauthn-rs-core@0.5.4 webauthn-rs-proto@0.5.4 webauthn-rs@0.5.4 webdriver@0.53.0 webpki-root-certs@0.26.11 webpki-root-certs@1.0.6 webpki-roots@1.0.6 weezl@0.1.12 which@4.4.2 whoami@2.1.1 winapi-i686-pc-windows-gnu@0.4.0 winapi-util@0.1.11 winapi-x86_64-pc-windows-gnu@0.4.0 winapi@0.3.9 windows-core@0.62.2 windows-implement@0.60.2 windows-interface@0.59.3 windows-link@0.2.1 windows-result@0.4.1 windows-strings@0.5.1 windows-sys@0.45.0 windows-sys@0.48.0 windows-sys@0.52.0 windows-sys@0.59.0 windows-sys@0.60.2 windows-sys@0.61.2 windows-targets@0.42.2 windows-targets@0.48.5 windows-targets@0.52.6 windows-targets@0.53.5 windows@0.41.0 windows_aarch64_gnullvm@0.41.0 windows_aarch64_gnullvm@0.42.2 windows_aarch64_gnullvm@0.48.5 windows_aarch64_gnullvm@0.52.6 windows_aarch64_gnullvm@0.53.1 windows_aarch64_msvc@0.41.0 windows_aarch64_msvc@0.42.2 windows_aarch64_msvc@0.48.5 windows_aarch64_msvc@0.52.6 windows_aarch64_msvc@0.53.1 windows_i686_gnu@0.41.0 windows_i686_gnu@0.42.2 windows_i686_gnu@0.48.5 windows_i686_gnu@0.52.6 windows_i686_gnu@0.53.1 windows_i686_gnullvm@0.52.6 windows_i686_gnullvm@0.53.1 windows_i686_msvc@0.41.0 windows_i686_msvc@0.42.2 windows_i686_msvc@0.48.5 windows_i686_msvc@0.52.6 windows_i686_msvc@0.53.1 windows_x86_64_gnu@0.41.0 windows_x86_64_gnu@0.42.2 windows_x86_64_gnu@0.48.5 windows_x86_64_gnu@0.52.6 windows_x86_64_gnu@0.53.1 windows_x86_64_gnullvm@0.41.0 windows_x86_64_gnullvm@0.42.2 windows_x86_64_gnullvm@0.48.5 windows_x86_64_gnullvm@0.52.6 windows_x86_64_gnullvm@0.53.1 windows_x86_64_msvc@0.41.0 windows_x86_64_msvc@0.42.2 windows_x86_64_msvc@0.48.5 windows_x86_64_msvc@0.52.6 windows_x86_64_msvc@0.53.1 winnow@0.6.26 winnow@0.7.14 winreg@0.50.0 wit-bindgen-core@0.51.0 wit-bindgen-rust-macro@0.51.0 wit-bindgen-rust@0.51.0 wit-bindgen@0.51.0 wit-component@0.244.0 wit-parser@0.244.0 writeable@0.5.5 writeable@0.6.2 x509-cert@0.2.5 x509-parser@0.16.0 yescrypt@0.1.0-rc.5 yoke-derive@0.7.5 yoke-derive@0.8.1 yoke@0.7.5 yoke@0.8.1 zerocopy-derive@0.8.39 zerocopy@0.8.39 zerofrom-derive@0.1.6 zerofrom@0.1.6 zeroize@1.8.2 zeroize_derive@1.4.3 zerotrie@0.2.3 zerovec-derive@0.10.3 zerovec-derive@0.11.2 zerovec@0.10.4 zerovec@0.11.5 zip@3.0.0 zlib-rs@0.6.0 zmij@1.0.20 zopfli@0.8.3 zune-core@0.5.1 zune-jpeg@0.5.12 zxcvbn@3.1.0 " inherit cargo shell-completion systemd DESCRIPTION="Kanidm - a modern and simple identity management platform" HOMEPAGE="https://github.com/kanidm/kanidm/" SRC_URI=" ${CARGO_CRATE_URIS} https://github.com/kanidm/kanidm/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz " LICENSE="MPL-2.0" # Dependent crate licenses LICENSE+=" 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 CDLA-Permissive-2.0 ISC LGPL-3 MIT MIT-0 MPL-2.0 MPL-2.0 openssl Unicode-3.0 ZLIB " SLOT="0" KEYWORDS="~amd64" IUSE="+acct pam server tpm" RUST_MIN_VER="1.93" DEPEND=" acct? ( server? ( acct-group/kanidm acct-user/kanidm ) ) pam? ( sys-libs/pam ) tpm? ( app-crypt/tpm2-tss ) " BDEPEND=" llvm-core/clang llvm-core/lld sys-devel/binutils >=dev-lang/rust-bin-1.90.0 tpm? ( dev-util/pkgconf ) server? ( sys-libs/libcap ) " pkg_setup() { export KANIDM_BUILD_PROFILE=release_linux rust_pkg_setup } src_prepare() { eapply_user echo "ECARGO_ARGS: ${ECARGO_ARGS}" } src_configure() { local myfeatures=( $(usev tpm) unix ) cargo_src_configure \ --package daemon \ --package kanidm-ipa-sync \ --package kanidm-ldap-sync \ --package kanidm_tools \ --package kanidm_unix_int \ --package nss_kanidm \ --package pam_kanidm } src_install() { dobin target/release/kanidm-unix dobin target/release/kanidm_unixd dobin target/release/kanidm_unixd_tasks dobin target/release/kanidm_ssh_authorizedkeys dobin target/release/kanidm_ssh_authorizedkeys_direct dolib.so target/release/libnss_kanidm.so dolib.so target/release/libpam_kanidm.so insinto /lib64/security use pam && newins target/release/libpam_kanidm.so pam_kanidm.so insinto /etc/kanidm newins examples/kanidm config newins examples/radius_full.toml radius.toml doins examples/unixd fperms 0644 /etc/kanidm/{,config,radius.toml,unixd} for d in "kanidm" "kanidm_ssh_authorizedkeys" "kanidm_ssh_authorizedkeys_direct" "kanidm-unix" ; do dobin target/release/${d} dcp="${d/-/_}" newbashcomp target/release/build/completions/${dcp}.bash ${dcp} dofishcomp target/release/build/completions/${dcp}.fish dozshcomp target/release/build/completions/_${dcp} done systemd_dounit platform/opensuse/kanidm-unixd.service systemd_dounit platform/opensuse/kanidm-unixd-tasks.service if use server; then einfo "Installing kanidmd-server" dobin target/release/kanidmd dobin target/release/kanidm-ipa-sync dobin target/release/kanidm-ldap-sync # -- setting NET-BIND SETCAP="setcap cap_net_bind_service=+ep" ${SETCAP} "${D}/usr/bin/kanidmd" newins examples/server.toml server.toml dodir /usr/share/kanidm/ui/hpkg cp -r ${S}/server/core/static/* ${D}/usr/share/kanidm/ui/hpkg || die "Install failed!" chown -R root:root ${D}/usr/share/kanidm/ui systemd_dounit platform/opensuse/kanidm-ipa-sync.service systemd_dounit platform/opensuse/kanidmd.service newinitd "${FILESDIR}/kanidm.initd" kanidmd newbashcomp target/release/build/completions/kanidmd.bash kanidmd dofishcomp target/release/build/completions/kanidmd.fish dozshcomp target/release/build/completions/_kanidmd fi if use acct; then if use server; then fowners root:kanidm /etc/kanidm/server.toml fperms 0640 /etc/kanidm/server.toml diropts -m0740 -o kanidm -g kanidm keepdir /var/lib/private/kanidm keepdir /var/log/kanidmd fi fi einstalldocs }