[kredentials/f16] initial import
Neil Horman
nhorman at fedoraproject.org
Thu Jan 26 18:45:40 UTC 2012
commit 34d83f56017f16c2e2ad99341fdda0bd78245f4f
Author: Neil Horman <nhorman at tuxdriver.com>
Date: Thu Jan 26 13:45:28 2012 -0500
initial import
.gitignore | 1 +
kredentials-22x22.png | Bin 0 -> 1519 bytes
kredentials-48x48.png | Bin 0 -> 4967 bytes
kredentials-64x64.png | Bin 0 -> 7416 bytes
kredentials-renew.patch | 32 +++++++++++++++++++++
kredentials.desktop | 7 ++++
kredentials.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
8 files changed, 113 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9607e7b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kredentials_2.0-pre1.tar.bz2
diff --git a/kredentials-22x22.png b/kredentials-22x22.png
new file mode 100644
index 0000000..fd39f44
Binary files /dev/null and b/kredentials-22x22.png differ
diff --git a/kredentials-48x48.png b/kredentials-48x48.png
new file mode 100644
index 0000000..fba4c53
Binary files /dev/null and b/kredentials-48x48.png differ
diff --git a/kredentials-64x64.png b/kredentials-64x64.png
new file mode 100644
index 0000000..7745963
Binary files /dev/null and b/kredentials-64x64.png differ
diff --git a/kredentials-renew.patch b/kredentials-renew.patch
new file mode 100644
index 0000000..8d1553e
--- /dev/null
+++ b/kredentials-renew.patch
@@ -0,0 +1,32 @@
+diff -up kredentials/src/krb5_wrap.cpp.bak kredentials/src/krb5_wrap.cpp
+--- kredentials/src/krb5_wrap.cpp.bak 2012-01-20 11:14:31.451831294 -0500
++++ kredentials/src/krb5_wrap.cpp 2012-01-20 11:13:43.206531047 -0500
+@@ -504,6 +504,8 @@ namespace krb5{
+ }
+
+ now = time(0);
++ LOG << "Now is "<< now << "\n";
++
+ krb5::principal* pme=cc.getPrincipal();
+ if((kerror=cc.error())||(!pme))
+ {
+--- kredentials/src/kredentials.cpp.bak 2011-12-26 19:40:50.000000000 -0500
++++ kredentials/src/kredentials.cpp 2012-01-20 11:13:47.546648021 -0500
+@@ -195,14 +195,15 @@ void kredentials::tryRenewTickets()
+
+ if(!hasCurrentTickets()){
+ tryPassGetTicketsScreenSaverSafe();
+- }else if(tktRenewableExpirationTime == 0){
++ }else if(tktRenewableExpirationTime <= time(0)){
+ // can not be renewed
+ // check if it will expire soon
+ if ( tktExpirationTime - now < renewWarningTime)
+ tryPassGetTicketsScreenSaverSafe();
+ }
+- else if(tktRenewableExpirationTime < now)
++ else if(tktRenewableExpirationTime < now)
+ {
++
+ KMessageBox::information(0, "Your tickets have outlived their renewable lifetime and can't be renewed.", 0, 0);
+ LOG << "tktRenewableExpirationTime has passed: "
+ << "tktRenewableExpirationTime = " <<
diff --git a/kredentials.desktop b/kredentials.desktop
new file mode 100644
index 0000000..7a3cdde
--- /dev/null
+++ b/kredentials.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=kredentials
+Exec=kredentials
+Icon=kredentials
+Type=Application
+Comment=Panel Applet to renew authentication credentials
diff --git a/kredentials.spec b/kredentials.spec
new file mode 100644
index 0000000..3deed43
--- /dev/null
+++ b/kredentials.spec
@@ -0,0 +1,72 @@
+Name: kredentials
+Version: 2.0
+Release: 0.1.pre1%{?dist}
+Summary: KDE system tray kerberos ticket monitor
+
+Group: System Environment/Daemons
+License: MIT
+URL: http://freecode.com/projects/kredentials
+Source0: http://people.csail.mit.edu/noahm/%{name}/%{version}/%{name}_%{version}-pre1.tar.bz2
+Source1: kredentials.desktop
+Source2: kredentials-22x22.png
+Source3: kredentials-48x48.png
+Source4: kredentials-64x64.png
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: cmake kdelibs-devel
+BuildRequires: desktop-file-utils
+Requires: kdebase
+
+Patch0: kredentials-renew.patch
+
+%description
+Kredentials is a system tray applet that monitors and renews kerberos tickets
+for a user
+
+%prep
+%setup -q -n kredentials
+%patch0 -p1
+
+
+%build
+%{__mkdir} build
+cd build
+cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr/ ..
+%{__make} %{?_smp_mflags}
+
+
+%install
+cd build
+%{__rm} -rf $RPM_BUILD_ROOT
+export CMAKE_INSTALL_PREFIX=/usr
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%{__mkdir_p} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/22x22/apps/
+%{__mkdir_p} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
+%{__mkdir_p} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/64x64/apps/
+%{__install} -m644 -p %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/22x22/apps/kredentials.png
+%{__install} -m644 -p %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/kredentials.png
+%{__install} -m644 -p %{SOURCE4} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/64x64/apps/kredentials.png
+desktop-file-install --dir=$RPM_BUILD_ROOT/%{_datadir}/applications %{SOURCE1}
+
+%clean
+%{__rm} -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
+%{_bindir}/kredentials
+%{_datadir}/applications/kredentials.desktop
+%{_datadir}/applnk/Utilities/kredentials.desktop
+%{_datadir}/icons/hicolor/16x16/apps/kredentials.png
+%{_datadir}/icons/hicolor/22x22/apps/kredentials.png
+%{_datadir}/icons/hicolor/32x32/apps/kredentials.png
+%{_datadir}/icons/hicolor/48x48/apps/kredentials.png
+%{_datadir}/icons/hicolor/64x64/apps/kredentials.png
+
+%changelog
+* Tue Jan 17 2012 Neil Horman <nhorman at tuxdriver.com> - 2.0-0.1.pre1
+- Initial Build
+
diff --git a/sources b/sources
index e69de29..4a3052e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c999b200377706785ec8e1ae5ef61216 kredentials_2.0-pre1.tar.bz2
More information about the scm-commits
mailing list