/ scripts / sign.sh
sign.sh
 1  #!/bin/sh
 2  # Example signing script. See pkg-repo(8) for more information.
 3  set -e
 4  
 5  read -t 2 sum
 6  [ -z "$sum" ] && exit 1
 7  echo SIGNATURE
 8  echo -n "$sum" | /usr/bin/openssl dgst -sign repo.key -sha256 -binary
 9  echo
10  echo CERT
11  cat repo.pub
12  echo END