head 1.3; access; symbols OPENPKG_E1_MP:1.3 OPENPKG_E1_MP_HEAD:1.3; locks; strict; comment @# @; 1.3 date 2006.11.01.15.03.56; author rse; state Exp; branches; next 1.2; commitid kMUnOXwWrQsCzYSr; 1.2 date 2006.11.01.14.55.48; author rse; state Exp; branches; next 1.1; commitid f8hTbp1hZovPwYSr; 1.1 date 2006.11.01.09.23.45; author rse; state Exp; branches; next ; commitid PmGTJKoofDSUGWSr; desc @@ 1.3 log @final package polishing @ text @#!@@l_prefix@@/lib/openpkg/bash # enter the SKS run-time directory as all # other SKS commands work relatively to it cd @@l_prefix@@/var/sks || exit $? # create dump directory test -d dump || mkdir dump # fetch and load the latest dumps url_root="$1" if [ ".$url_root" = . ]; then url_root="http://ftp.prato.linux.it/pub/keyring/dump-latest/" fi i=0 while true; do dump_file=`printf "sks-dump-%04d.pgp" $i` dump_url="$url_root$dump_file" echo "++ downloading $dump_url" @@l_prefix@@/lib/openpkg/curl -s -k -R -o dump/$dump_file $dump_url if [ $# -ne 0 ]; then rm -f dump/$dump_file* exit 0 fi echo "++ merging into KDB $dump_file" @@l_prefix@@/sbin/sks merge dump/$dump_file if [ $# -ne 0 ]; then echo "$0:ERROR: failed to merge dump file" rm -f dump/$dump_file* exit 1 fi rm -f dump/$dump_file* i=$[$i + 1] done @ 1.2 log @improve configuration by using separate files; add support for mail gateway @ text @d11 4 a14 1 url_root="http://ftp.prato.linux.it/pub/keyring/dump-latest/" @ 1.1 log @new package: sks 1.0.10 (OpenPGP Key Server) @ text @d7 2 a8 2 # create dumps directory test -d dumps || mkdir dumps d17 1 a17 1 @@l_prefix@@/lib/openpkg/curl -s -k -R -o dumps/$dump_file $dump_url d19 1 a19 1 rm -f dumps/$dump_file* d23 1 a23 1 @@l_prefix@@/sbin/sks merge dumps/$dump_file d26 1 a26 1 rm -f dumps/$dump_file* d29 1 a29 1 rm -f dumps/$dump_file* @