[csw-devel] SF.net SVN: gar:[20405] csw/mgar/pkg/openssl1/trunk/Makefile

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Sun Mar 10 21:51:03 CET 2013


Revision: 20405
          http://gar.svn.sourceforge.net/gar/?rev=20405&view=rev
Author:   chninkel
Date:     2013-03-10 20:51:02 +0000 (Sun, 10 Mar 2013)
Log Message:
-----------
openssl1/trunk: added a target to easily update the t4 engine patch

Modified Paths:
--------------
    csw/mgar/pkg/openssl1/trunk/Makefile

Modified: csw/mgar/pkg/openssl1/trunk/Makefile
===================================================================
--- csw/mgar/pkg/openssl1/trunk/Makefile	2013-03-10 20:49:54 UTC (rev 20404)
+++ csw/mgar/pkg/openssl1/trunk/Makefile	2013-03-10 20:51:02 UTC (rev 20405)
@@ -240,3 +240,19 @@
 post-merge: merge-doc install-conf-misc 
 
 
+T4_ENGINE_FILES =  eng_t4_aes_asm.h eng_t4_bignum.h eng_t4_des_asm.h eng_t4_err.h eng_t4_sha2_asm.h 
+T4_ENGINE_FILES =  eng_t4.c eng_t4_des.c eng_t4_err.c eng_t4_md5.c eng_t4_montmul.c eng_t4_sha1.c eng_t4_sha256.c eng_t4_sha512.c
+T4_ENGINE_FILES += t4_aes.S t4_des.S t4_md5.S t4_sha1.S t4_sha2.S
+MERCURIAL_URL = https://hg.openindiana.org/upstream/oracle/userland-gate/raw-file/tip/components/openssl/openssl-1.0.1/
+PATCH_DATE = $(shell date +"%Y-%m-%d %H:%M:%S.%N %z")
+update-t4-patch:
+	@echo "Updating t4 engine patch from $(MERCURIAL_URL)..."
+	@( wget --quiet --output-document=- $(MERCURIAL_URL)/patches/openssl-$(VERSION)-t4-engine.sparc-patch; \
+	   for FILE in $(T4_ENGINE_FILES); do \
+		DIR="engine"; \
+		if echo $$FILE | grep "\.S$$" >/dev/null; then DIR="`basename $$FILE .S | cut -d_ -f2 | cut -b1-3`/asm"; fi; \
+		echo "diff -uNr openssl-$(VERSION)/$$DIR/$$FILE openssl-$(VERSION)/$$DIR/$$FILE"; \
+		echo "--- openssl-$(VERSION)/crypto/$$DIR/$$FILE 1970-01-01 01:00:00.000000000 +0100"; \
+		echo "+++ openssl-$(VERSION)/crypto/$$DIR/$$FILE $(PATCH_DATE)"; \
+		wget --quiet --output-document=- $(MERCURIAL_URL)/engines/t4/$$FILE | sed -e 's/^/+/'; \
+	   done; ) > "$(FILEDIR)/openssl-$(VERSION)-t4-engine.sparc-patch"

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list