# Contributor: Patrycja Rosa # Maintainer: Patrycja Rosa pkgname=acmed pkgver=0.21.0 pkgrel=3 pkgdesc="ACME (RFC 8555) client daemon" url="https://github.com/breard-r/acmed" # s390x, riscv64: blocked by cargo arch="all !s390x !riscv64" license="MIT" pkgusers="acmed" pkggroups="acmed" makedepends="cargo openssl-dev>3 cargo-auditable" subpackages="$pkgname-doc $pkgname-openrc $pkgname-tacd $pkgname-tacd-doc:tacd_doc" install="acmed.pre-install" source="https://github.com/breard-r/acmed/archive/refs/tags/v$pkgver/acmed-$pkgver.tar.gz Cargo.lock acmed.confd acmed.initd " prepare() { default_prepare mv "$srcdir"/Cargo.lock . cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen } check() { cargo test --frozen } package() { install -Dm755 -t "$pkgdir"/usr/bin \ target/release/acmed \ target/release/tacd install -Dm644 -t "$pkgdir"/etc/acmed \ acmed/config/* install -d -o acmed -g acmed "$pkgdir"/var/lib/acmed install -Dm644 -t "$pkgdir"/usr/share/man/man8 \ man/en/acmed.8 install -Dm644 -t "$pkgdir"/usr/share/man/man5 \ man/en/acmed.toml.5 install -Dm755 "$srcdir"/acmed.initd "$pkgdir"/etc/init.d/acmed install -Dm644 "$srcdir"/acmed.confd "$pkgdir"/etc/conf.d/acmed } tacd() { pkgdesc="Standalone tls-alpn-01 challenge validation server" amove /usr/bin/tacd } tacd_doc() { install -Dm644 -t "$pkgdir"/usr/share/man/man8 \ "$builddir"/man/en/tacd.8 default_doc pkgdesc="Standalone tls-alpn-01 challenge validation server (documentation)" install_if="docs $pkgname-tacd=$pkgver-r$pkgrel" } sha512sums=" ef058b12be531c95a4dc7dbed668788116e131f028f7b1d7543597dd72651ea8228a7cfc6663da424ca7b6686063537c95c90158017be4856d428d6cedbc2aa3 acmed-0.21.0.tar.gz 5497908c1e027dad698191744c8c27ac8558f8c8ed70f56e47056c694b2f0cdcfd8c3bb83098c46b6719f0643fde93ffab84ef85f4739581a124d52cd1bced3b Cargo.lock 2fb5cb330ba4f91c49e34e5808034cbeeb23a9637f4b03cff80ea26338b0a4a232042d7888ee7305afac945402520433828db4064c4274d8ead431aa16a668c1 acmed.confd 126ce93a32c4eace6d41635947c7ecfa3fea3fd731f5ef2b528e911259305e2fdfa115bc78475d6fba57e0717facc27ac4cc341a4c24511c75ef96772e354c1b acmed.initd "