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