Skip to content

Commit

Permalink
fix packaging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tdittr authored and davidv1992 committed Feb 7, 2025
1 parent 6cf8cd8 commit 8d706b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ validation-ht/measurement_report.fls
validation-ht/measurement_report.log
*swp
**/.idea
**/.zed
8 changes: 5 additions & 3 deletions statime-linux/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ Statime is a work in progress Rust implementation of PTP version 2.1 (IEEE 1588-
It currently implements support for acting as a master and an ordinary or a boundary clock."""
assets = [
["target/release/statime", "/usr/bin/statime", "755"],
["target/release/statime-metrics-exporter", "/usr/bin/statime-metrics-exporter", "755"],
["docs/precompiled/man/statime.8", "/usr/share/man/man8/statime.8", "644"],
["docs/precompiled/man/statime.toml.5", "/usr/share/man/man5/statime.toml.5", "644"],
["docs/examples/conf/statime.toml.default", "/usr/share/doc/statime/statime.toml.default", "644"],
["docs/examples/conf/statime.toml.default", "/etc/statime/statime.toml", "644"],
["docs/examples/conf/statime.preset", "/lib/systemd/system-preset/50-statime.preset", "644"],
["docs/examples/conf/statime.service", "/lib/systemd/system/statime.service", "644"],
["docs/examples/conf/41-statime.rules", "/etc/udev/41-statime.rules", "644"],
["docs/examples/conf/41-statime.rules", "/etc/udev/rules.d/41-statime.rules", "644"],
["../COPYRIGHT", "/usr/share/doc/statime/COPYRIGHT", "644"],
["../LICENSE-APACHE", "/usr/share/doc/statime/LICENSE-APACHE", "644"],
["../LICENSE-MIT", "/usr/share/doc/statime/LICENSE-MIT", "644"],
Expand All @@ -68,7 +69,7 @@ assets = [
]
conf-files = [
"/etc/statime/statime.toml",
"/etc/udev/41-statime.rules",
"/etc/udev/rules.d/41-statime.rules",
]

[package.metadata.generate-rpm]
Expand All @@ -77,13 +78,14 @@ name = "statime"
license = "MIT or ASL 2.0"
assets = [
{ source = "target/release/statime", dest = "/usr/bin/statime", mode = "755" },
{ source = "target/release/statime-metrics-exporter", dest = "/usr/bin/statime-metrics-exporter", mode = "755" },
{ source = "docs/precompiled/man/statime.8", dest = "/usr/share/man/man8/statime.8", mode = "644", doc = true },
{ source = "docs/precompiled/man/statime.toml.5", dest = "/usr/share/man/man5/statime-toml.5", mode = "644", doc = true },
{ source = "docs/examples/conf/statime.toml.default", dest = "/usr/share/doc/statime/statime.toml.default", mode = "644", doc = true },
{ source = "docs/examples/conf/statime.toml.default", dest = "/etc/statime/statime.toml", mode = "644", config = true },
{ source = "docs/examples/conf/statime.preset", dest = "/lib/systemd/system-preset/50-statime.preset", mode = "644" },
{ source = "docs/examples/conf/statime.service", dest = "/lib/systemd/system/statime.service", mode = "644" },
{ source = "docs/examples/conf/41-statime.rules", dest = "/etc/udev/41-statime.rules", mode = "644", config = true },
{ source = "docs/examples/conf/41-statime.rules", dest = "/etc/udev/rules.d/41-statime.rules", mode = "644", config = true },
{ source = "../COPYRIGHT", dest = "/usr/share/doc/statime/COPYRIGHT", mode = "644", doc = true },
{ source = "../LICENSE-APACHE", dest = "/usr/share/doc/statime/LICENSE-APACHE", mode = "644", doc = true },
{ source = "../LICENSE-MIT", dest = "/usr/share/doc/statime/LICENSE-MIT", mode = "644", doc = true },
Expand Down

0 comments on commit 8d706b7

Please sign in to comment.