[arch-commits] Commit in acme-redirect/repos (2 files)

Kpcyrd kpcyrd at archlinux.org
Fri May 8 20:12:12 UTC 2020


    Date: Friday, May 8, 2020 @ 20:12:11
  Author: kpcyrd
Revision: 625773

archrelease: copy trunk to community-x86_64

Added:
  acme-redirect/repos/community-x86_64/
  acme-redirect/repos/community-x86_64/PKGBUILD
    (from rev 625772, acme-redirect/trunk/PKGBUILD)

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

Copied: acme-redirect/repos/community-x86_64/PKGBUILD (from rev 625772, acme-redirect/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-05-08 20:12:11 UTC (rev 625773)
@@ -0,0 +1,59 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+
+pkgname=acme-redirect
+pkgver=0.2.0
+pkgrel=1
+pkgdesc='Minimal http daemon that answers acme challenges and redirects everything else to https'
+url='https://github.com/kpcyrd/acme-redirect'
+arch=('x86_64')
+license=('GPL3')
+depends=('openssl')
+makedepends=('cargo' 'scdoc')
+backup=('etc/acme-redirect.conf')
+source=(https://github.com/kpcyrd/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+        https://github.com/kpcyrd/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz.asc)
+sha512sums=('27066dd99e80903e26e55f0898ad6172fc8d3a1b81a9bf88fd014798f772c625a19802363a740a78a9cb52a3ca370a52de4f623cef9cf74d18675a5a39e5c489'
+            'SKIP')
+b2sums=('3af6c0e2012c3d9323c2f72f11a4f8cb0e8fa5aeb975d51b03187f93cb79be9f8a714d823cb638f3aae00300d337672f7c7b52226b3177af5896df2c3aa17372'
+        'SKIP')
+
+validpgpkeys=("64B13F7117D6E07D661BBCE0FE763A64F5E54FD6")
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  cargo build --release --locked
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  cargo test --release --locked
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  install -Dm 755 -t "${pkgdir}/usr/bin" \
+    target/release/acme-redirect
+
+  # install completions
+  install -d "${pkgdir}/usr/share/bash-completion/completions" \
+             "${pkgdir}/usr/share/zsh/site-functions" \
+             "${pkgdir}/usr/share/fish/vendor_completions.d"
+  "${pkgdir}/usr/bin/acme-redirect" completions bash > "${pkgdir}/usr/share/bash-completion/completions/acme-redirect"
+  "${pkgdir}/usr/bin/acme-redirect" completions zsh > "${pkgdir}/usr/share/zsh/site-functions/_acme-redirect"
+  "${pkgdir}/usr/bin/acme-redirect" completions fish > "${pkgdir}/usr/share/fish/vendor_completions.d/acme-redirect.fish"
+
+  # install configs
+  install -dm 755 "${pkgdir}/etc/acme-redirect.d"
+  install -Dm 644 -t "${pkgdir}/etc" \
+    contrib/confs/acme-redirect.conf
+
+  # install systemd configs
+  install -Dm 644 -t "${pkgdir}/usr/lib/systemd/system" \
+    contrib/systemd/acme-redirect-renew.service \
+    contrib/systemd/acme-redirect-renew.timer \
+    contrib/systemd/acme-redirect.service
+  install -Dm 644 contrib/systemd/acme-redirect.sysusers "${pkgdir}/usr/lib/sysusers.d/acme-redirect.conf"
+  install -Dm 644 contrib/systemd/acme-redirect.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/acme-redirect.conf"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list