mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-10-31 22:47:05 +01:00
PKGBUILD: automatically deploy BKCA certificate
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
parent
305f89b70b
commit
82fd80b02d
1
TODO
1
TODO
@ -7,4 +7,3 @@
|
||||
- automatically setup doorlock user
|
||||
- automatically deploy nginx
|
||||
- unclutter stuff for X (hide cursor)
|
||||
- certificates are still an issue
|
||||
|
@ -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
9
arch/doorlockd.install
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user