blob: f19cfd5edb51f119f5ddd45682588554d6bcd26f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Maintainer: Christopher Snowhill <kode54@gmail.com>
pkgname=systemd-netconsole
pkgver=1.1
pkgrel=1
pkgdesc="A script for loading the netconsole kernel module using a systemd service, scheduled to start after the network is up."
arch=('any')
url="https://github.com/kode54/systemd-netconsole"
license=('MIT')
depends=('bash' 'jq')
backup=('etc/default/netconsole')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kode54/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('76cb7af68a0eb48393f363f1f1f7e6eef408011d68b287c0e3c5c705a31a2cab')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 'usr/bin/load_netconsole.sh' "${pkgdir}/usr/lib/systemd-netconsole/systemd-netconsole"
install -Dm644 'etc/default/netconsole' "${pkgdir}/etc/default/netconsole"
install -dm755 "${pkgdir}/usr/lib/systemd/system"
sed 's_^ExecStart.*_ExecStart=/usr/lib\/systemd-netconsole/systemd-netconsole_' 'usr/lib/systemd/system/netconsole.service' > "${pkgdir}/usr/lib/systemd/system/netconsole.service"
}
|