From 84938141d4efb3b00496f1e819192ee3377dad70 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 23 Jan 2004 16:30:03 +1100 Subject: - (djm) Bug #776: Update contrib/redhat/openssh.spec to dynamically detect Kerberos location (and thus work with Fedora Core 1); from jason AT devrandom.org --- contrib/redhat/openssh.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'contrib/redhat/openssh.spec') diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec index a4d49f61c..30d026352 100644 --- a/contrib/redhat/openssh.spec +++ b/contrib/redhat/openssh.spec @@ -1,5 +1,5 @@ %define ver 3.7.1p2 -%define rel 1 +%define rel 0.2004012300 # OpenSSH privilege separation requires a user & group ID %define sshd_uid 74 @@ -181,6 +181,11 @@ environment. CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS %endif +%if %{kerberos5} +K5DIR=`rpm -ql krb5-devel | grep include/krb5.h | sed 's,\/include\/krb5.h,,'` +echo K5DIR=$K5DIR +%endif + %configure \ --sysconfdir=%{_sysconfdir}/ssh \ --libexecdir=%{_libexecdir}/openssh \ @@ -200,7 +205,7 @@ CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS --with-pam \ %endif %if %{kerberos5} - --with-kerberos5=/usr/kerberos \ + --with-kerberos5=$K5DIR \ %endif -- cgit v1.2.3