From e3999adb34e052ac5066a9fb4d2a187dc67af5e7 Mon Sep 17 00:00:00 2001 From: Thomas Penteker Date: Thu, 21 Apr 2016 00:04:40 +0200 Subject: [PATCH] document new command-line switches in pkgmk.8 --- pkgmk.8.in | 21 +++++++++++++++++++++ pkgmk.in | 10 +++++----- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/pkgmk.8.in b/pkgmk.8.in index 707c6259..e0c3c3d4 100644 --- a/pkgmk.8.in +++ b/pkgmk.8.in @@ -52,6 +52,27 @@ Update md5sum using the current source files. .B "\-im, \-\-ignore\-md5sum" Build package without checking md5sum first. .TP +.B "\-cm, \-\-check\-md5sum" +Check md5sum without building the package. +.TP +.B "\-us, \-\-update\-signature" +Update port signature and sha256sums. +.TP +.B "\-cs, \-\-check\-signature" +Check the validity of files using the signature and sha256sums. +.TP +.B "\-is, \-\-ignore\-signature" +Build package without checking the signature and sha256sums. +.TP +.B "\-rs, \-\-refresh\-signature" +Create new signature and keep existing sha256sums. +.TP +.B "\-sk, \-\-secret\-key " +Use private key in to sign the port. By default, the name of the port's parent directory 'repo' is evaluated and /etc/ports/$repo.sec is used as the private key, if it exists. +.TP +.B "\-pk, \-\-public\-key " +Use public key in $FILE.md5sum sort -k 2 $PKGMK_MD5SUM > $FILE.md5sum.orig @@ -308,7 +308,7 @@ check_signature() { RESULT=$? cd $PKGMK_ROOT - + if [ $RESULT -ne 0 ]; then if [ "$err" = "signify: signature verification failed" ]; then @@ -361,7 +361,7 @@ check_signature() { make_signature() { local FILE LOCAL_FILENAMES local REPO - + if [ "$source" ]; then for FILE in "$PKGMK_PKGFILE" "$PKGMK_FOOTPRINT" ${source[@]}; do LOCAL_FILENAMES="$LOCAL_FILENAMES `get_filename $FILE`" @@ -372,7 +372,7 @@ make_signature() { REPO=${REPO##*/} REPO=${REPO%.git} fi - + if [ "$REPO" ]; then PKGMK_PRIVATEKEY="/etc/ports/${REPO}.sec" fi @@ -396,7 +396,7 @@ refresh_signature() { REPO=${REPO##*/} REPO=${REPO%.git} fi - + if [ "$REPO" ]; then PKGMK_PRIVATEKEY="/etc/ports/${REPO}.sec" fi