[Slackbuilds-users] Patch for giblib.SlackBuild

B Watson yalhcru at gmail.com
Sat Jun 28 09:07:10 UTC 2014


On 6/27/14, Robby Workman <rworkman at slackbuilds.org> wrote:
> David Spencer <baildon.research at googlemail.com> wrote:
>> By the way, to download with the right filename from the command line,
>> you can use --content-disposition on the wget command line, or set the
>> default for wget using 'content_disposition=on' in ~/.wgetrc or
>> /etc/wgetrc (recommended for sbopkg users), or curl -J
>
> At least for now, the problem I encountered with 'content_disposition=on'
> is that the "-c" flag of wget doesn't work.

For sbopkg, instead of putting the flag in /etc/wgetrc or ~/.wgetrc so
it affects every use of wget, add --content-disposition to WGETFLAGS
in /etc/sbopkg/sbopkg.conf. I don't think sbopkg ever uses the -c flag
anyway, so it shouldn't hurt anything.

In fact, sbopkg should probably ship with this in its default config
file, unless it also breaks something other than the -c flag... I know,
wrong list.

While on the subject of using wget for slackbuilds, I've found that
a lot of "you can't download this, use a browser" links work fine if
I set wget's user-agent to the same thing firefox uses... except for
sourceforge.net, which sends an HTML "click to download" page for the
exact same URL that gets me a tarball if I use wget's default user
agent. Does anyone have a workaround for this that doesn't involve
manually adding '--user-agent=wget' to the wget command line? Note
that I'm not talking about sbopkg here, just the old method of:

( . *.info && wget $DOWNLOAD )


More information about the SlackBuilds-users mailing list