forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kmod.yaml
121 lines (107 loc) · 2.7 KB
/
kmod.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package:
name: kmod
version: "33"
epoch: 2
description: Linux kernel module management utilities
copyright:
- license: GPL-2.0-or-later
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- gtk-doc
- libtool
- libxslt
- openssf-compiler-options
- openssl-dev
- pkgconf-dev
- scdoc
- sed
- tree
- xz-dev
- zlib-dev
- zstd-dev
pipeline:
- uses: git-checkout
with:
repository: https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
tag: v${{package.version}}
expected-commit: e193aeb99a04fb4b63ce47eb2c7f119db59446a0
- runs: |
./autogen.sh
- uses: autoconf/configure
with:
opts: |
--host=${{host.triplet.gnu}} \
--build=${{host.triplet.gnu}} \
--target=${{host.triplet.gnu}} \
--prefix=/usr \
--with-zlib \
--with-xz \
--with-zstd \
--with-openssl
- uses: autoconf/make
- uses: autoconf/make-install
- runs: |
mkdir -p ${{targets.destdir}}/usr/bin
mkdir -p ${{targets.destdir}}/usr/sbin
for i in lsmod rmmod insmod modinfo modprobe depmod; do
ln -sf ../bin/kmod ${{targets.destdir}}/usr/sbin/$i
done
- uses: strip
subpackages:
- name: kmod-doc
pipeline:
- uses: split/manpages
description: kmod manpages
- name: kmod-libs
pipeline:
- runs: tree ${{targets.destdir}}
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/lib
mv ${{targets.destdir}}/usr/lib/libkmod.so* ${{targets.subpkgdir}}/usr/lib/
description: kmod libs
- name: kmod-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- kmod-libs
- zstd-dev # should this be here or in the eudev package list?
- openssl-dev # should this be here or in the eudev package list?
- xz-dev # should this be here or in the eudev package list?
description: kmod dev
test:
pipeline:
- uses: test/pkgconf
- name: kmod-bash-completion
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/share
mv ${{targets.destdir}}/usr/share/bash-completion ${{targets.subpkgdir}}/usr/share/
description: kmod bash completion
update:
enabled: true
release-monitor:
identifier: 1517
test:
pipeline:
- runs: |
kmod -V
lsmod
depmod --version
depmod --help
insmod --version
insmod --help
kmod --version
kmod --help
modinfo --version
modinfo --help
modprobe --version
modprobe --help
rmmod --version
rmmod --help