-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
90 lines (85 loc) · 3.71 KB
/
Copy pathCargo.toml
File metadata and controls
90 lines (85 loc) · 3.71 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[package]
name = "janitor"
version = "0.1.7"
edition = "2021"
rust-version = "1.85"
description = "Hierarchical Unix filesystem permissions manager with snapshots, ACLs, and audit."
license = "MIT"
readme = "README.md"
repository = "https://github.com/Tristram1337/janitor"
homepage = "https://github.com/Tristram1337/janitor"
keywords = ["permissions", "acl", "chmod", "security", "cli"]
categories = ["command-line-utilities", "filesystem"]
[[bin]]
name = "janitor"
path = "src/main.rs"
[dependencies]
clap = { version = "4", features = ["derive"] }
clap_complete = "4"
clap_mangen = "0.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
rmp-serde = "1"
nix = { version = "0.29", features = ["user", "fs"] }
thiserror = "2"
rayon = "1"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
uuid = { version = "1", features = ["v4"] }
libc = "0.2"
walkdir = "2"
ctrlc = "3"
glob = "0.3"
globset = "0.4"
serde_yaml = "0.9"
owo-colors = "4"
is-terminal = "0.4"
indicatif = "0.18"
[profile.release]
lto = true
strip = true
codegen-units = 1
# ---------------------------------------------------------------------------
# Debian / Ubuntu packaging (cargo-deb).
# ---------------------------------------------------------------------------
[package.metadata.deb]
maintainer = "Tristram1337 <rohovskytomas@seznam.cz>"
section = "admin"
priority = "optional"
depends = "libc6 (>= 2.35), acl, passwd"
recommends = "bash-completion"
extended-description = """\
janitor is a single-binary CLI for managing POSIX file permissions and ACLs
on Linux systems. It supports hierarchical grants, automatic snapshots before
every mutation, POSIX ACL management, auditing (world-writable, SUID, orphan
UIDs/GIDs), reverse access queries, and exact rollback."""
# Run `scripts/package.sh deb` (not `cargo deb` directly) so the completions
# and man page under target/assets/ are regenerated from the freshly built
# binary before the .deb is assembled.
assets = [
["target/release/janitor", "usr/bin/", "755"],
["README.md", "usr/share/doc/janitor/README.md", "644"],
["CHANGELOG.md", "usr/share/doc/janitor/CHANGELOG.md", "644"],
["LICENSE", "usr/share/doc/janitor/copyright", "644"],
["target/assets/man/janitor.1", "usr/share/man/man1/janitor.1", "644"],
["target/assets/completions/janitor", "usr/share/bash-completion/completions/janitor", "644"],
["target/assets/completions/_janitor", "usr/share/zsh/vendor-completions/_janitor", "644"],
["target/assets/completions/janitor.fish", "usr/share/fish/vendor_completions.d/janitor.fish", "644"],
]
# ---------------------------------------------------------------------------
# Red Hat / Fedora / SUSE packaging (cargo-generate-rpm).
# ---------------------------------------------------------------------------
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/janitor", dest = "/usr/bin/janitor", mode = "755" },
{ source = "README.md", dest = "/usr/share/doc/janitor/README.md", mode = "644", doc = true },
{ source = "CHANGELOG.md", dest = "/usr/share/doc/janitor/CHANGELOG.md", mode = "644", doc = true },
{ source = "LICENSE", dest = "/usr/share/licenses/janitor/LICENSE", mode = "644" },
{ source = "target/assets/man/janitor.1", dest = "/usr/share/man/man1/janitor.1", mode = "644" },
{ source = "target/assets/completions/janitor", dest = "/usr/share/bash-completion/completions/janitor", mode = "644" },
{ source = "target/assets/completions/_janitor", dest = "/usr/share/zsh/site-functions/_janitor", mode = "644" },
{ source = "target/assets/completions/janitor.fish", dest = "/usr/share/fish/vendor_completions.d/janitor.fish", mode = "644" },
]
[package.metadata.generate-rpm.requires]
glibc = "*"
acl = "*"
shadow-utils = "*"