2024-05-28 07:28:13 -04:00
|
|
|
[package]
|
|
|
|
name = "ffplayout"
|
2024-06-11 11:30:53 -04:00
|
|
|
description = "24/7 playout based on rust and ffmpeg"
|
2024-06-28 10:30:12 -04:00
|
|
|
readme = "../README.md"
|
2024-05-28 07:28:13 -04:00
|
|
|
version.workspace = true
|
|
|
|
license.workspace = true
|
|
|
|
authors.workspace = true
|
|
|
|
repository.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = ["embed_frontend"]
|
|
|
|
embed_frontend = []
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
actix-files = "0.6"
|
2024-07-22 04:34:06 -04:00
|
|
|
actix-multipart = "0.7"
|
2024-05-28 07:28:13 -04:00
|
|
|
actix-web = "4"
|
|
|
|
actix-web-grants = "4"
|
|
|
|
actix-web-httpauth = "0.8"
|
2024-08-18 10:33:42 -04:00
|
|
|
actix-web-lab = "0.22"
|
2024-06-14 09:54:15 -04:00
|
|
|
actix-web-static-files = "4.0"
|
2024-05-28 07:28:13 -04:00
|
|
|
argon2 = "0.5"
|
2024-06-11 11:30:53 -04:00
|
|
|
chrono = { version = "0.4", default-features = false, features = ["clock", "std", "serde"] }
|
2024-06-13 03:29:55 -04:00
|
|
|
clap = { version = "4.3", features = ["derive", "env"] }
|
2024-06-06 16:18:59 -04:00
|
|
|
crossbeam-channel = "0.5"
|
2024-08-19 06:06:48 -04:00
|
|
|
derive_more = { version = "1", features = ["display"] }
|
2024-05-28 07:28:13 -04:00
|
|
|
faccess = "0.2"
|
2024-06-06 16:18:59 -04:00
|
|
|
ffprobe = "0.4"
|
2024-08-27 07:30:19 -04:00
|
|
|
flexi_logger = { version = "0.29", features = ["kv", "colors"] }
|
2024-05-28 07:28:13 -04:00
|
|
|
futures-util = { version = "0.3", default-features = false, features = ["std"] }
|
|
|
|
home = "0.5"
|
|
|
|
jsonwebtoken = "9"
|
|
|
|
lazy_static = "1.4"
|
2024-06-05 10:33:05 -04:00
|
|
|
lettre = { version = "0.11", features = ["builder", "rustls-tls", "smtp-transport", "tokio1", "tokio1-rustls-tls"], default-features = false }
|
2024-05-28 07:28:13 -04:00
|
|
|
lexical-sort = "0.3"
|
|
|
|
local-ip-address = "0.6"
|
2024-05-28 16:20:47 -04:00
|
|
|
log = { version = "0.4", features = ["std", "serde", "kv", "kv_std", "kv_sval", "kv_serde"] }
|
2024-08-21 04:20:54 -04:00
|
|
|
nix = { version = "0.29", features = ["user", "fs"] }
|
2024-06-06 16:18:59 -04:00
|
|
|
notify = "6.0"
|
|
|
|
notify-debouncer-full = { version = "*", default-features = false }
|
|
|
|
num-traits = "0.2"
|
2024-06-10 12:44:43 -04:00
|
|
|
once_cell = "1"
|
2024-05-29 09:02:10 -04:00
|
|
|
paris = "1.5"
|
2024-05-28 07:28:13 -04:00
|
|
|
parking_lot = "0.12"
|
|
|
|
path-clean = "1.0"
|
|
|
|
rand = "0.8"
|
|
|
|
regex = "1"
|
|
|
|
relative-path = "1.8"
|
|
|
|
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "rustls-tls"] }
|
|
|
|
rpassword = "7.2"
|
|
|
|
sanitize-filename = "0.5"
|
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
serde_json = "1.0"
|
2024-06-17 14:19:03 -04:00
|
|
|
serde_with = "3.8"
|
2024-06-04 13:01:53 -04:00
|
|
|
shlex = "1.1"
|
2024-05-28 07:28:13 -04:00
|
|
|
static-files = "0.2"
|
2024-08-03 16:37:17 -04:00
|
|
|
sysinfo ={ version = "0.31", features = ["linux-netdevs", "linux-tmpfs"] }
|
|
|
|
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite"] }
|
2024-05-28 16:20:47 -04:00
|
|
|
time = { version = "0.3", features = ["formatting", "macros"] }
|
2024-05-28 07:28:13 -04:00
|
|
|
tokio = { version = "1.29", features = ["full"] }
|
|
|
|
tokio-stream = "0.1"
|
|
|
|
toml_edit = {version ="0.22", features = ["serde"]}
|
|
|
|
uuid = "1.8"
|
2024-06-07 03:31:58 -04:00
|
|
|
walkdir = "2"
|
2024-06-10 12:44:43 -04:00
|
|
|
zeromq = { version = "0.4", default-features = false, features = [
|
|
|
|
"tokio-runtime",
|
|
|
|
"tcp-transport",
|
|
|
|
] }
|
2024-05-28 07:28:13 -04:00
|
|
|
|
2024-05-28 16:20:47 -04:00
|
|
|
[target.'cfg(not(target_arch = "windows"))'.dependencies]
|
|
|
|
signal-child = "1"
|
|
|
|
|
2024-05-28 07:28:13 -04:00
|
|
|
[build-dependencies]
|
|
|
|
static-files = "0.2"
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "ffplayout"
|
|
|
|
path = "src/main.rs"
|
2024-06-11 11:30:53 -04:00
|
|
|
|
|
|
|
# DEBIAN DEB PACKAGE
|
|
|
|
[package.metadata.deb]
|
|
|
|
name = "ffplayout"
|
|
|
|
priority = "optional"
|
|
|
|
section = "net"
|
|
|
|
license-file = ["../LICENSE", "0"]
|
|
|
|
depends = ""
|
|
|
|
suggests = "ffmpeg"
|
|
|
|
copyright = "Copyright (c) 2024, Jonathan Baecker. All rights reserved."
|
|
|
|
assets = [
|
|
|
|
[
|
|
|
|
"../target/x86_64-unknown-linux-musl/release/ffplayout",
|
|
|
|
"/usr/bin/",
|
|
|
|
"755",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../assets/ffplayout.service",
|
|
|
|
"/lib/systemd/system/",
|
|
|
|
"644",
|
|
|
|
],
|
2024-09-25 06:30:27 -04:00
|
|
|
[
|
|
|
|
"../assets/dummy.vtt",
|
|
|
|
"/usr/share/ffplayout/",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../assets/DejaVuSans.ttf",
|
|
|
|
"/usr/share/ffplayout/",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../assets/FONT_LICENSE.txt",
|
|
|
|
"/usr/share/ffplayout/",
|
|
|
|
"644",
|
|
|
|
],
|
2024-06-11 11:30:53 -04:00
|
|
|
[
|
|
|
|
"../assets/logo.png",
|
|
|
|
"/usr/share/ffplayout/",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../assets/ffplayout.conf",
|
|
|
|
"/usr/share/ffplayout/ffplayout.conf.example",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../README.md",
|
|
|
|
"/usr/share/doc/ffplayout/README",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../assets/ffplayout.1.gz",
|
|
|
|
"/usr/share/man/man1/",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
]
|
|
|
|
maintainer-scripts = "../debian/"
|
2024-09-30 11:56:48 -04:00
|
|
|
systemd-units = { enable = true, unit-scripts = "../assets" }
|
2024-06-11 11:30:53 -04:00
|
|
|
|
|
|
|
[package.metadata.deb.variants.arm64]
|
|
|
|
assets = [
|
|
|
|
[
|
|
|
|
"../target/aarch64-unknown-linux-gnu/release/ffplayout",
|
|
|
|
"/usr/bin/",
|
|
|
|
"755",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../assets/ffplayout.service",
|
|
|
|
"/lib/systemd/system/",
|
|
|
|
"644",
|
|
|
|
],
|
2024-09-25 06:30:27 -04:00
|
|
|
[
|
|
|
|
"../assets/dummy.vtt",
|
|
|
|
"/usr/share/ffplayout/",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../assets/DejaVuSans.ttf",
|
|
|
|
"/usr/share/ffplayout/",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../assets/FONT_LICENSE.txt",
|
|
|
|
"/usr/share/ffplayout/",
|
|
|
|
"644",
|
|
|
|
],
|
2024-06-11 11:30:53 -04:00
|
|
|
[
|
|
|
|
"../assets/logo.png",
|
|
|
|
"/usr/share/ffplayout/",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../assets/ffplayout.conf",
|
|
|
|
"/usr/share/ffplayout/ffplayout.conf.example",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../README.md",
|
|
|
|
"/usr/share/doc/ffplayout/README",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"../assets/ffplayout.1.gz",
|
|
|
|
"/usr/share/man/man1/",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
]
|
|
|
|
|
2024-09-25 06:30:27 -04:00
|
|
|
# RHEL RPM PACKAGE
|
2024-06-11 11:30:53 -04:00
|
|
|
[package.metadata.generate-rpm]
|
|
|
|
name = "ffplayout"
|
|
|
|
license = "GPL-3.0"
|
|
|
|
assets = [
|
|
|
|
{ source = "../target/x86_64-unknown-linux-musl/release/ffplayout", dest = "/usr/bin/ffplayout", mode = "755" },
|
|
|
|
{ source = "../assets/ffplayout.service", dest = "/lib/systemd/system/ffplayout.service", mode = "644" },
|
|
|
|
{ source = "../README.md", dest = "/usr/share/doc/ffplayout/README", mode = "644" },
|
|
|
|
{ source = "../assets/ffplayout.1.gz", dest = "/usr/share/man/man1/ffplayout.1.gz", mode = "644", doc = true },
|
|
|
|
{ source = "../LICENSE", dest = "/usr/share/doc/ffplayout/LICENSE", mode = "644" },
|
2024-09-25 06:30:27 -04:00
|
|
|
{ source = "../assets/dummy.vtt", dest = "/usr/share/ffplayout/dummy.vtt", mode = "644" },
|
|
|
|
{ source = "../assets/DejaVuSans.ttf", dest = "/usr/share/ffplayout/DejaVuSans.ttf", mode = "644" },
|
|
|
|
{ source = "../assets/FONT_LICENSE.txt", dest = "/usr/share/ffplayout/FONT_LICENSE.txt", mode = "644" },
|
2024-06-11 11:30:53 -04:00
|
|
|
{ source = "../assets/logo.png", dest = "/usr/share/ffplayout/logo.png", mode = "644" },
|
|
|
|
{ source = "../assets/ffplayout.conf", dest = "/usr/share/ffplayout/ffplayout.conf.example", mode = "644" },
|
|
|
|
{ source = "../debian/postinst", dest = "/usr/share/ffplayout/postinst", mode = "755" },
|
|
|
|
]
|
|
|
|
auto-req = "no"
|
|
|
|
post_install_script = "/usr/share/ffplayout/postinst"
|