From b273ba11c03317f87aeb3c0003981cbfe8be661b2709302352c873adbac309df Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 13 Aug 2007 02:27:55 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/coolkey?expand=0&rev=1 --- .gitattributes | 23 +++++ .gitignore | 1 + coolkey-1.1.0.tar.bz2 | 3 + coolkey-amflags.patch | 12 +++ coolkey-configure-syntax-error.patch | 15 +++ coolkey-string-literal-comparison.patch | 14 +++ coolkey.changes | 5 + coolkey.spec | 124 ++++++++++++++++++++++++ ready | 0 9 files changed, 197 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 coolkey-1.1.0.tar.bz2 create mode 100644 coolkey-amflags.patch create mode 100644 coolkey-configure-syntax-error.patch create mode 100644 coolkey-string-literal-comparison.patch create mode 100644 coolkey.changes create mode 100644 coolkey.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/coolkey-1.1.0.tar.bz2 b/coolkey-1.1.0.tar.bz2 new file mode 100644 index 0000000..ba245f3 --- /dev/null +++ b/coolkey-1.1.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:214381ab404b69ef59276a33ab5786848b005ceaa8f199f280ccb66c806a9cde +size 313668 diff --git a/coolkey-amflags.patch b/coolkey-amflags.patch new file mode 100644 index 0000000..09acfa8 --- /dev/null +++ b/coolkey-amflags.patch @@ -0,0 +1,12 @@ +https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=250738 +--- Makefile.am ++++ Makefile.am +@@ -25,8 +25,6 @@ + SUBDIRS += src/install + endif + +-ACLOCAL_AMFLAGS = -I m4 +- + EXTRA_DIST = cookey.spec LICENSE + + DISTCLEANFILES = diff --git a/coolkey-configure-syntax-error.patch b/coolkey-configure-syntax-error.patch new file mode 100644 index 0000000..090bb79 --- /dev/null +++ b/coolkey-configure-syntax-error.patch @@ -0,0 +1,15 @@ +https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=250738 +--- configure.in ++++ configure.in +@@ -124,9 +124,9 @@ + if test $WINDOWS -ne 1; then + PKG_CHECK_MODULES(NSS, nss, true, [ AC_MSG_ERROR(could not find NSS Crypto libraries) ]) + fi +- enable_pk11install = "yes" ++ enable_pk11install="yes" + else +- enable_pk11install = "no" ++ enable_pk11install="no" + AC_MSG_WARN([skipping pk11install]) + fi + diff --git a/coolkey-string-literal-comparison.patch b/coolkey-string-literal-comparison.patch new file mode 100644 index 0000000..2797bcf --- /dev/null +++ b/coolkey-string-literal-comparison.patch @@ -0,0 +1,14 @@ +https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=250738 +slot.cpp: In member function 'void Slot::makeLabelString(char*, int, const unsigned char*)': +slot.cpp:927: warning: comparison with string literal results in unspecified behaviour +--- src/coolkey/slot.cpp ++++ src/coolkey/slot.cpp +@@ -924,7 +924,7 @@ + // + #define COOLKEY "CoolKey" + #define POSSESSION " for " +- if (!personName || personName == "") { ++ if (!personName || personName[0] == '\0' ) { + const int coolKeySize = sizeof(COOLKEY) ; + memcpy(label, COOLKEY, coolKeySize-1); + makeSerialString(&label[coolKeySize], maxSize-coolKeySize, cuid); diff --git a/coolkey.changes b/coolkey.changes new file mode 100644 index 0000000..17a79dd --- /dev/null +++ b/coolkey.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Aug 3 12:31:03 CEST 2007 - sbrabec@suse.cz + +- New SuSE package, version 1.1.0. + diff --git a/coolkey.spec b/coolkey.spec new file mode 100644 index 0000000..3a2b5c0 --- /dev/null +++ b/coolkey.spec @@ -0,0 +1,124 @@ +# +# spec file for package coolkey (Version 1.1.0) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: coolkey +Version: 1.1.0 +Release: 1 +Summary: CoolKey PKCS #11 PKI Module for Smart Cards +License: LGPL v2 only +Group: Productivity/Security +URL: http://directory.fedoraproject.org/wiki/CoolKey +Source: %{name}-%{version}.tar.bz2 +Patch: coolkey-configure-syntax-error.patch +Patch1: coolkey-string-literal-comparison.patch +Patch2: coolkey-amflags.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: gcc-c++ pcsc-lite-devel pkg-config zlib-devel +#Requires: pcsc-lite +# Requires: ifd-egate +Requires: pcsc-ccid +# These package never existed in SuSE: +Provides: CoolKey Openkey +Obsoletes: CoolKey Openkey +# 390 does not have libusb or smartCards +ExcludeArch: s390 s390x + +%description +Linux Driver support for the CoolKey and CAC products. + +CoolKeys are part of complete PKI solution that provides smart card +login, single sign-on, secure messaging, and secure email access. In +the complete solution, users are issued CoolKeys by their employer, +ISP, bank, or other agency. When the user plugs in the keys for the +first time, the keys are automatically provisioned with certificates, +keys, and a PIN unique to that user by the Red Hat Certificate System. +Once the CoolKey is provisioned, the user can take the key to any +system and use it to login (authenticate), send and receive signed and +encrypted email, or participate in secure messaging or IRC +communication. Using a CoolKey should be as easy as starting a car. + +To accomplish that vision we are focusing on building complete support +for CoolKey on exactly one token. As the system is built out, we can +add token support. CoolKeys are based on JavaCard 1.2. We are testing +with Axalto Egate Cyberflex cards, which are available in both smart +card and USB Fob form factors. + + + +%package devel +Summary: CoolKey PKCS #11 PKI Module for Smart Cards +Group: Development/Libraries/C and C++ + +%description devel +Linux Driver support for the CoolKey and CAC products. + +CoolKeys are part of complete PKI solution that provides smart card +login, single sign-on, secure messaging, and secure email access. In +the complete solution, users are issued CoolKeys by their employer, +ISP, bank, or other agency. When the user plugs in the keys for the +first time, the keys are automatically provisioned with certificates, +keys, and a PIN unique to that user by the Red Hat Certificate System. +Once the CoolKey is provisioned, the user can take the key to any +system and use it to login (authenticate), send and receive signed and +encrypted email, or participate in secure messaging or IRC +communication. Using a CoolKey should be as easy as starting a car. + +To accomplish that vision we are focusing on building complete support +for CoolKey on exactly one token. As the system is built out, we can +add token support. CoolKeys are based on JavaCard 1.2. We are testing +with Axalto Egate Cyberflex cards, which are available in both smart +card and USB Fob form factors. + + + +%prep +%setup -q +%patch +%patch1 +%patch2 + +%build +autoreconf -f -i +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +%configure\ + --disable-dependency-tracking +make %{?jobs:-j%jobs} + +%install +%makeinstall +ln -s pkcs11/libcoolkeypk11.so $RPM_BUILD_ROOT/%{_libdir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc ChangeLog LICENSE README +%{_libdir}/libcoolkeypk11.so +%{_libdir}/pkcs11/*.so +%{_libdir}/libckyapplet.so.* +# FIXME: Find a common package owning this directory: +%dir %{_libdir}/pkcs11 + +%files devel +%defattr(-,root,root) +%{_libdir}/libckyapplet.so +%{_libdir}/pkgconfig/*.pc +%{_includedir}/*.h + +%changelog +* Fri Aug 03 2007 - sbrabec@suse.cz +- New SuSE package, version 1.1.0. diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4