diff options
author | Thomas Penteker <tek@serverop.de> | 2016-04-21 00:04:40 +0200 |
---|---|---|
committer | Thomas Penteker <tek@serverop.de> | 2016-04-21 00:04:40 +0200 |
commit | e3999adb34e052ac5066a9fb4d2a187dc67af5e7 (patch) | |
tree | 8076305b3db0781f65170024c087f707c3511009 | |
parent | b60717c3bcd6796086a09413ebe769eff8147e78 (diff) | |
download | pkgutils-e3999adb34e052ac5066a9fb4d2a187dc67af5e7.tar.gz pkgutils-e3999adb34e052ac5066a9fb4d2a187dc67af5e7.tar.xz |
document new command-line switches in pkgmk.8
-rw-r--r-- | pkgmk.8.in | 21 | ||||
-rwxr-xr-x | pkgmk.in | 10 |
2 files changed, 26 insertions, 5 deletions
@@ -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 <file>" +Use private key in <file> 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 <file>" +Use public key in <file to check the signature. By default, the name of the port's parent directory 'repo' is evaluated and /etc/ports/$repo.pub is used as the public key, if it exists. +.TP .B "\-ns, \-\-no\-strip" Do not strip executable binaries or libraries. .TP @@ -239,7 +239,7 @@ check_md5sum() { local FILE="$PKGMK_WORK_DIR/.tmp" cd $PKGMK_ROOT - + if [ -f $PKGMK_MD5SUM ]; then make_md5sum > $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 |