| 13 |
13 |
|
| 14 |
14 |
DESCRIPTION="Stalwart Mail Server command line utility"
|
| 15 |
15 |
HOMEPAGE="https://stalw.art"
|
| 16 |
|
SRC_URI="https://github.com/stalwartlabs/stalwart/archive/refs/tags/v${PV}.tar.gz -> stalwart-mail-${PV}.tar.gz
|
|
16 |
SRC_URI="https://github.com/stalwartlabs/cli/archive/refs/tags/v${PV}.tar.gz -> stalwart-cli-${PV}.tar.gz
|
| 17 |
17 |
${CARGO_CRATE_URIS}
|
| 18 |
18 |
"
|
| 19 |
19 |
if [[ ${PKGBUMPING} != ${PVR} ]]; then
|
| 20 |
20 |
SRC_URI+="
|
| 21 |
|
https://dev.gentoo.org/~lordvan/stalwart-0.15.5-crates.tar.xz
|
|
21 |
https://dev.gentoo.org/~lordvan/${P}-crates.tar.xz
|
| 22 |
22 |
"
|
| 23 |
23 |
fi
|
| 24 |
24 |
|
| 25 |
|
S="${WORKDIR}/stalwart-${PV}"
|
|
25 |
S="${WORKDIR}/cli-${PV}"
|
| 26 |
26 |
|
| 27 |
27 |
LICENSE="|| ( AGPL-3 )"
|
| 28 |
28 |
# Dependent crate licenses
|
| ... | ... | |
| 31 |
31 |
ISC LGPL-2+ MIT MPL-2.0 Unicode-3.0 ZLIB BZIP2
|
| 32 |
32 |
"
|
| 33 |
33 |
|
| 34 |
|
# 0.14.x has breaking changes so avoid installing new cli with old server
|
|
34 |
# 0.16.x has breaking changes so avoid installing new cli with old server
|
| 35 |
35 |
DEPEND+="
|
| 36 |
|
!!<net-mail/stalwart-mail-0.15.0
|
|
36 |
!!<net-mail/stalwart-mail-0.16.0
|
| 37 |
37 |
"
|
| 38 |
38 |
|
| 39 |
39 |
SLOT="0"
|
| ... | ... | |
| 43 |
43 |
cargo_src_compile --bin stalwart-cli
|
| 44 |
44 |
}
|
| 45 |
45 |
|
| 46 |
|
src_install() {
|
| 47 |
|
cargo_src_install --path crates/cli
|
| 48 |
|
}
|
| 49 |
|
|
| 50 |
46 |
pkg_postinst() {
|
| 51 |
|
ewarn "If you are upgrading from v0.14.1 and below, this version includes"
|
|
47 |
ewarn "If you are upgrading from v0.15.5 and below, this version includes"
|
| 52 |
48 |
ewarn "breaking changes to the internal directory, calendar and contacts."
|
| 53 |
49 |
ewarn "Please read the upgrading documentation for more information on "
|
| 54 |
50 |
ewarn "how to upgrade from previous versions."
|
| 55 |
51 |
ewarn "It can be found here: https://stalw.art/docs/install/upgrade/"
|
| 56 |
|
ewarn "0.15 upgrade instructions are here:"
|
| 57 |
|
ewarn "https://github.com/stalwartlabs/stalwart/blob/main/UPGRADING/v0_15.md"
|
|
52 |
ewarn "0.16 upgrade instructions are here:"
|
|
53 |
ewarn "https://github.com/stalwartlabs/stalwart/blob/main/UPGRADING/v0_16.md"
|
| 58 |
54 |
}
|