diff options
author | Damien Miller <djm@mindrot.org> | 2001-03-12 14:47:30 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-03-12 14:47:30 +1100 |
commit | 3e292fab40a750b64e86695bd6626c67eedd25df (patch) | |
tree | fccedc6e027e639bc471556d9e3b1179fef9201e /contrib/redhat/openssh.spec | |
parent | 547c27620326710ce595692d2eba6c7f84e73343 (diff) |
- (djm) Add "static_openssl" RPM build option, remove rsh build dependency
Diffstat (limited to 'contrib/redhat/openssh.spec')
-rw-r--r-- | contrib/redhat/openssh.spec | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec index 1e7b21bf5..d31115807 100644 --- a/contrib/redhat/openssh.spec +++ b/contrib/redhat/openssh.spec | |||
@@ -10,6 +10,9 @@ | |||
10 | # Do we want to disable building of gnome-askpass? (1=yes 0=no) | 10 | # Do we want to disable building of gnome-askpass? (1=yes 0=no) |
11 | %define no_gnome_askpass 0 | 11 | %define no_gnome_askpass 0 |
12 | 12 | ||
13 | # Do we want to link against a static libcrypto? (1=yes 0=no) | ||
14 | %define static_libcrypto 0 | ||
15 | |||
13 | # Use Redhat 7.0 pam control file | 16 | # Use Redhat 7.0 pam control file |
14 | %define redhat7 0 | 17 | %define redhat7 0 |
15 | 18 | ||
@@ -22,6 +25,10 @@ | |||
22 | # rpm -ba|--rebuild --define "rh7 1" | 25 | # rpm -ba|--rebuild --define "rh7 1" |
23 | %{?rh7:%define redhat7 1} | 26 | %{?rh7:%define redhat7 1} |
24 | 27 | ||
28 | # Options for static OpenSSL link: | ||
29 | # rpm -ba|--rebuild --define "static_openssl 1" | ||
30 | %{?static_openssl:%define static_libcrypto 1} | ||
31 | |||
25 | %define exact_openssl_version %(rpm -q openssl | cut -d - -f 2) | 32 | %define exact_openssl_version %(rpm -q openssl | cut -d - -f 2) |
26 | 33 | ||
27 | Summary: OpenSSH free Secure Shell (SSH) implementation | 34 | Summary: OpenSSH free Secure Shell (SSH) implementation |
@@ -38,16 +45,18 @@ Copyright: BSD | |||
38 | Group: Applications/Internet | 45 | Group: Applications/Internet |
39 | BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot | 46 | BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
40 | Obsoletes: ssh | 47 | Obsoletes: ssh |
41 | PreReq: openssl >= 0.9.5a | ||
42 | PreReq: openssl = %{exact_openssl_version} | ||
43 | Requires: openssl >= 0.9.5a | ||
44 | Requires: rpm >= 3.0.5 | ||
45 | BuildPreReq: perl, openssl-devel, tcp_wrappers | 48 | BuildPreReq: perl, openssl-devel, tcp_wrappers |
46 | BuildPreReq: /bin/login, /usr/bin/rsh, /usr/include/security/pam_appl.h | 49 | BuildPreReq: /bin/login, /usr/include/security/pam_appl.h |
47 | BuildPreReq: rpm >= 3.0.5 | 50 | BuildPreReq: rpm >= 3.0.5 |
48 | %if ! %{no_gnome_askpass} | 51 | %if ! %{no_gnome_askpass} |
49 | BuildPreReq: gnome-libs-devel | 52 | BuildPreReq: gnome-libs-devel |
50 | %endif | 53 | %endif |
54 | %if ! %{static_libcrypto} | ||
55 | PreReq: openssl >= 0.9.5a | ||
56 | PreReq: openssl = %{exact_openssl_version} | ||
57 | Requires: openssl >= 0.9.5a | ||
58 | %endif | ||
59 | Requires: rpm >= 3.0.5 | ||
51 | 60 | ||
52 | %package clients | 61 | %package clients |
53 | Summary: OpenSSH Secure Shell protocol clients | 62 | Summary: OpenSSH Secure Shell protocol clients |
@@ -167,6 +176,10 @@ This package contains the GNOME passphrase dialog. | |||
167 | --with-rsh=/usr/bin/rsh \ | 176 | --with-rsh=/usr/bin/rsh \ |
168 | --with-default-path=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin | 177 | --with-default-path=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin |
169 | 178 | ||
179 | %if %{static_libcrypto} | ||
180 | perl -pi -e "s|-lcrypto|/usr/lib/libcrypto.a|g" Makefile | ||
181 | %endif | ||
182 | |||
170 | make | 183 | make |
171 | 184 | ||
172 | %if ! %{no_x11_askpass} | 185 | %if ! %{no_x11_askpass} |