You are not logged in.
Pages: 1
Hello gys,
today got som problems with an aur (easy2boot) i shuld download an zip file,
but i thaught get the link inserted it in the pkgbuild fix the name of the package in the pkgbuild file
and run.
*OH no Error* the zip file was password protected i know the password but how to bypass it to pkgbuild (bsdtar --passphrase)
has someone an answer or is this impossible?
may i solfed it by unzip rezip and saha256sum it and fix all things in pkgbuild ! But shuld be possible to attach the password to pkgbuild!
Last edited by Tropy (2020-04-03 22:42:34)
Offline
edit
Ignore this and see the following post.
Hi Tropy,
I do not think there is an option in makepkg to use a passphrase when extracting source files from downloaded archives. The commands are hard-coded in makepkg.
Here is a trick that might work. Create a script named "bsdtar" with the following content (replace "foo" with the password):
#!/bin/bash
/usr/bin/bsdtar --passphrase foo "$@"Place it in the same directory as makepkg, make it executable, and then run makepkg as follows:
PATH=$PWD:$PATH makepkgOr just use this script to avoid hard-coding the password:
#!/bin/bash
set -eu
if [[ $# -lt 1 ]]
then
echo "usage: ${0##*/} <passphrase> [makepkg args]" >&2
exit 1
fi
passphrase=$1
shift
cat > bsdtar <<BSDTAR
#!/bin/bash
/usr/bin/bsdtar --passphrase ${passphrase@Q} "\$@"
BSDTAR
trap "rm ${PWD@Q}/bsdtar" EXIT
chmod +rx bsdtar
PATH=$PWD:$PATH makepkg "$@"Save it on your path as "makepkg-passphrase" and make it executable, then run it with
makepkg-passphrase <passphrase> [makepkg args]Last edited by Xyne (2020-04-01 03:56:27)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
If the PKGBUILD requires this, then it should be an intrinsic part of the PKGBUILD.
You can use the noextract=() array to prevent makepkg from trying to extract it, then manually extract it yourself in a prepare() function.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
You can use the noextract=() array to prevent makepkg from trying to extract it
Yep, that would be the sane solution. Ignore my previous post. I've never used that option so I didn't even think of it.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thanks for your quick reply !
well explained
Offline
Please remember to mark your thread as solved by editing your first post and amending the topic title.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Please remember to mark your thread as solved .....
Thx don't forgett struggling inet sry
Offline
Pages: 1