diff options
author | Damien Miller <djm@mindrot.org> | 1999-12-07 16:20:49 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-12-07 16:20:49 +1100 |
commit | 93168eb2748276e4f48b0b587895ca287dbea7bb (patch) | |
tree | d2f4c53c12ba3115a807574d9017f39f4f5af52f /packages | |
parent | 037a0dc0835bb5a442bdcbeecdd5baed723f0b45 (diff) |
Updated spec
Diffstat (limited to 'packages')
-rw-r--r-- | packages/suse/openssh.spec | 75 |
1 files changed, 43 insertions, 32 deletions
diff --git a/packages/suse/openssh.spec b/packages/suse/openssh.spec index 1ed0c2fc1..ef51c7f06 100644 --- a/packages/suse/openssh.spec +++ b/packages/suse/openssh.spec | |||
@@ -1,6 +1,6 @@ | |||
1 | Summary: OpenSSH, a free Secure Shell (SSH) implementation | 1 | Summary: OpenSSH, a free Secure Shell (SSH) implementation |
2 | Name: openssh | 2 | Name: openssh |
3 | Version: 1.2pre15 | 3 | Version: 1.2pre16 |
4 | Release: 1 | 4 | Release: 1 |
5 | Source0: openssh-%{version}.tar.gz | 5 | Source0: openssh-%{version}.tar.gz |
6 | Copyright: BSD | 6 | Copyright: BSD |
@@ -8,13 +8,17 @@ Group: Applications/Internet | |||
8 | BuildRoot: /tmp/openssh-%{version}-buildroot | 8 | BuildRoot: /tmp/openssh-%{version}-buildroot |
9 | Obsoletes: ssh | 9 | Obsoletes: ssh |
10 | # | 10 | # |
11 | # building prerequisites -- stuff for TCP Wrappers and Gnome | 11 | # (Build[ing] Prereq[uisites] only work for RPM 2.95 and newer.) |
12 | # (This only works for RPM 2.95 and newer.) | 12 | # building prerequisites -- stuff for |
13 | # OpenSSL (openssl-devel), | ||
14 | # TCP Wrappers (nkitb), | ||
15 | # and Gnome (glibdev, gtkdev, and gnlibsd) | ||
13 | # | 16 | # |
14 | #BuildPrereq: nkitb | 17 | BuildPrereq: openssl-devel |
15 | #BuildPrereq: glibdev | 18 | BuildPrereq: nkitb |
16 | #BuildPrereq: gtkdev | 19 | BuildPrereq: glibdev |
17 | #BuildPrereq: gnlibsd | 20 | BuildPrereq: gtkdev |
21 | BuildPrereq: gnlibsd | ||
18 | 22 | ||
19 | %package clients | 23 | %package clients |
20 | Summary: OpenSSH Secure Shell protocol clients | 24 | Summary: OpenSSH Secure Shell protocol clients |
@@ -93,6 +97,16 @@ patented algorithms to seperate libraries (OpenSSL). | |||
93 | This package contains the GNOME passphrase dialog. | 97 | This package contains the GNOME passphrase dialog. |
94 | 98 | ||
95 | %changelog | 99 | %changelog |
100 | * Wed Nov 24 1999 Chris Saia <csaia@wtower.com> | ||
101 | - Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and | ||
102 | /var/adm/fillup-templates/rc.config.sshd, since Damien merged these into | ||
103 | his released tarfile | ||
104 | - Changed permissions on ssh_config in the install procedure to 644 from 600 | ||
105 | even though it was correct in the %files section and thus right in the RPMs | ||
106 | - Postinstall script for the server now only prints "Generating SSH host | ||
107 | key..." if we need to actually do this, in order to eliminate a confusing | ||
108 | message if an SSH host key is already in place | ||
109 | - Marked all manual pages as %doc(umentation) | ||
96 | * Mon Nov 22 1999 Chris Saia <csaia@wtower.com> | 110 | * Mon Nov 22 1999 Chris Saia <csaia@wtower.com> |
97 | - Added flag to configure daemon with TCP Wrappers support | 111 | - Added flag to configure daemon with TCP Wrappers support |
98 | - Added building prerequisites (works in RPM 3.0 and newer) | 112 | - Added building prerequisites (works in RPM 3.0 and newer) |
@@ -121,39 +135,35 @@ This package contains the GNOME passphrase dialog. | |||
121 | - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec. | 135 | - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec. |
122 | 136 | ||
123 | %prep | 137 | %prep |
124 | |||
125 | %setup | 138 | %setup |
126 | 139 | ||
127 | %build | 140 | %build |
128 | |||
129 | CFLAGS="$RPM_OPT_FLAGS" \ | 141 | CFLAGS="$RPM_OPT_FLAGS" \ |
130 | ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass --with-tcp-wrappers | 142 | ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass \ |
131 | 143 | --with-tcp-wrappers | |
132 | make | 144 | make |
133 | 145 | ||
134 | %install | 146 | %install |
135 | rm -rf $RPM_BUILD_ROOT | 147 | rm -rf $RPM_BUILD_ROOT |
136 | make install prefix="$RPM_BUILD_ROOT/usr" | 148 | make install prefix="$RPM_BUILD_ROOT/usr" |
137 | |||
138 | install -d $RPM_BUILD_ROOT/etc/ssh/ | 149 | install -d $RPM_BUILD_ROOT/etc/ssh/ |
139 | install -d $RPM_BUILD_ROOT/etc/pam.d/ | 150 | install -d $RPM_BUILD_ROOT/etc/pam.d/ |
140 | install -d $RPM_BUILD_ROOT/sbin/init.d/ | 151 | install -d $RPM_BUILD_ROOT/sbin/init.d/ |
141 | install -d $RPM_BUILD_ROOT/sbin/init.d/rc2.d/ | 152 | install -d $RPM_BUILD_ROOT/var/adm/fillup-templates |
142 | install -d $RPM_BUILD_ROOT/sbin/init.d/rc3.d/ | ||
143 | install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd | 153 | install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd |
144 | install -m744 packages/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd | 154 | install -m744 packages/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd |
145 | install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config | 155 | install -m644 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config |
146 | install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config | 156 | install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config |
147 | ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd | 157 | ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd |
148 | install -d $RPM_BUILD_ROOT/var/adm/fillup-templates | 158 | install -m744 packages/suse/rc.config.sshd \ |
149 | cp packages/suse/rc.config.sshd $RPM_BUILD_ROOT/var/adm/fillup-templates | 159 | $RPM_BUILD_ROOT/var/adm/fillup-templates |
150 | 160 | ||
151 | %clean | 161 | %clean |
152 | rm -rf $RPM_BUILD_ROOT | 162 | rm -rf $RPM_BUILD_ROOT |
153 | 163 | ||
154 | %post server | 164 | %post server |
155 | if [ "$1" = 0 ]; then | 165 | if [ "$1" = 1 ]; then |
156 | echo "Creating SSH stop/start scripts in rc directories..." | 166 | echo "Creating SSH stop/start scripts in the rc directories..." |
157 | ln -s ../sshd /sbin/init.d/rc2.d/K20sshd | 167 | ln -s ../sshd /sbin/init.d/rc2.d/K20sshd |
158 | ln -s ../sshd /sbin/init.d/rc2.d/S20sshd | 168 | ln -s ../sshd /sbin/init.d/rc2.d/S20sshd |
159 | ln -s ../sshd /sbin/init.d/rc3.d/K20sshd | 169 | ln -s ../sshd /sbin/init.d/rc3.d/K20sshd |
@@ -167,21 +177,22 @@ else | |||
167 | echo "Update /etc/rc.config by hand from the following template file:" | 177 | echo "Update /etc/rc.config by hand from the following template file:" |
168 | echo " /var/adm/fillup-templates/rc.config.sshd" | 178 | echo " /var/adm/fillup-templates/rc.config.sshd" |
169 | fi | 179 | fi |
170 | echo "Generating SSH host key..." | ||
171 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then | 180 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then |
181 | echo "Generating SSH host key..." | ||
172 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 | 182 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 |
173 | fi | 183 | fi |
174 | if test -r /var/run/sshd.pid | 184 | if test -r /var/run/sshd.pid |
175 | then | 185 | then |
186 | echo "Restarting the running SSH daemon..." | ||
176 | /usr/sbin/rcsshd restart >&2 | 187 | /usr/sbin/rcsshd restart >&2 |
177 | fi | 188 | fi |
178 | 189 | ||
179 | %preun server | 190 | %preun server |
180 | if [ "$1" = 0 ] | 191 | if [ "$1" = 0 ] |
181 | then | 192 | then |
182 | echo "Stopping SSH..." | 193 | echo "Stopping the SSH daemon..." |
183 | /usr/sbin/rcsshd stop >&2 | 194 | /usr/sbin/rcsshd stop >&2 |
184 | echo "Removing SSH stop/start scripts from rc directories..." | 195 | echo "Removing SSH stop/start scripts from the rc directories..." |
185 | rm /sbin/init.d/rc2.d/K20sshd | 196 | rm /sbin/init.d/rc2.d/K20sshd |
186 | rm /sbin/init.d/rc2.d/S20sshd | 197 | rm /sbin/init.d/rc2.d/S20sshd |
187 | rm /sbin/init.d/rc3.d/K20sshd | 198 | rm /sbin/init.d/rc3.d/K20sshd |
@@ -194,8 +205,8 @@ fi | |||
194 | %doc RFC.nroff TODO UPGRADING | 205 | %doc RFC.nroff TODO UPGRADING |
195 | %attr(0755,root,root) /usr/bin/ssh-keygen | 206 | %attr(0755,root,root) /usr/bin/ssh-keygen |
196 | %attr(0755,root,root) /usr/bin/scp | 207 | %attr(0755,root,root) /usr/bin/scp |
197 | %attr(0644,root,root) /usr/man/man1/ssh-keygen.1 | 208 | %attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1 |
198 | %attr(0644,root,root) /usr/man/man1/scp.1 | 209 | %attr(0644,root,root) %doc /usr/man/man1/scp.1 |
199 | %attr(0755,root,root) %dir /etc/ssh | 210 | %attr(0755,root,root) %dir /etc/ssh |
200 | 211 | ||
201 | %files clients | 212 | %files clients |
@@ -203,19 +214,19 @@ fi | |||
203 | %attr(4755,root,root) /usr/bin/ssh | 214 | %attr(4755,root,root) /usr/bin/ssh |
204 | %attr(0755,root,root) /usr/bin/ssh-agent | 215 | %attr(0755,root,root) /usr/bin/ssh-agent |
205 | %attr(0755,root,root) /usr/bin/ssh-add | 216 | %attr(0755,root,root) /usr/bin/ssh-add |
206 | %attr(0644,root,root) /usr/man/man1/ssh.1 | 217 | %attr(0644,root,root) %doc /usr/man/man1/ssh.1 |
207 | %attr(0644,root,root) /usr/man/man1/ssh-agent.1 | 218 | %attr(0644,root,root) %doc /usr/man/man1/ssh-agent.1 |
208 | %attr(0644,root,root) /usr/man/man1/ssh-add.1 | 219 | %attr(0644,root,root) %doc /usr/man/man1/ssh-add.1 |
209 | %attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config | 220 | %attr(0644,root,root) %config /etc/ssh/ssh_config |
210 | %attr(-,root,root) /usr/bin/slogin | 221 | %attr(-,root,root) /usr/bin/slogin |
211 | %attr(-,root,root) /usr/man/man1/slogin.1 | 222 | %attr(-,root,root) %doc /usr/man/man1/slogin.1 |
212 | 223 | ||
213 | %files server | 224 | %files server |
214 | %defattr(-,root,root) | 225 | %defattr(-,root,root) |
215 | %attr(0755,root,root) /usr/sbin/sshd | 226 | %attr(0755,root,root) /usr/sbin/sshd |
216 | %attr(0644,root,root) /usr/man/man8/sshd.8 | 227 | %attr(0644,root,root) %doc /usr/man/man8/sshd.8 |
217 | %attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config | 228 | %attr(0600,root,root) %config /etc/ssh/sshd_config |
218 | %attr(0644,root,root) %config(noreplace) /etc/pam.d/sshd | 229 | %attr(0644,root,root) %config /etc/pam.d/sshd |
219 | %attr(0755,root,root) %config /sbin/init.d/sshd | 230 | %attr(0755,root,root) %config /sbin/init.d/sshd |
220 | %attr(-,root,root) /usr/sbin/rcsshd | 231 | %attr(-,root,root) /usr/sbin/rcsshd |
221 | %attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd | 232 | %attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd |