]> andersk Git - openssh.git/blame - contrib/redhat/openssh.spec
fix doh
[openssh.git] / contrib / redhat / openssh.spec
CommitLineData
bc7ea646 1# Version of OpenSSH
5cc53885 2%define oversion 1.2.3pre3
bc7ea646 3
4# Version of ssh-askpass
5%define aversion 0.99
6
8efc0c15 7Summary: OpenSSH free Secure Shell (SSH) implementation
8Name: openssh
bc7ea646 9Version: %{oversion}
8efc0c15 10Release: 1
11Packager: Damien Miller <djm@ibs.com.au>
bc7ea646 12Source0: http://violet.ibs.com.au/openssh/files/openssh-%{oversion}.tar.gz
9755cbdb 13Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
8efc0c15 14Copyright: BSD
15Group: Applications/Internet
16BuildRoot: /tmp/openssh-%{version}-buildroot
e9c75a39 17Obsoletes: ssh
deecec71 18PreReq: openssl
bc7ea646 19Requires: openssl
d2dcff5f 20BuildPreReq: perl
bc7ea646 21BuildPreReq: openssl-devel
253bd324 22BuildPreReq: tcp_wrappers
bc7ea646 23BuildPreReq: gnome-libs-devel
8c119fd0 24
25%package clients
26Summary: OpenSSH Secure Shell protocol clients
27Requires: openssh
28Group: System Environment/Daemons
e9c75a39 29Obsoletes: ssh-clients
8efc0c15 30
d397b172 31%package server
8c119fd0 32Summary: OpenSSH Secure Shell protocol server (sshd)
d397b172 33Group: System Environment/Daemons
e9c75a39 34Obsoletes: ssh-server
30a39691 35PreReq: openssh chkconfig >= 0.9
d397b172 36
37%package askpass
bc7ea646 38Summary: OpenSSH X11 passphrase dialog
39Group: Applications/Internet
40Requires: openssh
41Obsoletes: ssh-extras
bc7ea646 42
bc7ea646 43%package askpass-gnome
8c119fd0 44Summary: OpenSSH GNOME passphrase dialog
d397b172 45Group: Applications/Internet
46Requires: openssh
8c119fd0 47Obsoletes: ssh-extras
d397b172 48
8efc0c15 49%description
50Ssh (Secure Shell) a program for logging into a remote machine and for
51executing commands in a remote machine. It is intended to replace
52rlogin and rsh, and provide secure encrypted communications between
53two untrusted hosts over an insecure network. X11 connections and
54arbitrary TCP/IP ports can also be forwarded over the secure channel.
55
56OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
57up to date in terms of security and features, as well as removing all
58patented algorithms to seperate libraries (OpenSSL).
59
8c119fd0 60This package includes the core files necessary for both the OpenSSH
61client and server. To make this package useful, you should also
62install openssh-clients, openssh-server, or both.
63
64%description clients
65Ssh (Secure Shell) a program for logging into a remote machine and for
66executing commands in a remote machine. It is intended to replace
67rlogin and rsh, and provide secure encrypted communications between
68two untrusted hosts over an insecure network. X11 connections and
69arbitrary TCP/IP ports can also be forwarded over the secure channel.
70
71OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
72up to date in terms of security and features, as well as removing all
73patented algorithms to seperate libraries (OpenSSL).
74
d397b172 75This package includes the clients necessary to make encrypted connections
76to SSH servers.
77
78%description server
79Ssh (Secure Shell) a program for logging into a remote machine and for
80executing commands in a remote machine. It is intended to replace
81rlogin and rsh, and provide secure encrypted communications between
82two untrusted hosts over an insecure network. X11 connections and
83arbitrary TCP/IP ports can also be forwarded over the secure channel.
84
85OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
86up to date in terms of security and features, as well as removing all
87patented algorithms to seperate libraries (OpenSSL).
88
8c119fd0 89This package contains the secure shell daemon. The sshd is the server
90part of the secure shell protocol and allows ssh clients to connect to
91your host.
d397b172 92
bc7ea646 93%description askpass
94Ssh (Secure Shell) a program for logging into a remote machine and for
95executing commands in a remote machine. It is intended to replace
96rlogin and rsh, and provide secure encrypted communications between
97two untrusted hosts over an insecure network. X11 connections and
98arbitrary TCP/IP ports can also be forwarded over the secure channel.
99
100OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
101up to date in terms of security and features, as well as removing all
102patented algorithms to seperate libraries (OpenSSL).
103
104This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase
105dialog.
bc7ea646 106
8a4958eb 107%description askpass-gnome
d397b172 108Ssh (Secure Shell) a program for logging into a remote machine and for
109executing commands in a remote machine. It is intended to replace
110rlogin and rsh, and provide secure encrypted communications between
111two untrusted hosts over an insecure network. X11 connections and
112arbitrary TCP/IP ports can also be forwarded over the secure channel.
113
114OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
115up to date in terms of security and features, as well as removing all
116patented algorithms to seperate libraries (OpenSSL).
117
118This package contains the GNOME passphrase dialog.
119
8efc0c15 120%changelog
5cc53885 121* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
122- Updated for new location
123- Updated for new gnome-ssh-askpass build
bc7ea646 124* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
125- Added Jim Knoble's <jmknoble@pobox.com> askpass
8c119fd0 126* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
127- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
10554a99 128* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
e9c75a39 129- Added 'Obsoletes' directives
f025becb 130* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
131- Use make install
d397b172 132- Subpackages
e1a9c08d 133* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
134- Added links for slogin
135- Fixed perms on manpages
38393fc0 136* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
137- Renamed init script
339660f6 138* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
139- Back to old binary names
5aecb327 140* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
141- Use autoconf
142- New binary names
8efc0c15 143* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
144- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
145
146%prep
147
bc7ea646 148%setup -a 1
8efc0c15 149
150%build
151
f025becb 152CFLAGS="$RPM_OPT_FLAGS" \
253bd324 153 ./configure --prefix=/usr --sysconfdir=/etc/ssh \
5cc53885 154 --with-tcp-wrappers --with-ipv4-default
bc7ea646 155
156make
8efc0c15 157
bc7ea646 158cd x11-ssh-askpass-%{aversion}
159xmkmf -a
df16c1f2 160make
bc7ea646 161cd ..
df16c1f2 162
5cc53885 163cd contrib
720da3f6 164gcc -O -g `gnome-config --cflags gnome gnomeui` \
5cc53885 165 gnome-ssh-askpass.c -o gnome-ssh-askpass \
166 `gnome-config --libs gnome gnomeui`
167cd ..
168
8efc0c15 169%install
170rm -rf $RPM_BUILD_ROOT
ff8ecdb8 171make install DESTDIR=$RPM_BUILD_ROOT/
8efc0c15 172
22574738 173install -d $RPM_BUILD_ROOT/etc/pam.d/
174install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
5cc53885 175install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
176install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
f1bcacf9 177
bc7ea646 178install -s x11-ssh-askpass-%{aversion}/ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass
179ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
bc7ea646 180
5cc53885 181install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/gnome-ssh-askpass
182
8efc0c15 183%clean
184rm -rf $RPM_BUILD_ROOT
185
d397b172 186%post server
f1bcacf9 187/sbin/chkconfig --add sshd
188if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
189 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
8efc0c15 190fi
f1bcacf9 191if test -r /var/run/sshd.pid
8efc0c15 192then
f1bcacf9 193 /etc/rc.d/init.d/sshd restart >&2
8efc0c15 194fi
195
d397b172 196%preun server
8efc0c15 197if [ "$1" = 0 ]
198then
f1bcacf9 199 /etc/rc.d/init.d/sshd stop >&2
200 /sbin/chkconfig --del sshd
8efc0c15 201fi
202
203%files
204%defattr(-,root,root)
d2dcff5f 205%doc ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen INSTALL
206%doc CREDITS UPGRADING
8c119fd0 207%attr(0755,root,root) /usr/bin/ssh-keygen
208%attr(0755,root,root) /usr/bin/scp
209%attr(0644,root,root) /usr/man/man1/ssh-keygen.1
210%attr(0644,root,root) /usr/man/man1/scp.1
211%attr(0755,root,root) %dir /etc/ssh
2614f09b 212%attr(0755,root,root) %dir /usr/libexec/ssh
8c119fd0 213
214%files clients
215%defattr(-,root,root)
f370266e 216%attr(4755,root,root) /usr/bin/ssh
372e9169 217%attr(0755,root,root) /usr/bin/ssh-agent
372e9169 218%attr(0755,root,root) /usr/bin/ssh-add
e1a9c08d 219%attr(0644,root,root) /usr/man/man1/ssh.1
220%attr(0644,root,root) /usr/man/man1/ssh-agent.1
e1a9c08d 221%attr(0644,root,root) /usr/man/man1/ssh-add.1
4655fe80 222%attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config
8c119fd0 223%attr(-,root,root) /usr/bin/slogin
224%attr(-,root,root) /usr/man/man1/slogin.1
f1bcacf9 225
d397b172 226%files server
227%defattr(-,root,root)
228%attr(0755,root,root) /usr/sbin/sshd
229%attr(0644,root,root) /usr/man/man8/sshd.8
4655fe80 230%attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config
231%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
f1bcacf9 232%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
8efc0c15 233
d397b172 234%files askpass
235%defattr(-,root,root)
f28583d0 236%doc x11-ssh-askpass-%{aversion}/README
237%doc x11-ssh-askpass-%{aversion}/ChangeLog
238%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
736890c4 239%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
bc7ea646 240%attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass
8c119fd0 241
bc7ea646 242%files askpass-gnome
243%defattr(-,root,root)
244%attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass
This page took 0.236698 seconds and 5 git commands to generate.