blob: 7ad37601707475f8c818860a5eec6c5878c9313c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: tleydxdy <shironeko(at)waifu(dot)club>
pkgname=dracut-sb
pkgver=1.0.1
pkgrel=2
pkgdesc='dracut secure boot setup using efistub'
arch=('x86_64')
depends=('dracut' 'efitools' 'efibootmgr' 'sbsigntools')
backup=('etc/dracut-sb/efi-key.conf')
install="${pkgname}.install"
source=('55-efi-key.hook'
'60-dracut-remove.hook'
'90-dracut-install.hook'
'99-secureboot.conf'
'dracut-install'
'dracut-remove'
'efi-key'
'efi-key.conf'
'linuxx64.efi.stub')
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
package() {
install -Dm644 "${srcdir}"/55-efi-key.hook "${pkgdir}"/etc/pacman.d/hooks/55-efi-key.hook
install -Dm644 "${srcdir}"/60-dracut-remove.hook "${pkgdir}"/etc/pacman.d/hooks/60-dracut-remove.hook
install -Dm644 "${srcdir}"/90-dracut-install.hook "${pkgdir}"/etc/pacman.d/hooks/90-dracut-install.hook
install -Dm644 "${srcdir}"/99-secureboot.conf "${pkgdir}"/etc/dracut.conf.d/99-secureboot.conf
install -Dm755 "${srcdir}"/dracut-install "${pkgdir}"/usr/local/share/libalpm/scripts/dracut-install
install -Dm755 "${srcdir}"/dracut-remove "${pkgdir}"/usr/local/share/libalpm/scripts/dracut-remove
install -Dm755 "${srcdir}"/efi-key "${pkgdir}"/usr/local/share/libalpm/scripts/efi-key
install -Dm644 "${srcdir}"/efi-key.conf "${pkgdir}"/etc/dracut-sb/efi-key.conf
install -Dm755 "${srcdir}"/linuxx64.efi.stub "${pkgdir}"/etc/dracut-sb/linuxx64.efi.stub
}
|