1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 groups = Application/Internet
12 url = http://www.openssh.com/portable.html
14 summary = An open source implementation of SSH protocol versions 1 and 2.
17 SSH (Secure SHell) is a program for logging into and executing \
18 commands on a remote machine. SSH is intended to replace rlogin and \
19 rsh, and to provide secure encrypted communications between two \
20 untrusted hosts over an insecure network.
30 openssl-devel>=1.0.0d-2
35 # Apply patches in a special order
37 openssh-5.6p1-redhat.patch
38 openssh-5.8p1-fingerprint.patch
39 openssh-5.8p1-authorized-keys-command.patch
40 openssh-5.8p1-selinux.patch
41 openssh-5.8p1-selinux-role.patch
42 openssh-5.8p1-mls.patch
43 openssh-5.6p1-keygen.patch
44 openssh-5.2p1-allow-ip-opts.patch
45 openssh-5.8p1-randclean.patch
46 openssh-5.8p1-kuserok.patch
47 openssh-5.5p1-x11.patch
48 openssh-5.6p1-exit-deadlock.patch
49 openssh-5.1p1-askpass-progress.patch
50 openssh-4.3p2-askpass-grab-info.patch
51 openssh-5.2p1-edns.patch
52 openssh-5.1p1-scp-manpage.patch
55 configure_options += \
56 --sysconfdir=/etc/ssh \
57 --datadir=/usr/share/sshd \
58 --libexecdir=/usr/lib/openssh \
59 --with-md5-passwords \
60 --with-privsep-path=/var/lib/sshd \
67 mkdir -pv %{BUILDROOT}/etc/ssh
68 cp -vf %{DIR_SOURCE}/sshd_config %{BUILDROOT}/etc/ssh/sshd_config
70 # Install scriptfile for key generation
71 install -m 754 %{DIR_SOURCE}/ssh-keygen %{BUILDROOT}/usr/lib/openssh/
78 openssh-clients=%{thisver}
79 openssh-server=%{thisver}
83 package openssh-clients
84 summary = OpenSSH client applications.
85 description = %{summary}
96 /usr/lib/openssh/ssh-pkcs11-helper
97 /usr/share/man/cat1/scp.1
98 /usr/share/man/cat1/sftp.1
99 /usr/share/man/cat1/slogin.1
100 /usr/share/man/cat1/ssh-add.1
101 /usr/share/man/cat1/ssh-agent.1
102 /usr/share/man/cat1/ssh-keyscan.1
103 /usr/share/man/cat1/ssh.1
104 /usr/share/man/cat5/ssh_config.5
105 /usr/share/man/cat8/ssh-pkcs11-helper.8
109 package openssh-server
110 summary = OpenSSH server applications.
111 description = %{summary}
113 # /usr/bin/ssh-keygen is needed to generate keys for the ssh server.
114 requires = /usr/bin/ssh-keygen
120 /lib/systemd/system/openssh.service
121 /usr/lib/openssh/sftp-server
122 /usr/lib/openssh/ssh-keygen
124 /usr/share/man/cat5/sshd_config.5*
125 /usr/share/man/cat5/moduli.5*
126 /usr/share/man/cat8/sshd.8*
127 /usr/share/man/cat8/sftp-server.8*
132 # Create unprivileged user and group.
133 getent group sshd || groupadd -r sshd
134 getent passwd sshd || useradd -r -g sshd \
135 -d /var/lib/sshd -s /sbin/nologin sshd
137 systemctl --system daemon-reload
138 systemctl enable openssh.service
141 #script postup = postin