]>
Commit | Line | Data |
---|---|---|
8b63a194 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
8b63a194 | 4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = openssh |
7 | version = 5.8p1 | |
65de838d | 8 | release = 9 |
8b63a194 | 9 | |
802ea3af MT |
10 | maintainer = |
11 | groups = Application/Internet | |
12 | url = http://www.openssh.com/portable.html | |
13 | license = MIT | |
14 | summary = An open source implementation of SSH protocol versions 1 and 2. | |
8b63a194 | 15 | |
802ea3af | 16 | description |
8987f278 | 17 | SSH (Secure SHell) is a program for logging into and executing \ |
8b63a194 | 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. | |
802ea3af | 21 | end |
8b63a194 | 22 | |
802ea3af | 23 | source_dl = |
8b63a194 | 24 | |
802ea3af MT |
25 | build |
26 | requires | |
27 | audit-devel | |
28 | libselinux-devel | |
29 | nss-devel | |
30 | openssl-devel>=1.0.0d-2 | |
31 | pam-devel | |
32 | zlib-devel | |
33 | end | |
ba2e7991 | 34 | |
802ea3af MT |
35 | # Apply patches in a special order |
36 | patches | |
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 | |
53 | end | |
ba2e7991 | 54 | |
802ea3af MT |
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 \ | |
61 | --with-pam \ | |
62 | --with-selinux \ | |
63 | --with-nss \ | |
64 | --with-audit=linux | |
b771887d | 65 | |
802ea3af MT |
66 | install_cmds |
67 | mkdir -pv %{BUILDROOT}/etc/ssh | |
68 | cp -vf %{DIR_SOURCE}/sshd_config %{BUILDROOT}/etc/ssh/sshd_config | |
99c42052 | 69 | |
802ea3af MT |
70 | # Install scriptfile for key generation |
71 | install -m 754 %{DIR_SOURCE}/ssh-keygen %{BUILDROOT}/usr/lib/openssh/ | |
72 | end | |
73 | end | |
99c42052 | 74 | |
802ea3af MT |
75 | packages |
76 | package openssh | |
77 | requires | |
78 | openssh-clients=%{thisver} | |
79 | openssh-server=%{thisver} | |
80 | end | |
81 | end | |
82 | ||
83 | package openssh-clients | |
84 | summary = OpenSSH client applications. | |
85 | description = %{summary} | |
86 | ||
87 | files | |
88 | /etc/ssh/ssh_config | |
89 | /usr/bin/scp | |
90 | /usr/bin/sftp | |
91 | /usr/bin/slogin | |
92 | /usr/bin/ssh | |
93 | /usr/bin/ssh-add | |
94 | /usr/bin/ssh-agent | |
95 | /usr/bin/ssh-keyscan | |
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 | |
106 | end | |
107 | end | |
108 | ||
109 | package openssh-server | |
110 | summary = OpenSSH server applications. | |
111 | description = %{summary} | |
112 | ||
113 | # /usr/bin/ssh-keygen is needed to generate keys for the ssh server. | |
114 | requires = /usr/bin/ssh-keygen | |
115 | ||
116 | files | |
117 | /etc/pam.d/sshd | |
118 | /etc/ssh/moduli | |
119 | /etc/ssh/sshd_config | |
120 | /lib/systemd/system/openssh.service | |
121 | /usr/lib/openssh/sftp-server | |
122 | /usr/lib/openssh/ssh-keygen | |
123 | /usr/sbin/sshd | |
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* | |
128 | /var/lib/sshd | |
129 | end | |
65de838d MT |
130 | |
131 | prerequires = shadow-utils systemd-units | |
132 | ||
133 | script prein | |
802ea3af MT |
134 | # Create unprivileged user and group. |
135 | getent group sshd || groupadd -r sshd | |
136 | getent passwd sshd || useradd -r -g sshd \ | |
137 | -d /var/lib/sshd -s /sbin/nologin sshd | |
802ea3af | 138 | end |
65de838d MT |
139 | |
140 | script postin | |
141 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
142 | end | |
143 | ||
144 | script preun | |
145 | /bin/systemctl --no-reload disable openssh.service >/dev/null 2>&1 || : | |
146 | /bin/systemctl stop openssh.service >/dev/null 2>&1 || : | |
147 | end | |
148 | ||
149 | script postun | |
150 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
151 | end | |
152 | ||
153 | script postup | |
154 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
155 | end | |
802ea3af MT |
156 | end |
157 | end |