You are not logged in.

#1 2017-07-17 12:27:05

PlusMinus
Member
Registered: 2016-09-16
Posts: 5

Get source files with --post-data flag

Hello

For the displaylink package I would need to post two arguments to the website that provides the file. With wget I would use the flag --post-data='…'. Is there a way to do this in a PKGBUILD?

If not, what are the recommendations to provide that file?


Cheers,

PlusMinus

Offline

#2 2017-07-17 13:01:08

Trilby
Forum Fellow
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 17,034
Website

Re: Get source files with --post-data flag

Can you share where you are getting this from?

If needed, you can set a DLAGENTS variable in the PKGBUILD, but often there are better ways around this.  If you do use a DLAGENTS setting, though, use curl not wget.

Offline

#3 2017-07-17 13:14:28

PlusMinus
Member
Registered: 2016-09-16
Posts: 5

Re: Get source files with --post-data flag

Sure, this is a working wget example: wget --post-data='fileId=993&accept_submit=Accept' -O new_filename.zip 'http://www.displaylink.com/downloads/file?id=993'.

Didn’t manage yet to get curl to post the arguments.

Offline

#4 2017-07-17 13:24:48

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 5,539

Re: Get source files with --post-data flag

It's probably needed for https://aur.archlinux.org/packages/displaylink/ .

If you try to download latest version here , you need to accept a EULA before you can download.
Reading the coments suggests that plusminus is trying to automate accepting the eula so that makepkg can download it.


Plusminus,

Automatically accepting a EULA is a bad idea and could have all kinds of legal consequences.

The typical solution for these cases is to prepend the sourcefile with file://  to instruct makepkg to look for the file locally .
The PKGBUILD should include instructions how / where to get the file.

Check https://wiki.archlinux.org/index.php/No … guidelines for details.


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Online

Board footer

Powered by FluxBB