Fixes for Heimdal (macOS) builds from Stefan.
[mech_eap.git] / mech_eap.spec.in
index 1456776..4d68274 100644 (file)
@@ -41,6 +41,15 @@ make install DESTDIR=$RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+oid_aes128=1.3.6.1.5.5.15.1.1.17
+oid_aes256=1.3.6.1.5.5.15.1.1.18
+mechfile=%{_sysconfdir}/gss/mech
+mkdir -p %{_sysconfdir}/gss
+test -e $mechfile |touch $mechfile
+fgrep $oid_aes128 $mechfile ||echo eap-aes128 $oid_aes128 mech_eap.so >>$mechfile
+fgrep $oid_aes256 $mechfile ||echo eap-aes256 $oid_aes256 mech_eap.so >>$mechfile
+
 
 %files
 %defattr(-,root,root,-)
 
 %files
 %defattr(-,root,root,-)