]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - openssh/openssh.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/ms/ipfire-3.x.git] / openssh / openssh.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = openssh
7 version = 5.9p1
8 release = 1
9
10 groups = Application/Internet
11 url = http://www.openssh.com/portable.html
12 license = MIT
13 summary = An open source implementation of SSH protocol versions 1 and 2.
14
15 description
16 SSH (Secure SHell) is a program for logging into and executing
17 commands on a remote machine. SSH is intended to replace rlogin and
18 rsh, and to provide secure encrypted communications between two
19 untrusted hosts over an insecure network.
20 end
21
22 source_dl = http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/
23
24 build
25 requires
26 audit-devel
27 autoconf
28 automake
29 libselinux-devel
30 nss-devel
31 openssl-devel>=1.0.0d-2
32 pam-devel
33 zlib-devel
34 end
35
36 # Apply patches in a special order
37 patches
38 openssh-5.9p1-coverity.patch
39 openssh-5.8p1-fingerprint.patch
40 openssh-5.8p1-getaddrinfo.patch
41 openssh-5.8p1-packet.patch
42 openssh-5.9p1-2auth.patch
43 openssh-5.9p1-role.patch
44 openssh-5.9p1-mls.patch
45 openssh-5.9p1-sftp-chroot.patch
46 openssh-5.9p1-akc.patch
47 openssh-5.9p1-keygen.patch
48 openssh-5.2p1-allow-ip-opts.patch
49 openssh-5.9p1-randclean.patch
50 openssh-5.8p1-keyperm.patch
51 openssh-5.8p2-remove-stale-control-socket.patch
52 openssh-5.9p1-ipv6man.patch
53 openssh-5.8p2-sigpipe.patch
54 openssh-5.8p2-askpass-ld.patch
55 openssh-5.5p1-x11.patch
56 openssh-5.6p1-exit-deadlock.patch
57 openssh-5.1p1-askpass-progress.patch
58 openssh-4.3p2-askpass-grab-info.patch
59 openssh-5.9p1-edns.patch
60 openssh-5.1p1-scp-manpage.patch
61 openssh-5.8p1-localdomain.patch
62 openssh-5.9p1-ipfire.patch
63 openssh-5.9p1-entropy.patch
64 openssh-5.9p1-vendor.patch
65 openssh-5.8p2-force_krb.patch
66 openssh-5.9p1-kuserok.patch
67 end
68
69 configure_options += \
70 --sysconfdir=/etc/ssh \
71 --datadir=/usr/share/sshd \
72 --libexecdir=/usr/lib/openssh \
73 --with-md5-passwords \
74 --with-privsep-path=/var/lib/sshd \
75 --with-pam \
76 --with-selinux \
77 --with-audit=linux
78
79 prepare_cmds
80 autoreconf
81 end
82
83 install_cmds
84 mkdir -pv %{BUILDROOT}/etc/ssh
85 cp -vf %{DIR_SOURCE}/sshd_config %{BUILDROOT}/etc/ssh/sshd_config
86
87 # Install scriptfile for key generation
88 install -m 754 %{DIR_SOURCE}/ssh-keygen %{BUILDROOT}/usr/lib/openssh/
89 end
90 end
91
92 packages
93 package openssh
94 requires
95 openssh-clients=%{thisver}
96 openssh-server=%{thisver}
97 end
98 end
99
100 package openssh-clients
101 summary = OpenSSH client applications.
102 description = %{summary}
103
104 files
105 /etc/ssh/ssh_config
106 /usr/bin/scp
107 /usr/bin/sftp
108 /usr/bin/slogin
109 /usr/bin/ssh
110 /usr/bin/ssh-add
111 /usr/bin/ssh-agent
112 /usr/bin/ssh-keyscan
113 /usr/lib/openssh/ssh-pkcs11-helper
114 /usr/share/man/cat1/scp.1
115 /usr/share/man/cat1/sftp.1
116 /usr/share/man/cat1/slogin.1
117 /usr/share/man/cat1/ssh-add.1
118 /usr/share/man/cat1/ssh-agent.1
119 /usr/share/man/cat1/ssh-keyscan.1
120 /usr/share/man/cat1/ssh.1
121 /usr/share/man/cat5/ssh_config.5
122 /usr/share/man/cat8/ssh-pkcs11-helper.8
123 end
124 end
125
126 package openssh-server
127 summary = OpenSSH server applications.
128 description = %{summary}
129
130 # /usr/bin/ssh-keygen is needed to generate keys for the ssh server.
131 requires = /usr/bin/ssh-keygen
132
133 files
134 /etc/pam.d/sshd
135 /etc/ssh/moduli
136 /etc/ssh/sshd_config
137 /lib/systemd/system/openssh.service
138 /usr/lib/openssh/sftp-server
139 /usr/lib/openssh/ssh-keygen
140 /usr/sbin/sshd
141 /usr/share/man/cat5/sshd_config.5*
142 /usr/share/man/cat5/moduli.5*
143 /usr/share/man/cat8/sshd.8*
144 /usr/share/man/cat8/sftp-server.8*
145 /var/lib/sshd
146 end
147
148 prerequires = shadow-utils systemd-units
149
150 script prein
151 # Create unprivileged user and group.
152 getent group sshd || groupadd -r sshd
153 getent passwd sshd || useradd -r -g sshd \
154 -d /var/lib/sshd -s /sbin/nologin sshd
155 end
156
157 script postin
158 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
159 end
160
161 script preun
162 /bin/systemctl --no-reload disable openssh.service >/dev/null 2>&1 || :
163 /bin/systemctl stop openssh.service >/dev/null 2>&1 || :
164 end
165
166 script postun
167 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
168 end
169
170 script postup
171 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
172 end
173 end
174 end