packages: hmaccalc/hmaccalc.spec (NEW), hmaccalc/no-md4.patch (NEW)=?UTF-8?Q?=20?=- new

baggins baggins at pld-linux.org
Mon Mar 26 23:42:09 CEST 2012


Author: baggins                      Date: Mon Mar 26 21:42:09 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/hmaccalc:
   hmaccalc.spec (NONE -> 1.1)  (NEW), no-md4.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/hmaccalc/hmaccalc.spec
diff -u /dev/null packages/hmaccalc/hmaccalc.spec:1.1
--- /dev/null	Mon Mar 26 23:42:09 2012
+++ packages/hmaccalc/hmaccalc.spec	Mon Mar 26 23:42:04 2012
@@ -0,0 +1,76 @@
+# $Revision$, $Date$
+#
+# TODO: disable non-FIPS (md*), currently fails with "Error ensuring FIPS mode."
+#
+Summary:	Tools for computing and checking HMAC values for files
+Name:		hmaccalc
+Version:	0.9.12
+Release:	1
+License:	MIT
+Group:		Base
+URL:		https://fedorahosted.org/hmaccalc/
+Source0:	https://fedorahosted.org/released/hmaccalc/%{name}-%{version}.tar.gz
+# Source0-md5:	bf1e70cac02f6cfa85826b8878a27985
+Patch0:		no-md4.patch
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	nss-devel
+BuildRequires:	prelink
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The hmaccalc package contains tools which can calculate HMAC
+(hash-based message authentication code) values for files. The names
+and interfaces are meant to mimic the sha*sum tools provided by the
+coreutils package.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__aclocal}
+%{__automake}
+%{__autoconf}
+%configure \
+	--enable-sum-directory=%{_libdir}/%{name} \
+	--enable-non-fips
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/md2hmac
+%attr(755,root,root) %{_bindir}/md5hmac
+%attr(755,root,root) %{_bindir}/sha1hmac
+%attr(755,root,root) %{_bindir}/sha256hmac
+%attr(755,root,root) %{_bindir}/sha384hmac
+%attr(755,root,root) %{_bindir}/sha512hmac
+%dir %{_libdir}/%{name}
+%{_libdir}/%{name}/md2hmac.hmac
+%{_libdir}/%{name}/md5hmac.hmac
+%{_libdir}/%{name}/sha1hmac.hmac
+%{_libdir}/%{name}/sha256hmac.hmac
+%{_libdir}/%{name}/sha384hmac.hmac
+%{_libdir}/%{name}/sha512hmac.hmac
+%{_mandir}/man8/*hmac.8*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/03/26 21:42:04  baggins
+- new
+

================================================================
Index: packages/hmaccalc/no-md4.patch
diff -u /dev/null packages/hmaccalc/no-md4.patch:1.1
--- /dev/null	Mon Mar 26 23:42:09 2012
+++ packages/hmaccalc/no-md4.patch	Mon Mar 26 23:42:04 2012
@@ -0,0 +1,45 @@
+--- hmaccalc-0.9.12/src/hmac.c~	2009-12-16 03:06:27.000000000 +0100
++++ hmaccalc-0.9.12/src/hmac.c	2012-03-26 23:34:28.037080111 +0200
+@@ -64,7 +64,6 @@
+ 	{"sha1",   SEC_OID_SHA1,    512 / 8, 160 / 8},
+ #ifdef NON_FIPS
+ 	{"md5",    SEC_OID_MD5,     512 / 8, 128 / 8},
+-	{"md4",    SEC_OID_MD4,     512 / 8, 128 / 8},
+ 	{"md2",    SEC_OID_MD2,     512 / 8, 128 / 8},
+ #endif
+ };
+--- hmaccalc-0.9.12/src/Makefile.am~	2009-12-16 03:06:27.000000000 +0100
++++ hmaccalc-0.9.12/src/Makefile.am	2012-03-26 23:36:01.730048042 +0200
+@@ -4,7 +4,7 @@
+ bin_PROGRAMS = sha512hmac sha384hmac sha256hmac sha1hmac
+ man_MANS = sha512hmac.8 $(srcdir)/sha384hmac.8 $(srcdir)/sha256hmac.8 $(srcdir)/sha1hmac.8
+ EXTRA_DIST = sha512hmac.8.in sha384hmac.8 sha256hmac.8 sha1hmac.8 \
+-	     md5hmac.8 md4hmac.8 md2hmac.8
++	     md5hmac.8 md2hmac.8
+ 
+ HERE_CFLAGS = -DMAKE_CHECK_DIRECTORY=\"$(abs_builddir)\"
+ 
+@@ -27,15 +27,12 @@
+ @CHECK_PREFIX at hmac.@CHECK_SUFFIX@: hmac
+ 	$(builddir)/$^ -S > $(builddir)/$@
+ 
+-non_fips_programs = md5hmac md4hmac md2hmac
++non_fips_programs = md5hmac md2hmac
+ non_fips_data = \
+ 	@CHECK_PREFIX at md5hmac.@CHECK_SUFFIX@ \
+-	@CHECK_PREFIX at md4hmac.@CHECK_SUFFIX@ \
+ 	@CHECK_PREFIX at md2hmac.@CHECK_SUFFIX@
+ @CHECK_PREFIX at md5hmac.@CHECK_SUFFIX@: md5hmac
+ 	$(builddir)/$^ -S > $(builddir)/$@
+- at CHECK_PREFIX@md4hmac. at CHECK_SUFFIX@: md4hmac
+-	$(builddir)/$^ -S > $(builddir)/$@
+ @CHECK_PREFIX at md2hmac.@CHECK_SUFFIX@: md2hmac
+ 	$(builddir)/$^ -S > $(builddir)/$@
+ 
+@@ -43,5 +40,5 @@
+ AM_CFLAGS += -DNON_FIPS=1
+ bin_PROGRAMS += $(non_fips_programs)
+ sum_DATA += $(non_fips_data)
+-man_MANS += $(srcdir)/md5hmac.8 $(srcdir)/md4hmac.8 $(srcdir)/md2hmac.8
++man_MANS += $(srcdir)/md5hmac.8 $(srcdir)/md2hmac.8
+ endif
================================================================


More information about the pld-cvs-commit mailing list