projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fd9d97c
)
specfile: %post handles /etc/gss/mech
author
Sam Hartman
<hartmans@debian.org>
Mon, 28 Oct 2013 18:16:59 +0000
(14:16 -0400)
committer
Sam Hartman
<hartmans@debian.org>
Mon, 28 Oct 2013 18:16:59 +0000
(14:16 -0400)
mech_eap.spec.in
patch
|
blob
|
history
diff --git
a/mech_eap.spec.in
b/mech_eap.spec.in
index
86fcb9a
..
fd53af4
100644
(file)
--- a/
mech_eap.spec.in
+++ b/
mech_eap.spec.in
@@
-1,7
+1,7
@@
%global _moonshot_krb5 %{!?_moonshot_krb5:krb5-devel}%{?_moonshot_krb5}
Name: moonshot-gss-eap
Version: @VERSION@
%global _moonshot_krb5 %{!?_moonshot_krb5:krb5-devel}%{?_moonshot_krb5}
Name: moonshot-gss-eap
Version: @VERSION@
-Release:
6
%{?dist}
+Release:
7
%{?dist}
Summary: Moonshot GSS-API Mechanism
Group: Security Tools
Summary: Moonshot GSS-API Mechanism
Group: Security Tools
@@
-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,-)