[Groonga-commit] groonga/groonga at 1f0190e [master] yum: generate sign GPG key directly

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 21 00:53:19 JST 2017


Kouhei Sutou	2017-03-21 00:53:19 +0900 (Tue, 21 Mar 2017)

  New Revision: 1f0190e635038552207ec2bafadd27b4c5810a5a
  https://github.com/groonga/groonga/commit/1f0190e635038552207ec2bafadd27b4c5810a5a

  Message:
    yum: generate sign GPG key directly

  Modified files:
    packages/yum/Makefile.am
    packages/yum/update-repository.sh

  Modified: packages/yum/Makefile.am (+4 -1)
===================================================================
--- packages/yum/Makefile.am    2017-03-17 17:10:56 +0900 (b60a91a)
+++ packages/yum/Makefile.am    2017-03-21 00:53:19 +0900 (5417f13)
@@ -18,7 +18,10 @@ sign-packages:
 	  '$(DISTRIBUTIONS)'
 
 update-repository:
-	./update-repository.sh '$(PACKAGE)' '$(REPOSITORIES_PATH)/' \
+	./update-repository.sh \
+	  '$(GPG_UID)' \
+	  '$(PACKAGE)' \
+	  '$(REPOSITORIES_PATH)/' \
 	  '$(DISTRIBUTIONS)'
 
 upload: ensure-rsync-path

  Modified: packages/yum/update-repository.sh (+7 -6)
===================================================================
--- packages/yum/update-repository.sh    2017-03-17 17:10:56 +0900 (0405859)
+++ packages/yum/update-repository.sh    2017-03-21 00:53:19 +0900 (c717cb3)
@@ -3,14 +3,15 @@
 script_base_dir=`dirname $0`
 
 if [ $# != 3 ]; then
-    echo "Usage: $0 GPG_KEY_NAME DESTINATION DISTRIBUTIONS"
-    echo " e.g.: $0 mitler-manager repositories/ 'fedora centos'"
+    echo "Usage: $0 GPG_UID GPG_KEY_NAME DESTINATION DISTRIBUTIONS"
+    echo " e.g.: $0 1BD22CD1 mitler-manager repositories/ 'fedora centos'"
     exit 1
 fi
 
-GPG_KEY_NAME=$1
-DESTINATION=$2
-DISTRIBUTIONS=$3
+GPG_UID=$1
+GPG_KEY_NAME=$2
+DESTINATION=$3
+DISTRIBUTIONS=$4
 
 run()
 {
@@ -28,6 +29,6 @@ for distribution in ${DISTRIBUTIONS}; do
 	test -d $dir &&	run createrepo --checksum sha $dir
     done;
 
-    run cp $script_base_dir/RPM-GPG-KEY-${GPG_KEY_NAME} \
+    run gpg --armor --export ${GPG_UID} > \
 	${DESTINATION}${distribution}/RPM-GPG-KEY-${GPG_KEY_NAME};
 done
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index