diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | contrib/redhat/openssh.spec | 22 |
2 files changed, 24 insertions, 0 deletions
@@ -9,6 +9,8 @@ | |||
9 | disable FallBackToRsh by default | 9 | disable FallBackToRsh by default |
10 | - (djm) Replace in_addr_t with u_int32_t in bsd-inet_aton.c. Report from | 10 | - (djm) Replace in_addr_t with u_int32_t in bsd-inet_aton.c. Report from |
11 | Ben Lindstrom <mouring@pconline.com> | 11 | Ben Lindstrom <mouring@pconline.com> |
12 | - (djm) Make building of X11-Askpass and GNOME-Askpass optional in RPM | ||
13 | spec file. | ||
12 | 14 | ||
13 | 20000711 | 15 | 20000711 |
14 | - (djm) Fixup for AIX getuserattr() support from Tom Bertelson | 16 | - (djm) Fixup for AIX getuserattr() support from Tom Bertelson |
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec index b52ced3c4..6587a38b3 100644 --- a/contrib/redhat/openssh.spec +++ b/contrib/redhat/openssh.spec | |||
@@ -4,6 +4,12 @@ | |||
4 | # Version of ssh-askpass | 4 | # Version of ssh-askpass |
5 | %define aversion 1.0 | 5 | %define aversion 1.0 |
6 | 6 | ||
7 | # Do we want to disable building of x11-askpass? (1=yes 0=no) | ||
8 | %define no_x11_askpass 0 | ||
9 | |||
10 | # Do we want to disable building of gnome-askpass? (1=yes 0=no) | ||
11 | %define no_gnome_askpass 0 | ||
12 | |||
7 | Summary: OpenSSH free Secure Shell (SSH) implementation | 13 | Summary: OpenSSH free Secure Shell (SSH) implementation |
8 | Name: openssh | 14 | Name: openssh |
9 | Version: %{oversion} | 15 | Version: %{oversion} |
@@ -21,7 +27,9 @@ Requires: openssl >= 0.9.5a | |||
21 | BuildPreReq: perl | 27 | BuildPreReq: perl |
22 | BuildPreReq: openssl-devel | 28 | BuildPreReq: openssl-devel |
23 | BuildPreReq: tcp_wrappers | 29 | BuildPreReq: tcp_wrappers |
30 | %if %{no_x11_askpass} | ||
24 | BuildPreReq: gnome-libs-devel | 31 | BuildPreReq: gnome-libs-devel |
32 | %endif | ||
25 | 33 | ||
26 | %package clients | 34 | %package clients |
27 | Summary: OpenSSH Secure Shell protocol clients | 35 | Summary: OpenSSH Secure Shell protocol clients |
@@ -119,6 +127,8 @@ patented algorithms to seperate libraries (OpenSSL). | |||
119 | This package contains the GNOME passphrase dialog. | 127 | This package contains the GNOME passphrase dialog. |
120 | 128 | ||
121 | %changelog | 129 | %changelog |
130 | * Wed Jul 12 2000 Damien Miller <djm@mindrot.org> | ||
131 | - Make building of X11-askpass and gnome-askpass optional | ||
122 | * Mon Jun 12 2000 Damien Miller <djm@mindrot.org> | 132 | * Mon Jun 12 2000 Damien Miller <djm@mindrot.org> |
123 | - Glob manpages to catch compressed files | 133 | - Glob manpages to catch compressed files |
124 | * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au> | 134 | * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au> |
@@ -159,16 +169,20 @@ CFLAGS="$RPM_OPT_FLAGS" \ | |||
159 | 169 | ||
160 | make | 170 | make |
161 | 171 | ||
172 | %if ! %{no_x11_askpass} | ||
162 | cd x11-ssh-askpass-%{aversion} | 173 | cd x11-ssh-askpass-%{aversion} |
163 | xmkmf -a | 174 | xmkmf -a |
164 | make | 175 | make |
165 | cd .. | 176 | cd .. |
177 | %endif | ||
166 | 178 | ||
179 | %if ! %{no_gnome_askpass} | ||
167 | cd contrib | 180 | cd contrib |
168 | gcc -O -g `gnome-config --cflags gnome gnomeui` \ | 181 | gcc -O -g `gnome-config --cflags gnome gnomeui` \ |
169 | gnome-ssh-askpass.c -o gnome-ssh-askpass \ | 182 | gnome-ssh-askpass.c -o gnome-ssh-askpass \ |
170 | `gnome-config --libs gnome gnomeui` | 183 | `gnome-config --libs gnome gnomeui` |
171 | cd .. | 184 | cd .. |
185 | %endif | ||
172 | 186 | ||
173 | %install | 187 | %install |
174 | rm -rf $RPM_BUILD_ROOT | 188 | rm -rf $RPM_BUILD_ROOT |
@@ -180,10 +194,14 @@ install -d $RPM_BUILD_ROOT/usr/libexec/ssh | |||
180 | install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd | 194 | install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd |
181 | install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd | 195 | install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd |
182 | 196 | ||
197 | %if ! %{no_x11_askpass} | ||
183 | install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass | 198 | install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass |
184 | ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass | 199 | ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass |
200 | %endif | ||
185 | 201 | ||
202 | %if ! %{no_gnome_askpass} | ||
186 | install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/gnome-ssh-askpass | 203 | install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/gnome-ssh-askpass |
204 | %endif | ||
187 | 205 | ||
188 | %clean | 206 | %clean |
189 | rm -rf $RPM_BUILD_ROOT | 207 | rm -rf $RPM_BUILD_ROOT |
@@ -239,6 +257,7 @@ fi | |||
239 | %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd | 257 | %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd |
240 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd | 258 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd |
241 | 259 | ||
260 | %if ! %{no_x11_askpass} | ||
242 | %files askpass | 261 | %files askpass |
243 | %defattr(-,root,root) | 262 | %defattr(-,root,root) |
244 | %doc x11-ssh-askpass-%{aversion}/README | 263 | %doc x11-ssh-askpass-%{aversion}/README |
@@ -246,8 +265,11 @@ fi | |||
246 | %doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad | 265 | %doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad |
247 | %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass | 266 | %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass |
248 | %attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass | 267 | %attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass |
268 | %endif | ||
249 | 269 | ||
270 | %if ! %{no_gnome_askpass} | ||
250 | %files askpass-gnome | 271 | %files askpass-gnome |
251 | %defattr(-,root,root) | 272 | %defattr(-,root,root) |
252 | %attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass | 273 | %attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass |
274 | %endif | ||
253 | 275 | ||