You are not logged in.

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

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

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
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
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.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

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

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

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: 11,868

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.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB