Skip to content

Commit dcdb124

Browse files
committed
Initial commit
0 parents  commit dcdb124

File tree

9 files changed

+2549
-0
lines changed

9 files changed

+2549
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target/
2+
/.idea/

Cargo.lock

+154
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[package]
2+
name = "libnss_shim"
3+
version = "0.9.0"
4+
authors = ["Noah Kruiper"]
5+
edition = "2021"
6+
description = "NSS module shim to use custom sources for group/passwd/shadow lookups"
7+
readme = "README.md"
8+
license-file = "LICENSE"
9+
repository = "https://github.com/xenago/libnss_shim"
10+
11+
# Reduce size when building for release
12+
[profile.release]
13+
strip = true # Do not include crash/debug symbols
14+
lto = true # Perform optimization at linker stage
15+
codegen-units = 1 # use a single thread
16+
17+
[dependencies]
18+
lazy_static = "1.4.0"
19+
libc = "0.2.126"
20+
libnss = "0.4"
21+
paste = "1.0.7"
22+
serde_json = "1.0.81"
23+
serde = { version = "1.0.81", features = ["derive"] }
24+
shlex = "1.1.0"
25+
26+
[lib]
27+
name = "nss_shim"
28+
crate-type = ["cdylib"]
29+
30+
[package.metadata.deb]
31+
depends = "base-files, libc6"
32+
priority = "optional"
33+
extended-description = "A plugin for the Name Service Switch (NSS) framework that parses the output of commands to resolve queries."
34+
assets = [
35+
["target/release/libnss_shim.so", "lib/libnss_shim.so.2", "644"],
36+
["default_config/config.json", "etc/libnss_shim/config.json", "640"],
37+
["README.md", "usr/share/doc/libnss_shim/README", "644"],
38+
]
39+
maintainer-scripts = "debian"

0 commit comments

Comments
 (0)