X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=blobdiff_plain;f=mech_eap.spec.in;h=4d682740b276e21f87178f8e6485fc48ae1b7744;hp=1456776ea3929df58eecdfb74cdafcb65298f479;hb=HEAD;hpb=0d733d4ddb0d79931976e9434e8bbe1b7b2d0c50 diff --git a/mech_eap.spec.in b/mech_eap.spec.in index 1456776..4d68274 100644 --- a/mech_eap.spec.in +++ b/mech_eap.spec.in @@ -41,6 +41,15 @@ make install DESTDIR=$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,-)