[package] name = "seqknock-nftables" version = "0.2.0" edition = "2021" description = "TCP Sequence number-based knocking; nftables based server protector" license = "GPL-2.0 OR Apache-2.0" authors = ["Jonas Eriksson "] readme = "README.md" homepage = "https://git.sr.ht/~upto/seqknock/" repository = "https://git.sr.ht/~upto/seqknock/" [dependencies] libnftables1-sys = "0.1.0" snafu = "0.7.3" hmac = "0.12" sha3 = "0.10" signal-hook = "0.3" serde = { version = "1.0", features = ["derive"] } serde_yaml = "0.8" validator = { version = "0.15", features = ["derive"] } log = "0.4" log4rs = "1.2" regex = "1" [dependencies.seqknock-common] #path = "../seqknock-common" version = "0.1" [dev-dependencies] indoc = "1.0" tempfile = "3" [dependencies.clap] version = "3.2" features = ["derive"] [package.metadata.generate-rpm] assets = [ { source = "target/release/seqknock-nftables", dest = "/usr/sbin/seqknock-nftables", mode = "755" }, { source = "seqknock-nftables/files/seqknock-nftables.service", dest = "/lib/systemd/system/seqknock-nftables.service", mode = "644" }, { source = "seqknock-nftables/files/config.yaml", dest = "/etc/seqknock-nftables/config.yaml", mode = "600" }, { source = "target/man-out/seqknock-nftables.1.gz", dest = "/usr/share/man/man1/seqknock-nftables.1.gz", mode = "644" }, { source = "target/man-out/seqknock-nftables-config.5.gz", dest = "/usr/share/man/man1/seqknock-nftables-config.5.gz", mode = "644" }, ] [package.metadata.generate-rpm.requires] nftables = ">= 0.9.4" [package.metadata.deb] depends = "nftables" assets = [ ["target/release/seqknock-nftables", "usr/bin/", "755"], ["files/seqknock-nftables.service", "/lib/systemd/system/seqknock-nftables.service", "644"], ["files/config.yaml", "/etc/seqknock-nftables/config.yaml", "600"], ["target/man-out/seqknock-nftables.1.gz", "share/man/man1", "644"], ["target/man-out/seqknock-nftables-config.5.gz", "share/man/man1", "644"], ]