diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | packages/redhat/openssh.spec | 37 |
2 files changed, 0 insertions, 39 deletions
@@ -3,8 +3,6 @@ | |||
3 | - Cleanup sshd.c PAM a little more | 3 | - Cleanup sshd.c PAM a little more |
4 | - Revised RPM package to include Jim Knoble's <jmknoble@pobox.com> | 4 | - Revised RPM package to include Jim Knoble's <jmknoble@pobox.com> |
5 | X11 ssh-askpass program. | 5 | X11 ssh-askpass program. |
6 | - Revised RPM package to use conditional building of gnome and X11 | ||
7 | askpass packages. | ||
8 | 6 | ||
9 | 19991225 | 7 | 19991225 |
10 | - More fixes from Andre Lucas <andre.lucas@dial.pipex.com> | 8 | - More fixes from Andre Lucas <andre.lucas@dial.pipex.com> |
diff --git a/packages/redhat/openssh.spec b/packages/redhat/openssh.spec index 0a2f69ebe..b0173aa43 100644 --- a/packages/redhat/openssh.spec +++ b/packages/redhat/openssh.spec | |||
@@ -4,21 +4,13 @@ | |||
4 | # Version of ssh-askpass | 4 | # Version of ssh-askpass |
5 | %define aversion 0.99 | 5 | %define aversion 0.99 |
6 | 6 | ||
7 | # Define if you want to build x11-ssh-askpass | ||
8 | #%define BUILD_X11_ASKPASS | ||
9 | |||
10 | # Define if you want to build gnome-askpass | ||
11 | #%define BUILD_GNOME_ASKPASS | ||
12 | |||
13 | Summary: OpenSSH free Secure Shell (SSH) implementation | 7 | Summary: OpenSSH free Secure Shell (SSH) implementation |
14 | Name: openssh | 8 | Name: openssh |
15 | Version: %{oversion} | 9 | Version: %{oversion} |
16 | Release: 1 | 10 | Release: 1 |
17 | Packager: Damien Miller <djm@ibs.com.au> | 11 | Packager: Damien Miller <djm@ibs.com.au> |
18 | Source0: http://violet.ibs.com.au/openssh/files/openssh-%{oversion}.tar.gz | 12 | Source0: http://violet.ibs.com.au/openssh/files/openssh-%{oversion}.tar.gz |
19 | %ifdef BUILD_X11_ASKPASS | ||
20 | Source1: http://www.pobox.com/~jmknoble/jmk/x11-ssh-askpass-%{aversion}.tar.gz | 13 | Source1: http://www.pobox.com/~jmknoble/jmk/x11-ssh-askpass-%{aversion}.tar.gz |
21 | %endif | ||
22 | Copyright: BSD | 14 | Copyright: BSD |
23 | Group: Applications/Internet | 15 | Group: Applications/Internet |
24 | BuildRoot: /tmp/openssh-%{version}-buildroot | 16 | BuildRoot: /tmp/openssh-%{version}-buildroot |
@@ -27,10 +19,7 @@ Requires: openssl | |||
27 | PreReq: openssl | 19 | PreReq: openssl |
28 | BuildPreReq: openssl-devel | 20 | BuildPreReq: openssl-devel |
29 | BuildPreReq: tcp_wrappers | 21 | BuildPreReq: tcp_wrappers |
30 | |||
31 | %ifdef BUILD_GNOME_ASKPASS | ||
32 | BuildPreReq: gnome-libs-devel | 22 | BuildPreReq: gnome-libs-devel |
33 | %endif | ||
34 | 23 | ||
35 | %package clients | 24 | %package clients |
36 | Summary: OpenSSH Secure Shell protocol clients | 25 | Summary: OpenSSH Secure Shell protocol clients |
@@ -44,21 +33,17 @@ Requires: openssh chkconfig >= 0.9 | |||
44 | Group: System Environment/Daemons | 33 | Group: System Environment/Daemons |
45 | Obsoletes: ssh-server | 34 | Obsoletes: ssh-server |
46 | 35 | ||
47 | %ifdef BUILD_X11_ASKPASS | ||
48 | %package askpass | 36 | %package askpass |
49 | Summary: OpenSSH X11 passphrase dialog | 37 | Summary: OpenSSH X11 passphrase dialog |
50 | Group: Applications/Internet | 38 | Group: Applications/Internet |
51 | Requires: openssh | 39 | Requires: openssh |
52 | Obsoletes: ssh-extras | 40 | Obsoletes: ssh-extras |
53 | %endif | ||
54 | 41 | ||
55 | %ifdef BUILD_GNOME_ASKPASS | ||
56 | %package askpass-gnome | 42 | %package askpass-gnome |
57 | Summary: OpenSSH GNOME passphrase dialog | 43 | Summary: OpenSSH GNOME passphrase dialog |
58 | Group: Applications/Internet | 44 | Group: Applications/Internet |
59 | Requires: openssh | 45 | Requires: openssh |
60 | Obsoletes: ssh-extras | 46 | Obsoletes: ssh-extras |
61 | %endif | ||
62 | 47 | ||
63 | %description | 48 | %description |
64 | Ssh (Secure Shell) a program for logging into a remote machine and for | 49 | Ssh (Secure Shell) a program for logging into a remote machine and for |
@@ -104,7 +89,6 @@ This package contains the secure shell daemon. The sshd is the server | |||
104 | part of the secure shell protocol and allows ssh clients to connect to | 89 | part of the secure shell protocol and allows ssh clients to connect to |
105 | your host. | 90 | your host. |
106 | 91 | ||
107 | %ifdef BUILD_X11_ASKPASS | ||
108 | %package askpass-gnome | 92 | %package askpass-gnome |
109 | %description askpass | 93 | %description askpass |
110 | Ssh (Secure Shell) a program for logging into a remote machine and for | 94 | Ssh (Secure Shell) a program for logging into a remote machine and for |
@@ -119,9 +103,7 @@ patented algorithms to seperate libraries (OpenSSL). | |||
119 | 103 | ||
120 | This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase | 104 | This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase |
121 | dialog. | 105 | dialog. |
122 | %endif | ||
123 | 106 | ||
124 | %ifdef BUILD_GNOME_ASKPASS | ||
125 | %package askpass-gnome | 107 | %package askpass-gnome |
126 | %description askpass | 108 | %description askpass |
127 | Ssh (Secure Shell) a program for logging into a remote machine and for | 109 | Ssh (Secure Shell) a program for logging into a remote machine and for |
@@ -135,12 +117,10 @@ up to date in terms of security and features, as well as removing all | |||
135 | patented algorithms to seperate libraries (OpenSSL). | 117 | patented algorithms to seperate libraries (OpenSSL). |
136 | 118 | ||
137 | This package contains the GNOME passphrase dialog. | 119 | This package contains the GNOME passphrase dialog. |
138 | %endif | ||
139 | 120 | ||
140 | %changelog | 121 | %changelog |
141 | * Sun Dec 26 1999 Damien Miller <djm@mindrot.org> | 122 | * Sun Dec 26 1999 Damien Miller <djm@mindrot.org> |
142 | - Added Jim Knoble's <jmknoble@pobox.com> askpass | 123 | - Added Jim Knoble's <jmknoble@pobox.com> askpass |
143 | - Made subpackage building conditional | ||
144 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> | 124 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> |
145 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> | 125 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> |
146 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> | 126 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> |
@@ -163,31 +143,20 @@ This package contains the GNOME passphrase dialog. | |||
163 | 143 | ||
164 | %prep | 144 | %prep |
165 | 145 | ||
166 | %ifdef BUILD_X11_ASKPASS | ||
167 | %setup -a 1 | 146 | %setup -a 1 |
168 | %else | ||
169 | %setup | ||
170 | %endif | ||
171 | 147 | ||
172 | %build | 148 | %build |
173 | 149 | ||
174 | %ifdef BUILD_GNOME_ASKPASS | ||
175 | CFLAGS="$RPM_OPT_FLAGS" \ | 150 | CFLAGS="$RPM_OPT_FLAGS" \ |
176 | ./configure --prefix=/usr --sysconfdir=/etc/ssh \ | 151 | ./configure --prefix=/usr --sysconfdir=/etc/ssh \ |
177 | --with-gnome-askpass --with-tcp-wrappers | 152 | --with-gnome-askpass --with-tcp-wrappers |
178 | %else | ||
179 | CFLAGS="$RPM_OPT_FLAGS" \ | ||
180 | ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-tcp-wrappers | ||
181 | %endif | ||
182 | 153 | ||
183 | make | 154 | make |
184 | 155 | ||
185 | %ifdef BUILD_X11_ASKPASS | ||
186 | cd x11-ssh-askpass-%{aversion} | 156 | cd x11-ssh-askpass-%{aversion} |
187 | xmkmf -a | 157 | xmkmf -a |
188 | make | 158 | make |
189 | cd .. | 159 | cd .. |
190 | %endif | ||
191 | 160 | ||
192 | %install | 161 | %install |
193 | rm -rf $RPM_BUILD_ROOT | 162 | rm -rf $RPM_BUILD_ROOT |
@@ -201,10 +170,8 @@ install -m755 packages/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd | |||
201 | install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config | 170 | install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config |
202 | install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config | 171 | install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config |
203 | 172 | ||
204 | %ifdef BUILD_X11_ASKPASS | ||
205 | install -s x11-ssh-askpass-%{aversion}/ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass | 173 | install -s x11-ssh-askpass-%{aversion}/ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass |
206 | ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass | 174 | ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass |
207 | %endif | ||
208 | 175 | ||
209 | %clean | 176 | %clean |
210 | rm -rf $RPM_BUILD_ROOT | 177 | rm -rf $RPM_BUILD_ROOT |
@@ -256,15 +223,11 @@ fi | |||
256 | %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd | 223 | %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd |
257 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd | 224 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd |
258 | 225 | ||
259 | %ifdef BUILD_X11_ASKPASS | ||
260 | %files askpass | 226 | %files askpass |
261 | %defattr(-,root,root) | 227 | %defattr(-,root,root) |
262 | %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass | 228 | %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass |
263 | %attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass | 229 | %attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass |
264 | %endif | ||
265 | 230 | ||
266 | %ifdef BUILD_GNOME_ASKPASS | ||
267 | %files askpass-gnome | 231 | %files askpass-gnome |
268 | %defattr(-,root,root) | 232 | %defattr(-,root,root) |
269 | %attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass | 233 | %attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass |
270 | %endif | ||