Drop custom acme-sh and use the default instead

This commit is contained in:
Disassembler 2020-03-12 23:10:12 +01:00
parent 7cb420dc4c
commit 76bef22633
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
4 changed files with 1 additions and 37 deletions

View File

@ -1,28 +0,0 @@
# Contributor: Disassembler <disassembler@dasm.cz>
# Maintainer: Disassembler <disassembler@dasm.cz>
pkgname=acme-sh
pkgver=2.8.1
pkgrel=0
pkgdesc="A pure Unix shell ACME protocol client"
url="https://github.com/Neilpang/acme.sh"
arch="noarch"
license="GPL"
_commit=09bce5e6d6be6b97b3c843b815087874e3e44a21
source="${pkgname}-${pkgver}.tar.gz::https://github.com/Neilpang/acme.sh/archive/${_commit}.tar.gz"
builddir="${srcdir}/acme.sh-${_commit}"
options="!check"
build() {
return 0
}
package() {
mkdir -p ${pkgdir}/usr/bin
mkdir -p ${pkgdir}/etc/acme.sh.d
mkdir -p ${pkgdir}/etc/periodic/daily
sed 's|$HOME/.$PROJECT_NAME|/etc/acme.sh.d|' ${builddir}/acme.sh > ${pkgdir}/usr/bin/acme.sh
chmod +x ${pkgdir}/usr/bin/acme.sh
cp ${startdir}/source/acme-sh ${pkgdir}/etc/periodic/daily/
}
sha512sums="b2d3d1c3f0ba1d57f40373aa430f53b8398e3798cadb4ab6bc376c9c70edda08cda4380bc8fe9fd272b9e02bd9f763de0a399aeeb5ea8d1a2e8ff5b1d8cef86a acme-sh-2.8.1.tar.gz"

View File

@ -1,5 +0,0 @@
#!/bin/sh
# Sleep randomly up to 1hr to avoid peak on ACME server
/bin/sleep $(/usr/bin/shuf -i 60-3600 -n 1)
/usr/bin/acme.sh --cron >/dev/null

View File

@ -12,9 +12,6 @@ cd ${ROOT}/vm
tar cpf /srv/build/vm.tar *
# Build native apps
cd ${ROOT}/apk/acme-sh
abuild -F
cd ${ROOT}/apk/geos
apk add -U swig python2-dev
abuild -F

2
vm.sh
View File

@ -88,7 +88,7 @@ chroot /mnt setup-timezone -z Europe/Prague
apk --no-cache add apache2-utils gettext
wget https://repo.spotter.cz/vm.tar -O - | tar xf - -C /mnt
envsubst </mnt/boot/extlinux.conf.old >/mnt/boot/extlinux.conf
chroot /mnt apk --no-cache add bridge ca-certificates curl e2fsprogs-extra gettext iptables kbd-misc logrotate postfix nginx openssh-server openssh-sftp-server util-linux wireguard-virt wireguard-tools-wg acme-sh@vm spoc@vm vmmgr@vm
chroot /mnt apk --no-cache add bridge ca-certificates curl e2fsprogs-extra gettext iptables kbd-misc logrotate postfix nginx openssh-server openssh-sftp-server util-linux wireguard-virt wireguard-tools-wg spoc@vm vmmgr@vm
chroot /mnt newaliases
for SERVICE in consolefont crond iptables networking nginx ntpd postfix spoc swap urandom vmmgr; do
ln -s /etc/init.d/${SERVICE} /mnt/etc/runlevels/boot