-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy pathpkg.yaml
More file actions
46 lines (46 loc) · 1.46 KB
/
pkg.yaml
File metadata and controls
46 lines (46 loc) · 1.46 KB
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
name: trident-iscsi-tools
variant: scratch
shell: /bin/bash
dependencies:
- stage: base
steps:
- sources:
- url: "https://sg.danny.cz/scsi/lsscsi-{{ .LSSCSI_VERSION }}.tar.gz"
destination: lsscsi.tar.gz
sha256: {{ .LSSCSI_SHA256 }}
sha512: {{ .LSSCSI_SHA512 }}
prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
- |
tar -xzf lsscsi.tar.gz --strip-components=1
build:
- |
./configure --prefix=/usr/local --exec-prefix=/usr/local
# make -j $(nproc) DESTDIR=/rootfs
install:
- |
make DESTDIR=/rootfs install
# Remove man pages and info pages to save space
- |
rm -rf /rootfs/usr/local/share
- |
mkdir -p /rootfs/usr/local/bin
mkdir -p /rootfs/usr/local/sbin
cp /usr/bin/ls /rootfs/usr/local/bin
cp /usr/bin/free /rootfs/usr/local/bin
cp /usr/bin/pgrep /rootfs/usr/local/bin
cp /usr/bin/cat /rootfs/usr/local/bin
cp /usr/bin/dd /rootfs/usr/local/bin
cp /usr/sbin/blockdev /rootfs/usr/local/sbin
test:
- |
mkdir -p /extensions-validator-rootfs
cp -r /rootfs/ /extensions-validator-rootfs/rootfs
cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml
/extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}"
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /