Repository: incubator-hivemall
Updated Branches:
  refs/heads/master 9dc819a5c -> c5a39f858


[HIVEMALL-227][DOC] Removed md5 and replace sha1 with sha512 following new ASF 
policy

## What changes were proposed in this pull request?

Removed md5 and replace sha1 with sha512 following new ASF policy

## What type of PR is it?

Documentation

## What is the Jira issue?

https://issues.apache.org/jira/browse/HIVEMALL-227

Author: Makoto Yui <[email protected]>

Closes #173 from myui/HIVEMALL-227.


Project: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/commit/c5a39f85
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/tree/c5a39f85
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/diff/c5a39f85

Branch: refs/heads/master
Commit: c5a39f858492378f23dc4e520c98059fc5fdbe1d
Parents: 9dc819a
Author: Makoto Yui <[email protected]>
Authored: Thu Nov 15 18:39:58 2018 +0900
Committer: Makoto Yui <[email protected]>
Committed: Thu Nov 15 18:39:58 2018 +0900

----------------------------------------------------------------------
 src/site/markdown/release-guide.md    |  7 +++----
 src/site/markdown/verify_artifacts.md | 19 ++++---------------
 2 files changed, 7 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/c5a39f85/src/site/markdown/release-guide.md
----------------------------------------------------------------------
diff --git a/src/site/markdown/release-guide.md 
b/src/site/markdown/release-guide.md
index f2209cb..ee4bd37 100644
--- a/src/site/markdown/release-guide.md
+++ b/src/site/markdown/release-guide.md
@@ -217,7 +217,7 @@ mvn -Papache-release release:perform \
   - Go to [https://repository.apache.org/](https://repository.apache.org/) and 
login
   - Under `Build Promotion`, click `Staging Repositories`
   - In the `Staging Repositories` tab there should be a line with profile 
`org.apache.hivemall`
-  - Navigate through the artifact tree and make sure that all javadoc, 
sources, tests, and jars have .asc (GPG signature) and .md5 files. Refer [the 
ASF page](http://www.apache.org/dev/release-signing.html#verifying-signature) 
for artifacts verification.
+  - Navigate through the artifact tree and make sure that all javadoc, 
sources, tests, and jars have .asc (GPG signature). Refer [the ASF 
page](http://www.apache.org/dev/release-signing.html#verifying-signature) for 
artifacts verification.
 2. Close the nexus staging repo
   - Check the box on in the first column of the row, and press the ‘Close’ 
button to publish the repository at 
[https://repository.apache.org/content/repositories/orgapachehivemall-1001/](https://repository.apache.org/content/repositories/orgapachehivemall-1001/)
 (or a similar URL)
 
@@ -231,8 +231,7 @@ cd target/
 # Sign to the artifacts created by maven-shade-plugin
 for f in `ls hivemall-*-with-dependencies*.jar`; do
   gpg --armor --output ${f}.asc --detach-sig ${f}
-  md5sum ${f} | cut -f1 -d' ' > ${f}.md5
-  sha1sum ${f} | cut -f1 -d' '  > ${f}.sha1
+  shasum -a 512 ${f} | cut -f1 -d' '  > ${f}.sha512
 done
 
 # Verify GPG sign
@@ -306,7 +305,7 @@ Links to various release artifacts are given below. Please 
review and cast your
        - Sources for the release:
          
https://dist.apache.org/repos/dist/dev/incubator/hivemall/0.5.0-incubating-rc1/hivemall-0.5.0-incubating-rc1-source-release.zip
          
https://dist.apache.org/repos/dist/dev/incubator/hivemall/0.5.0-incubating-rc1/hivemall-0.5.0-incubating-rc1-source-release.zip.asc
 (PGP Signature)
-         
https://dist.apache.org/repos/dist/dev/incubator/hivemall/0.5.0-incubating-rc1/hivemall-0.5.0-incubating-rc1-source-release.zip.md5
 (MD5 Hash)
+         
https://dist.apache.org/repos/dist/dev/incubator/hivemall/0.5.0-incubating-rc1/hivemall-0.5.0-incubating-rc1-source-release.zip.sha512
 (SHA512 Hash)
     - Git tag for the release:
       
https://git-wip-us.apache.org/repos/asf?p=incubator-hivemall.git;a=shortlog;h=refs/tags/v0.5.0-rc1
     - The Nexus Staging URL:

http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/c5a39f85/src/site/markdown/verify_artifacts.md
----------------------------------------------------------------------
diff --git a/src/site/markdown/verify_artifacts.md 
b/src/site/markdown/verify_artifacts.md
index f5226f0..e78dfa1 100644
--- a/src/site/markdown/verify_artifacts.md
+++ b/src/site/markdown/verify_artifacts.md
@@ -52,33 +52,22 @@ wget -e robots=off --no-check-certificate \
  
https://dist.apache.org/repos/dist/dev/incubator/hivemall/${VERSION}-incubating-rc${RC_NUMBER}/
 ```
 
-# 3. Verify SHA1, MD5, and GPG signatures.
+# 3. Verify SHA512, and GPG signatures.
 
 ```sh
 cd ${VERSION}-incubating-rc${RC_NUMBER}/
 
-for f in `find . -type f -iname '*.sha1'`; do
+for f in `find . -type f -iname '*.sha512'`; do
   echo -n "Verifying ${f%.*} ... "
-  sha1sum ${f%.*} | cut -f1 -d' ' | diff -Bw - ${f}
+  shasum -a 512 ${f%.*} | cut -f1 -d' ' | diff -Bw - ${f}
   if [ $? -eq 0 ]; then
     echo 'Valid'
   else 
-    echo "SHA1 is Invalid: ${f}" >&2
+    echo "SHA512 is Invalid: ${f}" >&2
     exit 1
   fi  
 done
 echo
-for f in `find . -type f -iname '*.md5'`; do
-  echo -n "Verifying ${f%.*} ... "
-  md5sum ${f%.*} | cut -f1 -d' ' | diff -Bw - ${f}
-  if [ $? -eq 0 ]; then
-    echo 'Valid'
-  else
-    echo "MD5 is Invalid: ${f%.*}" >&2
-       exit 1
-  fi
-done
-echo
 for f in `find . -type f -iname '*.asc'`; do
   gpg --verify ${f}
   if [ $? -eq 0 ]; then

Reply via email to