mirror of git://anongit.mindrot.org/openssh.git
- (djm) Make building of X11-Askpass and GNOME-Askpass optional in RPM
spec file.
This commit is contained in:
parent
5de43db7ed
commit
5a119bc02f
|
@ -9,6 +9,8 @@
|
||||||
disable FallBackToRsh by default
|
disable FallBackToRsh by default
|
||||||
- (djm) Replace in_addr_t with u_int32_t in bsd-inet_aton.c. Report from
|
- (djm) Replace in_addr_t with u_int32_t in bsd-inet_aton.c. Report from
|
||||||
Ben Lindstrom <mouring@pconline.com>
|
Ben Lindstrom <mouring@pconline.com>
|
||||||
|
- (djm) Make building of X11-Askpass and GNOME-Askpass optional in RPM
|
||||||
|
spec file.
|
||||||
|
|
||||||
20000711
|
20000711
|
||||||
- (djm) Fixup for AIX getuserattr() support from Tom Bertelson
|
- (djm) Fixup for AIX getuserattr() support from Tom Bertelson
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
# Version of ssh-askpass
|
# Version of ssh-askpass
|
||||||
%define aversion 1.0
|
%define aversion 1.0
|
||||||
|
|
||||||
|
# Do we want to disable building of x11-askpass? (1=yes 0=no)
|
||||||
|
%define no_x11_askpass 0
|
||||||
|
|
||||||
|
# Do we want to disable building of gnome-askpass? (1=yes 0=no)
|
||||||
|
%define no_gnome_askpass 0
|
||||||
|
|
||||||
Summary: OpenSSH free Secure Shell (SSH) implementation
|
Summary: OpenSSH free Secure Shell (SSH) implementation
|
||||||
Name: openssh
|
Name: openssh
|
||||||
Version: %{oversion}
|
Version: %{oversion}
|
||||||
|
@ -21,7 +27,9 @@ Requires: openssl >= 0.9.5a
|
||||||
BuildPreReq: perl
|
BuildPreReq: perl
|
||||||
BuildPreReq: openssl-devel
|
BuildPreReq: openssl-devel
|
||||||
BuildPreReq: tcp_wrappers
|
BuildPreReq: tcp_wrappers
|
||||||
|
%if %{no_x11_askpass}
|
||||||
BuildPreReq: gnome-libs-devel
|
BuildPreReq: gnome-libs-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%package clients
|
%package clients
|
||||||
Summary: OpenSSH Secure Shell protocol clients
|
Summary: OpenSSH Secure Shell protocol clients
|
||||||
|
@ -119,6 +127,8 @@ patented algorithms to seperate libraries (OpenSSL).
|
||||||
This package contains the GNOME passphrase dialog.
|
This package contains the GNOME passphrase dialog.
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
|
||||||
|
- Make building of X11-askpass and gnome-askpass optional
|
||||||
* Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
|
* Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
|
||||||
- Glob manpages to catch compressed files
|
- Glob manpages to catch compressed files
|
||||||
* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
|
* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
|
||||||
|
@ -159,16 +169,20 @@ CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
|
%if ! %{no_x11_askpass}
|
||||||
cd x11-ssh-askpass-%{aversion}
|
cd x11-ssh-askpass-%{aversion}
|
||||||
xmkmf -a
|
xmkmf -a
|
||||||
make
|
make
|
||||||
cd ..
|
cd ..
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{no_gnome_askpass}
|
||||||
cd contrib
|
cd contrib
|
||||||
gcc -O -g `gnome-config --cflags gnome gnomeui` \
|
gcc -O -g `gnome-config --cflags gnome gnomeui` \
|
||||||
gnome-ssh-askpass.c -o gnome-ssh-askpass \
|
gnome-ssh-askpass.c -o gnome-ssh-askpass \
|
||||||
`gnome-config --libs gnome gnomeui`
|
`gnome-config --libs gnome gnomeui`
|
||||||
cd ..
|
cd ..
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
@ -180,10 +194,14 @@ install -d $RPM_BUILD_ROOT/usr/libexec/ssh
|
||||||
install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
|
install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
|
||||||
install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
|
install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
|
||||||
|
|
||||||
|
%if ! %{no_x11_askpass}
|
||||||
install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass
|
install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass
|
||||||
ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
|
ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{no_gnome_askpass}
|
||||||
install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/gnome-ssh-askpass
|
install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/gnome-ssh-askpass
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
@ -239,6 +257,7 @@ fi
|
||||||
%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
|
%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
|
||||||
%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
|
%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
|
||||||
|
|
||||||
|
%if ! %{no_x11_askpass}
|
||||||
%files askpass
|
%files askpass
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc x11-ssh-askpass-%{aversion}/README
|
%doc x11-ssh-askpass-%{aversion}/README
|
||||||
|
@ -246,8 +265,11 @@ fi
|
||||||
%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
|
%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
|
||||||
%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
|
%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
|
||||||
%attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass
|
%attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{no_gnome_askpass}
|
||||||
%files askpass-gnome
|
%files askpass-gnome
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass
|
%attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue