[Pkg-sks-commit] r86 - sks/trunk/sks/debian/patches
chrism at alioth.debian.org
chrism at alioth.debian.org
Thu Jun 19 14:54:04 UTC 2008
Author: chrism
Date: 2008-06-19 14:54:03 +0000 (Thu, 19 Jun 2008)
New Revision: 86
Added:
sks/trunk/sks/debian/patches/508_build_fastbuild
Log:
[project @ 87]
mode option
Original author: fabbione
Date: 2003-12-09 19:16:37.918672+00:00
Added: sks/trunk/sks/debian/patches/508_build_fastbuild
===================================================================
--- sks/trunk/sks/debian/patches/508_build_fastbuild (rev 0)
+++ sks/trunk/sks/debian/patches/508_build_fastbuild 2008-06-19 14:54:03 UTC (rev 86)
@@ -0,0 +1,47 @@
+diff -ruN sks-1.0.6-old/sks_build.sh sks-1.0.6/sks_build.sh
+--- sks-1.0.6-old/sks_build.sh 2003-11-29 13:46:30.000000000 +0100
++++ sks-1.0.6/sks_build.sh 2003-12-09 20:13:55.000000000 +0100
+@@ -5,10 +5,42 @@
+ # You might want to edit this file to reduce or increase memory usage
+ # depending on your system
+
++ask_mode() {
++ echo "Please select the mode in which you want to import the keydump:"
++ echo ""
++ echo "1 - fastbuild"
++ echo " only an index of the keydump is created and the keydump cannot be"
++ echo " removed."
++ echo ""
++ echo "2 - normalbuild"
++ echo ""
++ echo " all the keydump will be imported in a new database. It takes longer"
++ echo " time and more disk space, but the server will run faster (depending"
++ echo " from the source/age of the keydump)."
++ echo " The keydump can be removed after the import."
++ echo ""
++ echo -n "Enter enter the mode (1/2): "
++ read
++ case "$REPLY" in
++ 1)
++ mode=fastbuild
++ ;;
++ 2)
++ mode=build
++ ;;
++ *)
++ echo "Option unknown. bye!"
++ exit 1
++ ;;
++ esac
++}
++
+ fail() { echo Command failed unexpectedly. Bailing out; exit -1; }
+
++ask_mode
++
+ echo === Running fastbuild... ===
+-if ! sks fastbuild -n 10 -cache 100; then fail; fi
++if ! sks $mode -n 10 -cache 100; then fail; fi
+ echo === Cleaning key database... ===
+ if ! sks cleandb; then fail; fi
+ echo === Building ptree database... ===
More information about the Pkg-sks-commit
mailing list