summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-12-07 16:20:49 +1100
committerDamien Miller <djm@mindrot.org>1999-12-07 16:20:49 +1100
commit93168eb2748276e4f48b0b587895ca287dbea7bb (patch)
treed2f4c53c12ba3115a807574d9017f39f4f5af52f /packages
parent037a0dc0835bb5a442bdcbeecdd5baed723f0b45 (diff)
Updated spec
Diffstat (limited to 'packages')
-rw-r--r--packages/suse/openssh.spec75
1 files changed, 43 insertions, 32 deletions
diff --git a/packages/suse/openssh.spec b/packages/suse/openssh.spec
index 1ed0c2fc1..ef51c7f06 100644
--- a/packages/suse/openssh.spec
+++ b/packages/suse/openssh.spec
@@ -1,6 +1,6 @@
1Summary: OpenSSH, a free Secure Shell (SSH) implementation 1Summary: OpenSSH, a free Secure Shell (SSH) implementation
2Name: openssh 2Name: openssh
3Version: 1.2pre15 3Version: 1.2pre16
4Release: 1 4Release: 1
5Source0: openssh-%{version}.tar.gz 5Source0: openssh-%{version}.tar.gz
6Copyright: BSD 6Copyright: BSD
@@ -8,13 +8,17 @@ Group: Applications/Internet
8BuildRoot: /tmp/openssh-%{version}-buildroot 8BuildRoot: /tmp/openssh-%{version}-buildroot
9Obsoletes: ssh 9Obsoletes: ssh
10# 10#
11# building prerequisites -- stuff for TCP Wrappers and Gnome 11# (Build[ing] Prereq[uisites] only work for RPM 2.95 and newer.)
12# (This only works for RPM 2.95 and newer.) 12# building prerequisites -- stuff for
13# OpenSSL (openssl-devel),
14# TCP Wrappers (nkitb),
15# and Gnome (glibdev, gtkdev, and gnlibsd)
13# 16#
14#BuildPrereq: nkitb 17BuildPrereq: openssl-devel
15#BuildPrereq: glibdev 18BuildPrereq: nkitb
16#BuildPrereq: gtkdev 19BuildPrereq: glibdev
17#BuildPrereq: gnlibsd 20BuildPrereq: gtkdev
21BuildPrereq: gnlibsd
18 22
19%package clients 23%package clients
20Summary: OpenSSH Secure Shell protocol clients 24Summary: OpenSSH Secure Shell protocol clients
@@ -93,6 +97,16 @@ patented algorithms to seperate libraries (OpenSSL).
93This package contains the GNOME passphrase dialog. 97This package contains the GNOME passphrase dialog.
94 98
95%changelog 99%changelog
100* Wed Nov 24 1999 Chris Saia <csaia@wtower.com>
101- Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and
102 /var/adm/fillup-templates/rc.config.sshd, since Damien merged these into
103 his released tarfile
104- Changed permissions on ssh_config in the install procedure to 644 from 600
105 even though it was correct in the %files section and thus right in the RPMs
106- Postinstall script for the server now only prints "Generating SSH host
107 key..." if we need to actually do this, in order to eliminate a confusing
108 message if an SSH host key is already in place
109- Marked all manual pages as %doc(umentation)
96* Mon Nov 22 1999 Chris Saia <csaia@wtower.com> 110* Mon Nov 22 1999 Chris Saia <csaia@wtower.com>
97- Added flag to configure daemon with TCP Wrappers support 111- Added flag to configure daemon with TCP Wrappers support
98- Added building prerequisites (works in RPM 3.0 and newer) 112- Added building prerequisites (works in RPM 3.0 and newer)
@@ -121,39 +135,35 @@ This package contains the GNOME passphrase dialog.
121- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec. 135- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
122 136
123%prep 137%prep
124
125%setup 138%setup
126 139
127%build 140%build
128
129CFLAGS="$RPM_OPT_FLAGS" \ 141CFLAGS="$RPM_OPT_FLAGS" \
130 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass --with-tcp-wrappers 142./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass \
131 143 --with-tcp-wrappers
132make 144make
133 145
134%install 146%install
135rm -rf $RPM_BUILD_ROOT 147rm -rf $RPM_BUILD_ROOT
136make install prefix="$RPM_BUILD_ROOT/usr" 148make install prefix="$RPM_BUILD_ROOT/usr"
137
138install -d $RPM_BUILD_ROOT/etc/ssh/ 149install -d $RPM_BUILD_ROOT/etc/ssh/
139install -d $RPM_BUILD_ROOT/etc/pam.d/ 150install -d $RPM_BUILD_ROOT/etc/pam.d/
140install -d $RPM_BUILD_ROOT/sbin/init.d/ 151install -d $RPM_BUILD_ROOT/sbin/init.d/
141install -d $RPM_BUILD_ROOT/sbin/init.d/rc2.d/ 152install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
142install -d $RPM_BUILD_ROOT/sbin/init.d/rc3.d/
143install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd 153install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd
144install -m744 packages/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd 154install -m744 packages/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd
145install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config 155install -m644 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
146install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config 156install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
147ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd 157ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd
148install -d $RPM_BUILD_ROOT/var/adm/fillup-templates 158install -m744 packages/suse/rc.config.sshd \
149cp packages/suse/rc.config.sshd $RPM_BUILD_ROOT/var/adm/fillup-templates 159 $RPM_BUILD_ROOT/var/adm/fillup-templates
150 160
151%clean 161%clean
152rm -rf $RPM_BUILD_ROOT 162rm -rf $RPM_BUILD_ROOT
153 163
154%post server 164%post server
155if [ "$1" = 0 ]; then 165if [ "$1" = 1 ]; then
156 echo "Creating SSH stop/start scripts in rc directories..." 166 echo "Creating SSH stop/start scripts in the rc directories..."
157 ln -s ../sshd /sbin/init.d/rc2.d/K20sshd 167 ln -s ../sshd /sbin/init.d/rc2.d/K20sshd
158 ln -s ../sshd /sbin/init.d/rc2.d/S20sshd 168 ln -s ../sshd /sbin/init.d/rc2.d/S20sshd
159 ln -s ../sshd /sbin/init.d/rc3.d/K20sshd 169 ln -s ../sshd /sbin/init.d/rc3.d/K20sshd
@@ -167,21 +177,22 @@ else
167 echo "Update /etc/rc.config by hand from the following template file:" 177 echo "Update /etc/rc.config by hand from the following template file:"
168 echo " /var/adm/fillup-templates/rc.config.sshd" 178 echo " /var/adm/fillup-templates/rc.config.sshd"
169fi 179fi
170echo "Generating SSH host key..."
171if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then 180if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
181 echo "Generating SSH host key..."
172 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 182 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
173fi 183fi
174if test -r /var/run/sshd.pid 184if test -r /var/run/sshd.pid
175then 185then
186 echo "Restarting the running SSH daemon..."
176 /usr/sbin/rcsshd restart >&2 187 /usr/sbin/rcsshd restart >&2
177fi 188fi
178 189
179%preun server 190%preun server
180if [ "$1" = 0 ] 191if [ "$1" = 0 ]
181then 192then
182 echo "Stopping SSH..." 193 echo "Stopping the SSH daemon..."
183 /usr/sbin/rcsshd stop >&2 194 /usr/sbin/rcsshd stop >&2
184 echo "Removing SSH stop/start scripts from rc directories..." 195 echo "Removing SSH stop/start scripts from the rc directories..."
185 rm /sbin/init.d/rc2.d/K20sshd 196 rm /sbin/init.d/rc2.d/K20sshd
186 rm /sbin/init.d/rc2.d/S20sshd 197 rm /sbin/init.d/rc2.d/S20sshd
187 rm /sbin/init.d/rc3.d/K20sshd 198 rm /sbin/init.d/rc3.d/K20sshd
@@ -194,8 +205,8 @@ fi
194%doc RFC.nroff TODO UPGRADING 205%doc RFC.nroff TODO UPGRADING
195%attr(0755,root,root) /usr/bin/ssh-keygen 206%attr(0755,root,root) /usr/bin/ssh-keygen
196%attr(0755,root,root) /usr/bin/scp 207%attr(0755,root,root) /usr/bin/scp
197%attr(0644,root,root) /usr/man/man1/ssh-keygen.1 208%attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1
198%attr(0644,root,root) /usr/man/man1/scp.1 209%attr(0644,root,root) %doc /usr/man/man1/scp.1
199%attr(0755,root,root) %dir /etc/ssh 210%attr(0755,root,root) %dir /etc/ssh
200 211
201%files clients 212%files clients
@@ -203,19 +214,19 @@ fi
203%attr(4755,root,root) /usr/bin/ssh 214%attr(4755,root,root) /usr/bin/ssh
204%attr(0755,root,root) /usr/bin/ssh-agent 215%attr(0755,root,root) /usr/bin/ssh-agent
205%attr(0755,root,root) /usr/bin/ssh-add 216%attr(0755,root,root) /usr/bin/ssh-add
206%attr(0644,root,root) /usr/man/man1/ssh.1 217%attr(0644,root,root) %doc /usr/man/man1/ssh.1
207%attr(0644,root,root) /usr/man/man1/ssh-agent.1 218%attr(0644,root,root) %doc /usr/man/man1/ssh-agent.1
208%attr(0644,root,root) /usr/man/man1/ssh-add.1 219%attr(0644,root,root) %doc /usr/man/man1/ssh-add.1
209%attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config 220%attr(0644,root,root) %config /etc/ssh/ssh_config
210%attr(-,root,root) /usr/bin/slogin 221%attr(-,root,root) /usr/bin/slogin
211%attr(-,root,root) /usr/man/man1/slogin.1 222%attr(-,root,root) %doc /usr/man/man1/slogin.1
212 223
213%files server 224%files server
214%defattr(-,root,root) 225%defattr(-,root,root)
215%attr(0755,root,root) /usr/sbin/sshd 226%attr(0755,root,root) /usr/sbin/sshd
216%attr(0644,root,root) /usr/man/man8/sshd.8 227%attr(0644,root,root) %doc /usr/man/man8/sshd.8
217%attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config 228%attr(0600,root,root) %config /etc/ssh/sshd_config
218%attr(0644,root,root) %config(noreplace) /etc/pam.d/sshd 229%attr(0644,root,root) %config /etc/pam.d/sshd
219%attr(0755,root,root) %config /sbin/init.d/sshd 230%attr(0755,root,root) %config /sbin/init.d/sshd
220%attr(-,root,root) /usr/sbin/rcsshd 231%attr(-,root,root) /usr/sbin/rcsshd
221%attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd 232%attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd