blob: 093869aa5769353a7337a9287b92e589f487f41f (
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
45
46
47
|
# Maintainer: Jan-Niklas Tomski <jan-niklas at tomski dot me>
# Contributor: Greg Brown <greg.brown.00 at outlook dot com>
pkgname=dracut-sshd-git
pkgver=r115.4dc958d
pkgrel=1
pkgdesc="Provide SSH access to initramfs."
arch=(any)
url="https://github.com/gsauthof/dracut-sshd"
license=(GPL-3.0-or-later)
groups=()
depends=(dracut openssh)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/gsauthof/dracut-sshd.git')
noextract=()
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
# Arch's openssh package does not have support for Type=Notify
sed -e 's/^Type=notify/Type=simple/' \
-e 's@^\(ExecStart=/usr/sbin/sshd\) -D@\1 -e -D@' \
-i \
"./46sshd/sshd.service"
}
package() {
cd "$srcdir/${pkgname%-git}"
target="$pkgdir/usr/lib/dracut/modules.d/46sshd"
install -Dt "$target" -m 0755 46sshd/module-setup.sh
install -Dt "$target" -m 0644 46sshd/sshd.service
install -Dt "$target" -m 0644 46sshd/motd
install -Dt "$target" -m 0644 46sshd/profile
install -Dt "$target" -m 0644 46sshd/sshd_config
}
|