1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-21 10:04:26 +01:00

PKGBUILD: automatically deploy BKCA certificate

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2018-10-06 21:51:37 +02:00
parent 305f89b70b
commit 82fd80b02d
3 changed files with 17 additions and 3 deletions

1
TODO
View File

@ -7,4 +7,3 @@
- automatically setup doorlock user
- automatically deploy nginx
- unclutter stuff for X (hide cursor)
- certificates are still an issue

View File

@ -8,15 +8,21 @@ arch=('any')
url="https://github.com/Binary-Kitchen/${pkgname}"
license=(GPL)
depends=('python3' 'python-ldap' 'alsa-utils' 'mosquitto' 'wol' 'python-flask-wtf' 'python-flask-socketio')
source=("git+https://github.com/Binary-Kitchen/${pkgname}.git#branch=next")
sha256sums=('SKIP')
source=("git+https://github.com/Binary-Kitchen/${pkgname}.git#branch=next"
"https://www.binary-kitchen.de/static/BKCA.crt")
sha256sums=('SKIP'
'2e8b1ffabcf16e3e60cfc277b40955ae499dedcf39762efbb0512003be9db10f')
build() {
cd "$srcdir/$pkgname/"
make PREFIX=/usr sysconfdir=/etc
cp -v ../BKCA.crt .
}
package() {
install=${pkgname}.install
cd "$srcdir/$pkgname/"
make PREFIX=/usr sysconfdir=/etc DESTDIR="$pkgdir" install
mkdir -p $pkgdir/etc/ca-certificates/trust-source/anchors
cp -v BKCA.crt $pkgdir/etc/ca-certificates/trust-source/anchors
}

9
arch/doorlockd.install Normal file
View File

@ -0,0 +1,9 @@
post_install() {
echo "Running trust extract-compat"
trust extract-compat
}
post_remove() {
echo "Running trust extract-compat"
trust extract-compat
}