Doh! RPM doesn't support conditional building
This commit is contained in:
parent
3688440c4d
commit
47707dbda3
|
@ -3,8 +3,6 @@
|
||||||
- Cleanup sshd.c PAM a little more
|
- Cleanup sshd.c PAM a little more
|
||||||
- Revised RPM package to include Jim Knoble's <jmknoble@pobox.com>
|
- Revised RPM package to include Jim Knoble's <jmknoble@pobox.com>
|
||||||
X11 ssh-askpass program.
|
X11 ssh-askpass program.
|
||||||
- Revised RPM package to use conditional building of gnome and X11
|
|
||||||
askpass packages.
|
|
||||||
|
|
||||||
19991225
|
19991225
|
||||||
- More fixes from Andre Lucas <andre.lucas@dial.pipex.com>
|
- More fixes from Andre Lucas <andre.lucas@dial.pipex.com>
|
||||||
|
|
|
@ -4,21 +4,13 @@
|
||||||
# Version of ssh-askpass
|
# Version of ssh-askpass
|
||||||
%define aversion 0.99
|
%define aversion 0.99
|
||||||
|
|
||||||
# Define if you want to build x11-ssh-askpass
|
|
||||||
#%define BUILD_X11_ASKPASS
|
|
||||||
|
|
||||||
# Define if you want to build gnome-askpass
|
|
||||||
#%define BUILD_GNOME_ASKPASS
|
|
||||||
|
|
||||||
Summary: OpenSSH free Secure Shell (SSH) implementation
|
Summary: OpenSSH free Secure Shell (SSH) implementation
|
||||||
Name: openssh
|
Name: openssh
|
||||||
Version: %{oversion}
|
Version: %{oversion}
|
||||||
Release: 1
|
Release: 1
|
||||||
Packager: Damien Miller <djm@ibs.com.au>
|
Packager: Damien Miller <djm@ibs.com.au>
|
||||||
Source0: http://violet.ibs.com.au/openssh/files/openssh-%{oversion}.tar.gz
|
Source0: http://violet.ibs.com.au/openssh/files/openssh-%{oversion}.tar.gz
|
||||||
%ifdef BUILD_X11_ASKPASS
|
|
||||||
Source1: http://www.pobox.com/~jmknoble/jmk/x11-ssh-askpass-%{aversion}.tar.gz
|
Source1: http://www.pobox.com/~jmknoble/jmk/x11-ssh-askpass-%{aversion}.tar.gz
|
||||||
%endif
|
|
||||||
Copyright: BSD
|
Copyright: BSD
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
BuildRoot: /tmp/openssh-%{version}-buildroot
|
BuildRoot: /tmp/openssh-%{version}-buildroot
|
||||||
|
@ -27,10 +19,7 @@ Requires: openssl
|
||||||
PreReq: openssl
|
PreReq: openssl
|
||||||
BuildPreReq: openssl-devel
|
BuildPreReq: openssl-devel
|
||||||
BuildPreReq: tcp_wrappers
|
BuildPreReq: tcp_wrappers
|
||||||
|
|
||||||
%ifdef BUILD_GNOME_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
|
||||||
|
@ -44,21 +33,17 @@ Requires: openssh chkconfig >= 0.9
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Obsoletes: ssh-server
|
Obsoletes: ssh-server
|
||||||
|
|
||||||
%ifdef BUILD_X11_ASKPASS
|
|
||||||
%package askpass
|
%package askpass
|
||||||
Summary: OpenSSH X11 passphrase dialog
|
Summary: OpenSSH X11 passphrase dialog
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
Requires: openssh
|
Requires: openssh
|
||||||
Obsoletes: ssh-extras
|
Obsoletes: ssh-extras
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifdef BUILD_GNOME_ASKPASS
|
|
||||||
%package askpass-gnome
|
%package askpass-gnome
|
||||||
Summary: OpenSSH GNOME passphrase dialog
|
Summary: OpenSSH GNOME passphrase dialog
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
Requires: openssh
|
Requires: openssh
|
||||||
Obsoletes: ssh-extras
|
Obsoletes: ssh-extras
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Ssh (Secure Shell) a program for logging into a remote machine and for
|
Ssh (Secure Shell) a program for logging into a remote machine and for
|
||||||
|
@ -104,7 +89,6 @@ This package contains the secure shell daemon. The sshd is the server
|
||||||
part of the secure shell protocol and allows ssh clients to connect to
|
part of the secure shell protocol and allows ssh clients to connect to
|
||||||
your host.
|
your host.
|
||||||
|
|
||||||
%ifdef BUILD_X11_ASKPASS
|
|
||||||
%package askpass-gnome
|
%package askpass-gnome
|
||||||
%description askpass
|
%description askpass
|
||||||
Ssh (Secure Shell) a program for logging into a remote machine and for
|
Ssh (Secure Shell) a program for logging into a remote machine and for
|
||||||
|
@ -119,9 +103,7 @@ patented algorithms to seperate libraries (OpenSSL).
|
||||||
|
|
||||||
This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase
|
This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase
|
||||||
dialog.
|
dialog.
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifdef BUILD_GNOME_ASKPASS
|
|
||||||
%package askpass-gnome
|
%package askpass-gnome
|
||||||
%description askpass
|
%description askpass
|
||||||
Ssh (Secure Shell) a program for logging into a remote machine and for
|
Ssh (Secure Shell) a program for logging into a remote machine and for
|
||||||
|
@ -135,12 +117,10 @@ up to date in terms of security and features, as well as removing all
|
||||||
patented algorithms to seperate libraries (OpenSSL).
|
patented algorithms to seperate libraries (OpenSSL).
|
||||||
|
|
||||||
This package contains the GNOME passphrase dialog.
|
This package contains the GNOME passphrase dialog.
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
|
* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
|
||||||
- Added Jim Knoble's <jmknoble@pobox.com> askpass
|
- Added Jim Knoble's <jmknoble@pobox.com> askpass
|
||||||
- Made subpackage building conditional
|
|
||||||
* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
|
* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
|
||||||
- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
|
- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
|
||||||
* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
|
* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
|
||||||
|
@ -163,31 +143,20 @@ This package contains the GNOME passphrase dialog.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
%ifdef BUILD_X11_ASKPASS
|
|
||||||
%setup -a 1
|
%setup -a 1
|
||||||
%else
|
|
||||||
%setup
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%ifdef BUILD_GNOME_ASKPASS
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
./configure --prefix=/usr --sysconfdir=/etc/ssh \
|
./configure --prefix=/usr --sysconfdir=/etc/ssh \
|
||||||
--with-gnome-askpass --with-tcp-wrappers
|
--with-gnome-askpass --with-tcp-wrappers
|
||||||
%else
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-tcp-wrappers
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
%ifdef BUILD_X11_ASKPASS
|
|
||||||
cd x11-ssh-askpass-%{aversion}
|
cd x11-ssh-askpass-%{aversion}
|
||||||
xmkmf -a
|
xmkmf -a
|
||||||
make
|
make
|
||||||
cd ..
|
cd ..
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
@ -201,10 +170,8 @@ install -m755 packages/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
|
||||||
install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
|
install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
|
||||||
install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
|
install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
|
||||||
|
|
||||||
%ifdef BUILD_X11_ASKPASS
|
|
||||||
install -s x11-ssh-askpass-%{aversion}/ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass
|
install -s x11-ssh-askpass-%{aversion}/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
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
@ -256,15 +223,11 @@ 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
|
||||||
|
|
||||||
%ifdef BUILD_X11_ASKPASS
|
|
||||||
%files askpass
|
%files askpass
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%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
|
|
||||||
|
|
||||||
%ifdef BUILD_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