|
|
@ -14,7 +14,9 @@ test -d "$SRCDEST" || mkdir -p "$SRCDEST" || exit 1 |
|
|
|
export GNUPGHOME="$AURDIR/gnupg" |
|
|
|
export GNUPGHOME="$AURDIR/gnupg" |
|
|
|
|
|
|
|
|
|
|
|
test -d "$GNUPGHOME" || mkdir -p "$GNUPGHOME" && chmod go-w "$GNUPGHOME" || exit 1 |
|
|
|
test -d "$GNUPGHOME" || mkdir -p "$GNUPGHOME" && chmod go-w "$GNUPGHOME" || exit 1 |
|
|
|
test -e "$GNUPGHOME/gpg.conf" || cat >"$GNUPGHOME/gpg.conf" <<EOF |
|
|
|
|
|
|
|
|
|
|
|
if ! test -e "$GNUPGHOME/gpg.conf"; then |
|
|
|
|
|
|
|
cat >"$GNUPGHOME/gpg.conf" <<EOF |
|
|
|
no-greeting |
|
|
|
no-greeting |
|
|
|
keyserver hkp://pool.sks-keyservers.net |
|
|
|
keyserver hkp://pool.sks-keyservers.net |
|
|
|
keyserver-options auto-key-retrieve |
|
|
|
keyserver-options auto-key-retrieve |
|
|
@ -22,10 +24,20 @@ personal-cipher-preferences AES256 AES192 AES |
|
|
|
personal-digest-preferences SHA512 SHA384 SHA256 |
|
|
|
personal-digest-preferences SHA512 SHA384 SHA256 |
|
|
|
cert-digest-algo SHA512 |
|
|
|
cert-digest-algo SHA512 |
|
|
|
EOF |
|
|
|
EOF |
|
|
|
if [ "$?" -eq 0 ]; then |
|
|
|
if [ "$?" -eq 0 ]; then |
|
|
|
dirmngr </dev/null || exit 1 |
|
|
|
dirmngr </dev/null >/dev/null || exit 1 |
|
|
|
else |
|
|
|
else |
|
|
|
echo "Failed to initialize aur.sh GnuPG keyring" |
|
|
|
echo "Failed to initialize aur.sh GnuPG keyring" |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ABS |
|
|
|
|
|
|
|
if which asp >/dev/null 2>&1; then |
|
|
|
|
|
|
|
ABSDEST="$AURDIR/ABS" |
|
|
|
|
|
|
|
export ASPROOT="$ABSDEST/.asp" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test -d "$ABSDEST" || mkdir -p "$ABSDEST" || exit 1 |
|
|
|
|
|
|
|
test -d "$ASPROOT" || mkdir -p "$ASPROOT" || exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|