Sign individual packages

This commit is contained in:
mollusk 2021-01-21 16:37:44 -05:00
parent 2f5035a935
commit 00da5457d0

13
repo.sh
View File

@ -125,18 +125,23 @@ sign_pkgs(){
echo "Generating a new key..."
gen_key
echo "Signing xbps repodata in ${REPO_PATH}"
xbps-rindex --sign --signedby "${USER}" --privkey "${KEY_PATH}" "${REPO_PATH}"
echo "Signing xbps files in ${REPO_PATH}"
xbps-rindex --sign --signedby "${USER}" --privkey "${KEY_PATH}" "$REPO_PATH"
xbps-rindex -S --signedby "${USER}" --privkey "${KEY_PATH}" "${REPO_PATH}"/*.xbps
else
echo "Signing xbps files in ${REPO_PATH}"
xbps-rindex --sign --signedby "${USER}" --privkey "${KEY_PATH}" "$REPO_PATH"
fi
xbps-rindex --sign --signedby "${USER}" --privkey "${KEY_PATH}" "${REPO_PATH}"
echo "Signing xbps files in ${REPO_PATH}"
xbps-rindex -S --signedby "${USER}" --privkey "${KEY_PATH}" "${REPO_PATH}"/*.xbps
fi
}
add_pkg(){
load_conf
create_repo
cp -r "${void_packages}"/*.xbps "${REPO_PATH}" || exit 1
cp -r "${void_packages}"/nonfree/*.xbps "${REPO_PATH}" || exit 1
xbps-rindex -a "${REPO_PATH}"/*.xbps
}
@ -170,4 +175,4 @@ case "${1}" in
*)
help_file
;;
esac
esac