mirror of
https://github.com/kanidm/kanidm.git
synced 2025-05-07 17:45:05 +02:00
* packaging: Use cargo-deb multiarch support This allows building all platforms from one definition, assuming the --multiarch=foreign flag is used. * packaging: Use correct path naming for unixd service files While cargo-deb works around the mistake, better to name them as per the rules: https://github.com/kornelski/cargo-deb/blob/main/systemd.md#systemd-unit-file-naming * docs: Update book chapter on Debian packaging * packaging: Shift Debian builds to a separate build profile * packaging: Add deb for kanidmd
47 lines
1.1 KiB
TOML
47 lines
1.1 KiB
TOML
[package]
|
|
name = "nss_kanidm"
|
|
description = "Kanidm NSS module"
|
|
|
|
version = { workspace = true }
|
|
authors = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
edition = { workspace = true }
|
|
license = { workspace = true }
|
|
homepage = { workspace = true }
|
|
repository = { workspace = true }
|
|
|
|
[lib]
|
|
name = "nss_kanidm"
|
|
crate-type = ["cdylib"]
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
kanidm_unix_common = { workspace = true }
|
|
|
|
[target.'cfg(not(target_family = "windows"))'.dependencies]
|
|
libnss = { workspace = true }
|
|
libc = { workspace = true }
|
|
lazy_static = { workspace = true }
|
|
|
|
[target."cfg(target_os = \"freebsd\")".build-dependencies]
|
|
cc = "^1.2.10"
|
|
|
|
## Debian packaging
|
|
[package.metadata.deb]
|
|
name = "libnss-kanidm"
|
|
maintainer = "James Hodgkinson <james@terminaloutcomes.com>"
|
|
depends = ""
|
|
section = "network"
|
|
priority = "optional"
|
|
assets = [
|
|
[
|
|
"target/release/libnss_kanidm.so",
|
|
# This is not the final path as cargo-deb needs to be run with --multiarch=foreign
|
|
"usr/lib/libnss_kanidm.so.2",
|
|
"644",
|
|
],
|
|
]
|
|
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["cc", "lazy_static"]
|