1 %global _moonshot_krb5 %{!?_moonshot_krb5:krb5-devel}%{?_moonshot_krb5}
5 Summary: Moonshot GSS-API Mechanism
9 URL: http://www.project-moonshot.org/
10 Source0: mech_eap-%{version}.tar.gz
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
13 BuildRequires: %{_moonshot_krb5} >= 1.9.1
14 BuildRequires: moonshot-ui-devel
15 BuildRequires: jansson-devel
17 BuildRequires: libradsec-devel >= 0.0.3
18 BuildRequires: shibboleth-sp-devel >= 2.5
19 BuildRequires: libshibresolver-devel
24 Project Moonshot provides federated access management.
28 %setup -q -n mech_eap-%{version}
32 %configure --with-libmoonshot=%{_prefix} --with-krb5=%{_prefix} --enable-reauth LDFLAGs="${LDFLAGS} -L/opt/shibboleth/%{_lib} -Wl,--rpath=/opt/shibboleth/%{_lib}" CPPFLAGS="${CPPFLAGS} -I/opt/shibboleth/include"
37 rm -rf $RPM_BUILD_ROOT
38 make install DESTDIR=$RPM_BUILD_ROOT
42 rm -rf $RPM_BUILD_ROOT
45 oid_aes128=1.3.6.1.5.5.15.1.1.17
46 oid_aes256=1.3.6.1.5.5.15.1.1.18
47 mechfile=%{_sysconfdir}/gss/mech
48 mkdir -p %{_sysconfdir}/gss
49 test -e $mechfile |touch $mechfile
50 fgrep $oid_aes128 $mechfile ||echo eap-aes128 $oid_aes128 mech_eap.so >>$mechfile
51 fgrep $oid_aes256 $mechfile ||echo eap-aes256 $oid_aes256 mech_eap.so >>$mechfile
55 %defattr(-,root,root,-)
59 %{_libdir}/gss/mech_eap.so
60 %exclude %{_libdir}/gss/mech_eap.la
61 %{_includedir}/gssapi/*.h
62 %exclude %{_libdir}/krb5/plugins/authdata/*
63 #%{_libdir}/krb5/plugins/authdata/*.so
68 * Wed Sep 28 2011 <hartmans@moonbuildcentos.dev.ja.net> - @VERSION@-2
69 - Add radius_ad plugin