# 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.100 ar_archive_writer@0.2.0 arbitrary@1.4.2 arc-swap@1.7.1 argon2@0.5.3 askama@0.14.0 askama_derive@0.14.0 askama_parser@0.14.0 askama_web@0.14.6 askama_web_derive@0.1.0 asn1-rs-derive@0.5.1 asn1-rs-impl@0.2.0 asn1-rs@0.6.2 async-compression@0.4.33 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.0 aws-lc-sys@0.33.0 axum-core@0.5.5 axum-extra@0.12.2 axum-htmx@0.8.1 axum-macros@0.5.0 axum@0.8.7 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.0 base64urlsafedata@0.5.3 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.0 bytecount@0.6.9 bytemuck@1.24.0 byteorder-lite@0.1.0 byteorder@1.5.0 bytes@1.11.0 cbc@0.1.2 cc@1.2.46 cesu8@1.1.0 cexpr@0.6.0 cfg-if@1.0.4 cfg_aliases@0.2.1 chrono@0.4.42 chumsky@0.9.3 cidr@0.3.1 cipher@0.4.4 cipher@0.5.0-rc.2 clang-sys@1.8.1 clap@4.5.52 clap_builder@4.5.52 clap_complete@4.5.60 clap_derive@4.5.49 clap_lex@0.7.6 clru@0.6.2 cmake@0.1.54 color_quant@1.1.0 colorchoice@1.0.4 combine@4.6.7 compact_jwt@0.5.3-dev compression-codecs@0.4.32 compression-core@0.4.30 concread@0.5.7 console@0.16.1 const-oid@0.9.6 cookie@0.16.2 cookie@0.18.1 cookie_store@0.21.1 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-rc.5 crypto-glue@0.1.11 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.9.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.4 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.16.2 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.26 find-msvc-tools@0.1.5 flagset@0.4.7 flate2@1.1.5 fluent-uri@0.3.2 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.16 getrandom@0.3.4 ghash@0.5.1 gif@0.14.0 gimli@0.32.3 gix-actor@0.35.6 gix-chunk@0.4.12 gix-command@0.6.3 gix-commitgraph@0.30.1 gix-config-value@0.15.3 gix-config@0.47.1 gix-date@0.10.7 gix-diff@0.54.1 gix-discover@0.42.0 gix-features@0.44.1 gix-fs@0.17.0 gix-glob@0.22.1 gix-hash@0.20.1 gix-hashtable@0.10.0 gix-lock@19.0.0 gix-object@0.51.1 gix-odb@0.71.1 gix-pack@0.61.1 gix-packetline@0.19.3 gix-path@0.10.21 gix-protocol@0.52.1 gix-quote@0.6.1 gix-ref@0.54.1 gix-refspec@0.32.0 gix-revision@0.36.1 gix-revwalk@0.22.0 gix-sec@0.12.2 gix-shallow@0.6.0 gix-tempfile@19.0.1 gix-trace@0.1.15 gix-transport@0.49.1 gix-traverse@0.48.0 gix-url@0.33.1 gix-utils@0.3.1 gix-validate@0.10.1 gix@0.74.1 glob@0.3.3 group@0.13.0 h2@0.3.27 h2@0.4.12 half@1.8.3 half@2.7.1 haproxy-protocol@0.0.3 hash32@0.3.1 hashbrown@0.12.3 hashbrown@0.14.5 hashbrown@0.15.5 hashbrown@0.16.0 hashlink@0.10.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.3 home@0.5.12 hostname-validator@1.1.1 hostname@0.4.1 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.3.1 httparse@1.10.1 httpdate@1.0.3 hybrid-array@0.4.5 hyper-rustls@0.27.7 hyper-timeout@0.5.2 hyper-tls@0.6.0 hyper-util@0.1.18 hyper@0.14.32 hyper@1.8.1 iana-time-zone-haiku@0.1.2 iana-time-zone@0.1.64 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.1 icu_properties_data@2.1.1 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 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.12.0 inotify-sys@0.1.5 inotify@0.11.0 inout@0.1.4 inout@0.2.1 ipnet@2.11.0 iri-string@0.7.9 is_terminal_polyfill@1.70.2 itertools@0.13.0 itertools@0.14.0 itoa@1.0.15 jiff-static@0.2.16 jiff-tzdb-platform@0.1.3 jiff-tzdb@0.1.4 jiff@0.2.16 jni-sys@0.3.0 jni@0.21.1 jobserver@0.1.34 js-sys@0.3.82 jsonschema@0.33.0 kanidm-hsm-crypto@0.3.4 kbkdf@0.0.1 kqueue-sys@1.0.4 kqueue@1.1.1 lambert_w@1.2.31 lazy_static@1.5.0 lazycell@1.3.0 lber@0.4.2 ldap3_client@0.6.2 ldap3_proto@0.6.2 lettre@0.11.19 libc@0.2.177 libloading@0.8.9 libm@0.2.15 libmimalloc-sys@0.1.44 libnss@0.9.0 libredox@0.1.10 libsqlite3-sys@0.35.0 libudev-sys@0.1.4 libudev@0.2.0 libz-rs-sys@0.5.2 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.28 lru-slab@0.1.2 lru@0.13.0 lru@0.16.2 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.2.0 md-5@0.10.6 md4@0.10.2 memchr@2.7.6 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.0 moxcms@0.7.9 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.6.0 notify-types@2.0.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.1.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 object@0.32.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-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 parking_lot@0.12.5 parking_lot_core@0.9.12 password-hash@0.5.0 paste@1.0.15 pastey@0.1.1 pbkdf2@0.13.0-rc.2 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 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.4 portable-atomic@1.11.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.103 prodash@30.0.1 prost-derive@0.14.1 prost@0.14.1 psl-types@2.0.11 psm@0.1.28 publicsuffix@2.3.0 pxfm@0.1.25 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.42 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.6.4 rand_core@0.9.3 rawpointer@0.2.1 redox_syscall@0.5.18 redox_users@0.5.2 ref-cast-impl@1.0.25 ref-cast@1.0.25 referencing@0.33.0 regex-automata@0.4.13 regex-syntax@0.8.8 regex@1.12.2 reqwest@0.11.27 reqwest@0.12.24 rfc6979@0.4.0 rgb@0.8.52 ring@0.17.14 rpassword@5.0.1 rsa@0.9.9 runloop@0.1.0 rusqlite@0.37.0 rust-embed-impl@8.9.0 rust-embed-utils@8.9.0 rust-embed@8.9.0 rustc-demangle@0.1.26 rustc-hash@1.1.0 rustc-hash@2.1.1 rusticata-macros@4.1.0 rustix@0.38.44 rustix@1.1.2 rustls-native-certs@0.8.2 rustls-pki-types@1.13.0 rustls-platform-verifier-android@0.1.1 rustls-platform-verifier@0.5.3 rustls-platform-verifier@0.6.2 rustls-webpki@0.103.8 rustls@0.23.35 rustversion@1.0.22 ryu@1.0.20 salsa20@0.11.0-rc.2 same-file@1.0.6 schannel@0.1.28 schemars@0.9.0 schemars@1.1.0 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@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.145 serde_path_to_error@0.1.20 serde_spanned@1.0.3 serde_urlencoded@0.7.1 serde_with@3.16.0 serde_with_macros@3.16.0 sha-crypt@0.5.0 sha1-checked@0.10.0 sha1@0.10.6 sha2@0.10.9 sha2@0.11.0-rc.3 sharded-slab@0.1.7 shell-words@1.1.0 shellexpand@3.1.1 shlex@1.3.0 signal-hook-registry@1.4.6 signature@2.2.0 simd-adler32@0.3.7 slab@0.4.11 smallvec@1.15.1 smartstring@1.0.1 smolset@1.3.1 socket2@0.5.10 socket2@0.6.1 spin@0.9.8 spki@0.7.3 sptr@0.3.2 sshkey-attest@0.5.3 sshkeys@0.3.4 stable_deref_trait@1.2.1 stacker@0.1.22 static_assertions@1.1.0 strsim@0.11.1 subtle@2.6.1 svg@0.18.0 syn@1.0.109 syn@2.0.110 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.23.0 thiserror-impl@1.0.69 thiserror-impl@2.0.17 thiserror@1.0.69 thiserror@2.0.17 thousands@0.2.0 thread-tree@0.3.3 thread_local@1.1.9 time-core@0.1.6 time-macros@0.2.24 time@0.3.44 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.17 tokio-util@0.7.17 tokio@1.48.0 toml@0.9.8 toml_datetime@0.7.3 toml_edit@0.23.7 toml_parser@1.0.4 toml_writer@1.0.4 tonic-prost@0.14.2 tonic@0.14.2 tower-http@0.6.6 tower-layer@0.3.3 tower-service@0.3.3 tower@0.5.2 tracing-attributes@0.1.30 tracing-core@0.1.34 tracing-forest@0.3.0 tracing-log@0.2.0 tracing-opentelemetry@0.32.0 tracing-subscriber@0.3.20 tracing@0.1.41 try-lock@0.2.5 tss-esapi-sys@0.5.0 tss-esapi@8.0.0-alpha typenum@1.19.0 unicase@2.8.1 unicode-bom@2.0.3 unicode-ident@1.0.22 unicode-normalization@0.1.25 unicode-width@0.2.2 universal-hash@0.5.1 untrusted@0.9.0 url@2.5.7 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.18.1 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 wasip2@1.0.1+wasi-0.2.4 wasite@0.1.0 wasm-bindgen-futures@0.4.55 wasm-bindgen-macro-support@0.2.105 wasm-bindgen-macro@0.2.105 wasm-bindgen-shared@0.2.105 wasm-bindgen@0.2.105 web-sys@0.3.82 web-time@1.1.0 webauthn-attestation-ca@0.5.3 webauthn-authenticator-rs@0.5.3 webauthn-rs-core@0.5.3 webauthn-rs-proto@0.5.3 webauthn-rs@0.5.3 webdriver@0.53.0 webpki-root-certs@0.26.11 webpki-root-certs@1.0.4 webpki-roots@1.0.4 weezl@0.1.12 which@4.4.2 whoami@1.6.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.1.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.13 winreg@0.50.0 wit-bindgen@0.46.0 writeable@0.5.5 writeable@0.6.2 x509-cert@0.2.5 x509-parser@0.16.0 yescrypt@0.1.0-rc.0 yoke-derive@0.7.5 yoke-derive@0.8.1 yoke@0.7.5 yoke@0.8.1 zerocopy-derive@0.8.27 zerocopy@0.8.27 zerofrom-derive@0.1.6 zerofrom@0.1.6 zeroize@1.8.2 zeroize_derive@1.4.2 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.5.2 zopfli@0.8.3 zune-core@0.5.0 zune-jpeg@0.5.5 zxcvbn@3.1.0 " inherit cargo systemd DESCRIPTION="Kanidm: A simple, secure, and fast 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" RUST_MIN_VER="1.87" DEPEND=" acct? ( acct-group/kanidmd acct-user/kanidmd ) pam? ( sys-libs/pam ) " BDEPEND=" llvm-core/lld " S="${WORKDIR}/kanidm-${PV}" src_prepare() { eapply_user echo "ECARGO_ARGS: ${ECARGO_ARGS}" sed -i -e 's!sshkeys = { git.*$!!' -e 's!sshkeys = .*$!sshkeys = "0.3.4"!' "${WORKDIR}/kanidm-${PV}/Cargo.toml" || die "Sed failed!" } src_install() { cd target/release dobin kanidm use server && dobin kanidmd dobin kanidm-ipa-sync dobin kanidm-ldap-sync dobin kanidm_ssh_authorizedkeys dobin kanidm-unix dobin kanidm_unixd dobin kanidm_unixd_tasks dobin orca dolib.so libkanidmd_lib_macros.so dolib.so libnss_kanidm.so # dolib.so libtestkit_macros.so use pam && dolib.so libpam_kanidm.so cd ${S} insinto /etc/kanidm newins examples/kanidm config newins examples/radius_full.toml radius.toml newins examples/unixd unixd if use server; then einfo "Installing kanidmd-server" newins examples/server.toml server.toml dodir /usr/share/kanidm cp -R "${S}/server/core/static" "${ED}/usr/share/kanidm/" || die "Install failed!" sed -i -e 's!/usr/local/sbin/!/usr/bin/!g' \ -e 's!/var/lib/kanidm!/var/lib/private/kanidmd!g' examples/systemd/*.service systemd_newunit examples/systemd/kanidmd.service kanidmd.service systemd_newunit examples/systemd/kanidm-unixd.service kanidm-unixd.service systemd_newunit examples/systemd/kanidm-unixd-tasks.service kanidm-unixd-tasks.service newinitd "${FILESDIR}/kanidm.initd" kanidmd cp examples/server.toml "${ED}/usr/share/kanidm/" || die "Install failed!" fi if use acct; then fowners root:kanidmd /etc/kanidm/{,config,radius.toml,unixd} fperms g+w,o-rwx /etc/kanidm/{,config,radius.toml,unixd} if use server; then fowners root:kanidmd /etc/kanidm/server.toml fperms g+w,o-rwx /etc/kanidm/server.toml diropts -m0750 -o kanidmd -g kanidmd keepdir /var/lib/private/kanidmd keepdir /var/log/kanidmd fi fi einstalldocs }