Sign individual packages

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

11
repo.sh
View File

@ -125,18 +125,23 @@ sign_pkgs(){
echo "Generating a new key..." echo "Generating a new key..."
gen_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}" 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 else
echo "Signing xbps files in ${REPO_PATH}" echo "Signing xbps files in ${REPO_PATH}"
xbps-rindex --sign --signedby "${USER}" --privkey "${KEY_PATH}" "$REPO_PATH" xbps-rindex --sign --signedby "${USER}" --privkey "${KEY_PATH}" "${REPO_PATH}"
fi echo "Signing xbps files in ${REPO_PATH}"
xbps-rindex -S --signedby "${USER}" --privkey "${KEY_PATH}" "${REPO_PATH}"/*.xbps
fi
} }
add_pkg(){ add_pkg(){
load_conf load_conf
create_repo create_repo
cp -r "${void_packages}"/*.xbps "${REPO_PATH}" || exit 1 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 xbps-rindex -a "${REPO_PATH}"/*.xbps
} }