-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
54 lines (48 loc) · 2.08 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[package]
name = "libnss_shim"
version = "0.0.0"
authors = ["Noah Kruiper"]
edition = "2021"
description = "NSS module shim to use custom sources for group/passwd/shadow lookups"
readme = "README.md"
license = "GPL-3.0-or-later"
repository = "https://github.com/xenago/libnss_shim"
# Reduce size when building for release
[profile.release]
strip = true # Do not include crash/debug symbols
lto = true # Perform optimization at linker stage
codegen-units = 1 # use a single thread
[dependencies]
libc = "0.2.155"
libnss = "0.8.0"
paste = "1.0.15"
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.117"
shlex = "1.3.0"
[lib]
name = "nss_shim"
crate-type = ["cdylib"]
[package.metadata.deb]
name = "libnss_shim"
depends = "base-files, libc6"
priority = "optional"
extended-description = "A plugin for the Name Service Switch (NSS) framework that parses the output of commands to resolve queries."
assets = [
["target/release/libnss_shim.so", "lib/libnss_shim.so.2", "644"],
["default_config/config.json", "etc/libnss_shim/config.json", "644"],
["README.md", "usr/share/doc/libnss_shim/README", "644"],
]
conf-files = ["etc/libnss_shim/config.json"]
maintainer-scripts = "debian"
[package.metadata.generate-rpm]
summary = "A plugin for the Name Service Switch (NSS) framework that parses the output of commands to resolve queries."
assets = [
{ source = "target/release/libnss_shim.so", dest = "/lib64/libnss_shim.so.2", mode = "644", config = false, doc = false, user = "root", group = "root" },
{ source = "default_config/config.json", dest = "/etc/libnss_shim/config.json", mode = "644", config = true, doc = false, user = "root", group = "root" },
{ source = "README.md", dest = "/usr/share/doc/libnss_shim/README", mode = "644", config = false, doc = true, user = "root", group = "root" },
]
post_install_script = "debian/postinst"
post_uninstall_script = "debian/postrm"
# Required by `cross` tool for glibc 2.17 CentOS-compatible cross-compilation
[workspace.metadata.cross.target.aarch64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main-centos"