diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Makefile.in | 5 | ||||
-rw-r--r-- | packages/redhat/openssh.spec | 98 |
3 files changed, 95 insertions, 12 deletions
@@ -1,6 +1,10 @@ | |||
1 | 19991226 | 1 | 19991226 |
2 | - Enabled utmpx support by default for Solaris | 2 | - Enabled utmpx support by default for Solaris |
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> | ||
5 | X11 ssh-askpass program. | ||
6 | - Revised RPM package to use conditional building of gnome and X11 | ||
7 | askpass packages. | ||
4 | 8 | ||
5 | 19991225 | 9 | 19991225 |
6 | - More fixes from Andre Lucas <andre.lucas@dial.pipex.com> | 10 | - More fixes from Andre Lucas <andre.lucas@dial.pipex.com> |
diff --git a/Makefile.in b/Makefile.in index fa9a9d815..a13c55195 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -7,7 +7,8 @@ mandir=@mandir@ | |||
7 | sysconfdir=@sysconfdir@ | 7 | sysconfdir=@sysconfdir@ |
8 | 8 | ||
9 | SSH_PROGRAM=@bindir@/ssh | 9 | SSH_PROGRAM=@bindir@/ssh |
10 | ASKPASS_PROGRAM=@libexecdir@/ssh/ssh-askpass | 10 | ASKPASS_LOCATION=@libexecdir@/ssh |
11 | ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass | ||
11 | 12 | ||
12 | CC=@CC@ | 13 | CC=@CC@ |
13 | PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" | 14 | PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" |
@@ -107,7 +108,7 @@ install: all | |||
107 | if [ ! -z "@GNOME_ASKPASS@" ] ; then \ | 108 | if [ ! -z "@GNOME_ASKPASS@" ] ; then \ |
108 | $(INSTALL) -d $(libexecdir) ; \ | 109 | $(INSTALL) -d $(libexecdir) ; \ |
109 | $(INSTALL) -d $(libexecdir)/ssh ; \ | 110 | $(INSTALL) -d $(libexecdir)/ssh ; \ |
110 | $(INSTALL) -s @GNOME_ASKPASS@ ${ASKPASS_PROGRAM} ; \ | 111 | $(INSTALL) -s @GNOME_ASKPASS@ ${ASKPASS_LOCATION} ; \ |
111 | fi | 112 | fi |
112 | 113 | ||
113 | if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \ | 114 | if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \ |
diff --git a/packages/redhat/openssh.spec b/packages/redhat/openssh.spec index af904c7de..0a2f69ebe 100644 --- a/packages/redhat/openssh.spec +++ b/packages/redhat/openssh.spec | |||
@@ -1,19 +1,36 @@ | |||
1 | # Version of OpenSSH | ||
2 | %define oversion 1.2.1pre21 | ||
3 | |||
4 | # Version of ssh-askpass | ||
5 | %define aversion 0.99 | ||
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 | |||
1 | Summary: OpenSSH free Secure Shell (SSH) implementation | 13 | Summary: OpenSSH free Secure Shell (SSH) implementation |
2 | Name: openssh | 14 | Name: openssh |
3 | Version: 1.2.1pre21 | 15 | Version: %{oversion} |
4 | Release: 1 | 16 | Release: 1 |
5 | Packager: Damien Miller <djm@ibs.com.au> | 17 | Packager: Damien Miller <djm@ibs.com.au> |
6 | Source0: openssh-%{version}.tar.gz | 18 | 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 | ||
21 | %endif | ||
7 | Copyright: BSD | 22 | Copyright: BSD |
8 | Group: Applications/Internet | 23 | Group: Applications/Internet |
9 | BuildRoot: /tmp/openssh-%{version}-buildroot | 24 | BuildRoot: /tmp/openssh-%{version}-buildroot |
10 | Obsoletes: ssh | 25 | Obsoletes: ssh |
11 | Requires: openssl >= 0.9.4 | 26 | Requires: openssl |
12 | PreReq: openssl >= 0.9.4 | 27 | PreReq: openssl |
13 | BuildPreReq: openssl >= 0.9.4 | 28 | BuildPreReq: openssl-devel |
14 | BuildPreReq: openssl-devel >= 0.9.4 | ||
15 | BuildPreReq: tcp_wrappers | 29 | BuildPreReq: tcp_wrappers |
16 | BuildPreReq: gnome-libs | 30 | |
31 | %ifdef BUILD_GNOME_ASKPASS | ||
32 | BuildPreReq: gnome-libs-devel | ||
33 | %endif | ||
17 | 34 | ||
18 | %package clients | 35 | %package clients |
19 | Summary: OpenSSH Secure Shell protocol clients | 36 | Summary: OpenSSH Secure Shell protocol clients |
@@ -27,12 +44,21 @@ Requires: openssh chkconfig >= 0.9 | |||
27 | Group: System Environment/Daemons | 44 | Group: System Environment/Daemons |
28 | Obsoletes: ssh-server | 45 | Obsoletes: ssh-server |
29 | 46 | ||
47 | %ifdef BUILD_X11_ASKPASS | ||
30 | %package askpass | 48 | %package askpass |
49 | Summary: OpenSSH X11 passphrase dialog | ||
50 | Group: Applications/Internet | ||
51 | Requires: openssh | ||
52 | Obsoletes: ssh-extras | ||
53 | %endif | ||
54 | |||
55 | %ifdef BUILD_GNOME_ASKPASS | ||
56 | %package askpass-gnome | ||
31 | Summary: OpenSSH GNOME passphrase dialog | 57 | Summary: OpenSSH GNOME passphrase dialog |
32 | Group: Applications/Internet | 58 | Group: Applications/Internet |
33 | Requires: openssh | 59 | Requires: openssh |
34 | Obsoletes: ssh-extras | 60 | Obsoletes: ssh-extras |
35 | Obsoletes: ssh-askpass | 61 | %endif |
36 | 62 | ||
37 | %description | 63 | %description |
38 | Ssh (Secure Shell) a program for logging into a remote machine and for | 64 | Ssh (Secure Shell) a program for logging into a remote machine and for |
@@ -78,6 +104,25 @@ This package contains the secure shell daemon. The sshd is the server | |||
78 | part of the secure shell protocol and allows ssh clients to connect to | 104 | part of the secure shell protocol and allows ssh clients to connect to |
79 | your host. | 105 | your host. |
80 | 106 | ||
107 | %ifdef BUILD_X11_ASKPASS | ||
108 | %package askpass-gnome | ||
109 | %description askpass | ||
110 | Ssh (Secure Shell) a program for logging into a remote machine and for | ||
111 | executing commands in a remote machine. It is intended to replace | ||
112 | rlogin and rsh, and provide secure encrypted communications between | ||
113 | two untrusted hosts over an insecure network. X11 connections and | ||
114 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | ||
115 | |||
116 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | ||
117 | up to date in terms of security and features, as well as removing all | ||
118 | patented algorithms to seperate libraries (OpenSSL). | ||
119 | |||
120 | This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase | ||
121 | dialog. | ||
122 | %endif | ||
123 | |||
124 | %ifdef BUILD_GNOME_ASKPASS | ||
125 | %package askpass-gnome | ||
81 | %description askpass | 126 | %description askpass |
82 | Ssh (Secure Shell) a program for logging into a remote machine and for | 127 | Ssh (Secure Shell) a program for logging into a remote machine and for |
83 | executing commands in a remote machine. It is intended to replace | 128 | executing commands in a remote machine. It is intended to replace |
@@ -90,8 +135,12 @@ up to date in terms of security and features, as well as removing all | |||
90 | patented algorithms to seperate libraries (OpenSSL). | 135 | patented algorithms to seperate libraries (OpenSSL). |
91 | 136 | ||
92 | This package contains the GNOME passphrase dialog. | 137 | This package contains the GNOME passphrase dialog. |
138 | %endif | ||
93 | 139 | ||
94 | %changelog | 140 | %changelog |
141 | * Sun Dec 26 1999 Damien Miller <djm@mindrot.org> | ||
142 | - Added Jim Knoble's <jmknoble@pobox.com> askpass | ||
143 | - Made subpackage building conditional | ||
95 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> | 144 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> |
96 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> | 145 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> |
97 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> | 146 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> |
@@ -114,15 +163,31 @@ This package contains the GNOME passphrase dialog. | |||
114 | 163 | ||
115 | %prep | 164 | %prep |
116 | 165 | ||
117 | %setup -q | 166 | %ifdef BUILD_X11_ASKPASS |
167 | %setup -a 1 | ||
168 | %else | ||
169 | %setup | ||
170 | %endif | ||
118 | 171 | ||
119 | %build | 172 | %build |
120 | 173 | ||
174 | %ifdef BUILD_GNOME_ASKPASS | ||
121 | CFLAGS="$RPM_OPT_FLAGS" \ | 175 | CFLAGS="$RPM_OPT_FLAGS" \ |
122 | ./configure --prefix=/usr --sysconfdir=/etc/ssh \ | 176 | ./configure --prefix=/usr --sysconfdir=/etc/ssh \ |
123 | --with-gnome-askpass --with-tcp-wrappers | 177 | --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 | |||
183 | make | ||
124 | 184 | ||
185 | %ifdef BUILD_X11_ASKPASS | ||
186 | cd x11-ssh-askpass-%{aversion} | ||
187 | xmkmf -a | ||
125 | make | 188 | make |
189 | cd .. | ||
190 | %endif | ||
126 | 191 | ||
127 | %install | 192 | %install |
128 | rm -rf $RPM_BUILD_ROOT | 193 | rm -rf $RPM_BUILD_ROOT |
@@ -136,6 +201,11 @@ install -m755 packages/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd | |||
136 | install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config | 201 | install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config |
137 | install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config | 202 | install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config |
138 | 203 | ||
204 | %ifdef BUILD_X11_ASKPASS | ||
205 | 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 | ||
207 | %endif | ||
208 | |||
139 | %clean | 209 | %clean |
140 | rm -rf $RPM_BUILD_ROOT | 210 | rm -rf $RPM_BUILD_ROOT |
141 | 211 | ||
@@ -176,6 +246,7 @@ fi | |||
176 | %attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config | 246 | %attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config |
177 | %attr(-,root,root) /usr/bin/slogin | 247 | %attr(-,root,root) /usr/bin/slogin |
178 | %attr(-,root,root) /usr/man/man1/slogin.1 | 248 | %attr(-,root,root) /usr/man/man1/slogin.1 |
249 | %attr(0755,root,root) %dir /usr/libexec/ssh | ||
179 | 250 | ||
180 | %files server | 251 | %files server |
181 | %defattr(-,root,root) | 252 | %defattr(-,root,root) |
@@ -185,8 +256,15 @@ fi | |||
185 | %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd | 256 | %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd |
186 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd | 257 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd |
187 | 258 | ||
259 | %ifdef BUILD_X11_ASKPASS | ||
188 | %files askpass | 260 | %files askpass |
189 | %defattr(-,root,root) | 261 | %defattr(-,root,root) |
190 | %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass | 262 | %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass |
191 | %attr(0755,root,root) %dir /usr/libexec/ssh | 263 | %attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass |
264 | %endif | ||
192 | 265 | ||
266 | %ifdef BUILD_GNOME_ASKPASS | ||
267 | %files askpass-gnome | ||
268 | %defattr(-,root,root) | ||
269 | %attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass | ||
270 | %endif | ||