aports/secret/alpinepkg-httpauth/APKBUILD

29 lines
576 B
Plaintext

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-secret.template
pkgver=2021.06.02.01
pkgrel=0
makedepends="apache2-utils"
subpackages="$pkgname-alpine"
source="secret"
build() {
. secret
htpasswd -bc passwdfile "$USER" "$PASSWD"
}
package() {
mkdir -p "$(rx_cpkgdir)"
}
alpine() {
install -dm400 "$(rx_cpkgdir)"/var/lib/alpine-packages
rx_install passwdfile
}
sha512sums="
315113476e4e7db230c99f5d0d152e90f039935cc11d79283e6d5324a2326aa9970eb15468c0c55bf521fd91d012205bb68bdca174a7879df775916f2d534edc secret
"