forked from wolfi-dev/os
/
openssh.yaml
131 lines (118 loc) · 3.96 KB
/
openssh.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
package:
name: openssh
version: 9.0_p1
epoch: 0
description: "the OpenBSD SSH implementation"
target-architecture:
- all
copyright:
- paths:
- "*"
attestation: TODO
license: ISC
dependencies:
runtime:
- openssh-client
- openssh-sftp-server
- openssh-server
environment:
contents:
packages:
- wolfi-baselayout
- busybox
- ca-certificates-bundle
- build-base
- openssl-dev
- zlib-dev
- libedit-dev
pipeline:
- uses: fetch
with:
uri: https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.0p1.tar.gz
expected-sha256: 03974302161e9ecce32153cfa10012f1e65c8f3750f573a73ab1befd5972a28a
- name: Configure
runs: |
./configure \
--host=$(uname -m)-pc-linux-gnu \
--target=$(uname -m)-pc-linux-gnu \
--prefix=/usr \
--datadir=/usr/share \
--sysconfdir=/etc/ssh \
--libexecdir=/usr/lib/ssh \
--with-pid-dir=/run \
--with-mantype=doc \
--with-cflags="-O2 -D_FORTIFY_SOURCE=2 -Wall" \
--disable-utmp \
--disable-wtmp \
--disable-lastlog \
--disable-strip \
--with-privsep-path=/var/empty \
--with-xauth=/usr/bin/xauth \
--with-default-path='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' \
--with-privsep-user=sshd \
--with-ssl-engine \
--with-libedit
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
subpackages:
- name: "openssh-doc"
description: "OpenSSH documentation"
pipeline:
- uses: split/manpages
- name: "openssh-keygen"
description: "OpenSSH key generator"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/bin
mv "${{targets.destdir}}"/usr/bin/ssh-keygen "${{targets.subpkgdir}}"/usr/bin/
- name: "openssh-keyscan"
description: "OpenSSH key scanner"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/bin
mv "${{targets.destdir}}"/usr/bin/ssh-keyscan "${{targets.subpkgdir}}"/usr/bin/
- name: "openssh-keysign"
description: "OpenSSH key signing tool"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib/ssh
mv "${{targets.destdir}}"/usr/lib/ssh/ssh-keysign "${{targets.subpkgdir}}"/usr/lib/ssh/
- name: "openssh-sftp-server"
description: "OpenSSH SFTP server"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib/ssh
mv "${{targets.destdir}}"/usr/lib/ssh/sftp-server "${{targets.subpkgdir}}"/usr/lib/ssh/
- name: "openssh-pkcs11-helper"
description: "PKCS11 helper for OpenSSH"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib/ssh
mv "${{targets.destdir}}"/usr/lib/ssh/ssh-pkcs11-helper "${{targets.subpkgdir}}"/usr/lib/ssh/
- name: "openssh-sk-helper"
description: "Security key helper for OpenSSH"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib/ssh
mv "${{targets.destdir}}"/usr/lib/ssh/ssh-sk-helper "${{targets.subpkgdir}}"/usr/lib/ssh/
- name: "openssh-client"
description: "OpenSSH client"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr
mv "${{targets.destdir}}"/usr/bin "${{targets.subpkgdir}}"/usr/
mkdir -p "${{targets.subpkgdir}}"/etc/ssh
mv "${{targets.destdir}}"/etc/ssh/moduli "${{targets.subpkgdir}}"/etc/ssh/
mv "${{targets.destdir}}"/etc/ssh/ssh_config "${{targets.subpkgdir}}"/etc/ssh/
- name: "openssh-server"
description: "OpenSSH server"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/sbin
mv "${{targets.destdir}}"/usr/sbin/sshd "${{targets.subpkgdir}}"/usr/sbin/
mkdir -p "${{targets.subpkgdir}}"/etc
mv "${{targets.destdir}}"/etc/ssh "${{targets.subpkgdir}}"/etc/
dependencies:
runtime:
- openssh-keygen