document new command-line switches in pkgmk.8

This commit is contained in:
Thomas Penteker 2016-04-21 00:04:40 +02:00
parent b60717c3bc
commit e3999adb34
2 changed files with 26 additions and 5 deletions

View File

@ -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

View File

@ -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