mirror of
https://github.com/kanidm/kanidm.git
synced 2025-05-09 02:25:04 +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
53 lines
1.2 KiB
TOML
53 lines
1.2 KiB
TOML
[package]
|
|
name = "pam_kanidm"
|
|
description = "Kanidm PAM module"
|
|
links = "pam"
|
|
|
|
version = { workspace = true }
|
|
authors = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
edition = { workspace = true }
|
|
license = { workspace = true }
|
|
homepage = { workspace = true }
|
|
repository = { workspace = true }
|
|
|
|
[lib]
|
|
name = "pam_kanidm"
|
|
crate-type = ["cdylib"]
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
kanidm_unix_common = { workspace = true }
|
|
libc = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
tracing = { workspace = true }
|
|
time = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
pkg-config = { workspace = true }
|
|
|
|
## Debian packaging
|
|
[package.metadata.deb]
|
|
name = "libpam-kanidm"
|
|
maintainer = "James Hodgkinson <james@terminaloutcomes.com>"
|
|
depends = ["libc6", "libpam0g"]
|
|
section = "network"
|
|
priority = "optional"
|
|
maintainer-scripts = "debian/"
|
|
assets = [
|
|
[
|
|
"target/release/libpam_kanidm.so",
|
|
# This is not the final path as cargo-deb needs to be run with --multiarch=foreign
|
|
"usr/lib/security/pam_kanidm.so",
|
|
"644",
|
|
],
|
|
[
|
|
"debian/kanidm.pam",
|
|
"usr/share/pam-configs/kanidm",
|
|
"644",
|
|
],
|
|
]
|
|
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["pkg-config"]
|