X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-bug;fp=zpm-bug;h=0000000000000000000000000000000000000000;hb=0419c62f964b259df1c1816f5870ef62eb97ed7c;hp=9b933ba2413ecf92b3341cf5dfcc2fd64dedd1ac;hpb=0c2216d1e0dc8565a6bf61c9572e47bb1ae1c1fb;p=zpackage diff --git a/zpm-bug b/zpm-bug deleted file mode 100755 index 9b933ba..0000000 --- a/zpm-bug +++ /dev/null @@ -1,100 +0,0 @@ -#!/bin/sh - -# program to submit a bug report - -# TODO -# encrypt the report. Use chacha20 and a public key -# for bug submissions. This key will need to be set up -# for zoranix. Should probably use the packager's public -# key as well. -# -# allow a bug report from stdin - -set -e - -[ -f /etc/rc.conf ] && . /etc/rc.conf -[ -f /etc/zoranix.conf ] && . /etc/zoranix.conf - -name=$(logname) -host=$(hostname) -from=${REPLYTO:-${name}@${host}} - -signature= -if [ -r $HOME/.signature ]; then - signature=$(cat $HOME/.signature) -else - signature=$(printf '-- \n%s\n' $name) -fi - -# -n -- make a bug report out of a note -file=$(mktemp ${TMPDIR:-/tmp}/bugreport-XXXXXX) - -note= -package=${1:-general} -subject='zoranix bug report' - -if [ "$1" = "-n" ]; then - shift - if [ $# -eq 0 ]; then - rm $file - usage - fi - note=$1 - package=$(zpm note category $1) - subject=$(zpm note show $1 | head -1) - if [ $subject = "" ]; then - subject='zoranix bug report' - fi -fi - -cat >$file < $file -elif [ -f /etc/zpm/bugtemplate ]; then - cat /etc/zpm/bugtemplate >> $file -else -cat >>$file <>$file <&2 - echo "a copy of your report is in $file" 1>&2 - exit 1; -esac