-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathdpkg.yaml
179 lines (167 loc) · 5.02 KB
/
dpkg.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
package:
name: dpkg
version: "1.22.18"
epoch: 1
description: "The Debian Package Manager"
copyright:
- license: GPL-2.0-or-later
dependencies:
runtime:
- gnutar # dpkg requires tar option '--warning=no-timestamp'
- xz
environment:
contents:
packages:
- build-base
- busybox
- bzip2-dev
- ca-certificates-bundle
- gnutar # dpkg specifically needs GNU tar instead of bsdtar
- libmd-dev
- patch
- perl
- wolfi-base
- xz
- zlib-dev
- zstd-dev
pipeline:
- uses: fetch
with:
uri: http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_${{package.version}}.tar.xz
expected-sha256: 7135eb7960e38b2c77810d5aab8cabf5f690fed7475b7b0f2654fd91efbba0f6
- runs: |
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--with-libz \
--with-libbz2 \
--disable-dselect \
--disable-start-stop-daemon \
--disable-nls
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
subpackages:
- name: "dpkg-dev"
description: "headers for dpkg"
pipeline:
- uses: split/dev
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
mv "${{targets.destdir}}"/usr/bin/dpkg-architecture \
"${{targets.destdir}}"/usr/bin/dpkg-buildpackage \
"${{targets.destdir}}"/usr/bin/dpkg-checkbuilddeps \
"${{targets.destdir}}"/usr/bin/dpkg-distaddfile \
"${{targets.destdir}}"/usr/bin/dpkg-genchanges \
"${{targets.destdir}}"/usr/bin/dpkg-gencontrol \
"${{targets.destdir}}"/usr/bin/dpkg-gensymbols \
"${{targets.destdir}}"/usr/bin/dpkg-name \
"${{targets.destdir}}"/usr/bin/dpkg-scanpackages \
"${{targets.destdir}}"/usr/bin/dpkg-scansources \
"${{targets.destdir}}"/usr/bin/dpkg-shlibdeps \
"${{targets.destdir}}"/usr/bin/dpkg-source \
"${{targets.destdir}}"/usr/bin/dpkg-vendor \
"${{targets.subpkgdir}}"/usr/bin/
mkdir -p "${{targets.subpkgdir}}"/usr/share/
mv "${{targets.destdir}}"/usr/share/perl* "${{targets.subpkgdir}}"/usr/share/
dependencies:
runtime:
- build-base
- bzip2
- dpkg
- gnutar
- patch
- perl
test:
pipeline:
- runs: |
dpkg-architecture --version
dpkg-architecture --help
dpkg-buildpackage --version
dpkg-buildpackage --help
dpkg-checkbuilddeps --version
dpkg-checkbuilddeps --help
dpkg-distaddfile --version
dpkg-distaddfile --help
dpkg-genchanges --version
dpkg-genchanges --help
dpkg-gencontrol --version
dpkg-gencontrol --help
dpkg-gensymbols --version
dpkg-gensymbols --help
dpkg-name --version
dpkg-name --help
dpkg-scanpackages --version
dpkg-scanpackages --help
dpkg-scansources --version
dpkg-scansources --help
dpkg-shlibdeps --version
dpkg-shlibdeps --help
dpkg-source --version
dpkg-source --help
dpkg-vendor --version
dpkg-vendor --help
- uses: test/pkgconf
- name: dpkg-doc
description: dpkg documentation
pipeline:
- uses: split/manpages
test:
pipeline:
- uses: test/docs
update:
enabled: true
release-monitor:
identifier: 8127
test:
pipeline:
- name: Create a sample Debian package
runs: |
mkdir -p test/data
echo "brew" > test/data/homebrew.txt
mkdir -p test/DEBIAN
chmod 0755 test/DEBIAN
cat <<EOF > test/DEBIAN/control
Package: test
Version: 1.40.99
Architecture: all
Description: I am a test
Maintainer: Dpkg Developers <test@test.org>
EOF
# Build with all supported compression types
# to check dependencies.
for comp in gzip xz zstd none; do
dpkg-deb -Z $comp --build test test.deb
dpkg -c test.deb
done
- name: Extract the Debian package
runs: |
rm -rf test
dpkg-deb --extract test.deb test
[ -f test/data/homebrew.txt ] || exit 1
- name: Dustin-sanity
runs: |
dpkg --version
dpkg --help
dpkg-deb --version
dpkg-deb --help
dpkg-divert --version
dpkg-divert --help
dpkg-maintscript-helper --version
dpkg-maintscript-helper --help
dpkg-query --version
dpkg-query --help
dpkg-realpath --version
dpkg-realpath --help
dpkg-split --version
dpkg-split --help
dpkg-statoverride --version
dpkg-statoverride --help
dpkg-trigger --version
dpkg-trigger --help
update-alternatives --version
update-alternatives --help