summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26bf88d09f30d5151d22c86dee8f0b8637bfb8b9 (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: actra.development <opensource@actra.de>
pkgname=mkinitcpio-knockencryptssh
pkgver=0.0.1
pkgrel=1
epoch=
pkgdesc="Remotely unlock LUKS over SSH with keyfile support by port-knocking first"
arch=('any')
url="https://github.com/actra-development-oss/mkinitcpio-knockencryptssh"
license=('MIT')
groups=()
depends=('mkinitcpio'
        'knockd'
        'inotify-tools'
        'cryptsetup'
        'device-mapper'
        'gawk'
        'bash')
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=('etc/knockencryptssh/knockd.conf')
options=()
install='mkinitcpio-knockencryptssh.install'
changelog=
source=('https://raw.githubusercontent.com/actra-development-oss/mkinitcpio-knockencryptssh/master/mkinitcpio-knockencryptssh.tar.gz')
noextract=()
md5sums=('fdc6570659e482210dae8978b11f0357')
validpgpkeys=()

package() {
  install -Dm 644 src/usr/lib/initcpio/hooks/knockencryptssh "${pkgdir}/usr/lib/initcpio/hooks/knockencryptssh"
  install -Dm 644 src/usr/lib/initcpio/install/knockencryptssh "${pkgdir}/usr/lib/initcpio/install/knockencryptssh"
  mkdir -p -m 755 "${pkgdir}/etc/knockencryptssh"
  install -Dm 644 src/etc/knockencryptssh/knockd.conf "${pkgdir}/etc/knockencryptssh/knockd.conf"
  install -Dm 755 src/etc/knockencryptssh/knocked.sh "${pkgdir}/etc/knockencryptssh/knocked.sh"
  mkdir -p -m 755 "${pkgdir}/usr/share/mkinitcpio-knockencryptssh/utils/shells"
  install -Dm 755 src/utils/shells/cryptsetup_shell "${pkgdir}/usr/share/mkinitcpio-knockencryptssh/utils/shells/cryptsetup_shell"
  mkdir -p -m 644 "${pkgdir}/usr/share/mkinitcpio-knockencryptssh/examples"
  install -Dm 644 src/examples/linux.sh "${pkgdir}/usr/share/mkinitcpio-knockencryptssh/examples/linux.sh"
  install -Dm 644 src/examples/windows.bat "${pkgdir}/usr/share/mkinitcpio-knockencryptssh/examples/windows.bat"
}