-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
67 lines (64 loc) · 1.89 KB
/
Cargo.toml
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
[package]
name = "postkeeper"
version = "0.3.4"
authors = ["Enhance Ltd <[email protected]>"]
edition = "2018"
default-run = "postkeeper"
description = """\
Simple Allow/Block list milter for postfix\
"""
categories = ["email"]
keywords = [
"email",
"milter",
"allowlist",
"blocklist",
"blacklist",
"whitelist"
]
license = "GPL-3.0-or-later"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = { version = "2.33", features = ["yaml"] }
daemonize = "0.4"
lazy_static = "1.4"
libc = "0.2"
log = "0.4"
milter = "0.2"
once_cell = "1.4"
rust-ini = "0.17"
simple_logger = "1.6" # simple_logger allows us to set logging level from config
[dev-dependencies]
pretty_assertions = "0.7"
# Metadata for Debian Package Builder `cargo-deb`
[package.metadata.deb]
maintainer = "Enhance Ltd <[email protected]>"
copyright = "2020, Enhance Ltd <[email protected]>"
license-file = ["LICENSE"]
extended-description = """\
Simple Allow/Block list milter for postfix\
"""
# try autogenerate dependencies for .deb installer
depends = "$auto, procps"
# debian application category
section = "mail"
priority = "optional"
# deb package maintainer scripts
maintainer-scripts = "assets/maintainer-scripts"
# files to copy on install
assets = [
["target/release/postkeeper", "/usr/sbin/", "755"],
["assets/postkeeper.sh", "/etc/init.d/postkeeper", "755"],
["assets/postkeeper.service", "/etc/systemd/system/", "755"],
["assets/etc/postkeeper.ini", "/etc/postkeeper/", "664"],
["assets/etc/allow.map", "/etc/postkeeper/", "664"],
["assets/etc/block.map", "/etc/postkeeper/", "664"],
["README.md", "usr/share/doc/postkeeper/README", "644"],
]
# do not overwrite these files on package update
conf-files = [
"/etc/postkeeper/postkeeper.ini",
"/etc/postkeeper/allow.map",
"/etc/postkeeper/block.map"
]