As for curl, it can specify a user agent, read the man pages. Perhaps users should evolve a bit.
]]>I have seen similar behaviour with wget and interfacelift. spoofing the headers works.
]]>When you suggest reporting this on the bugtracker, what should it be reported against? makepkg? Isn't it really a bug in the site hosting the source i.e. it shouldn't be rejecting the headers?
Note that https://aur.archlinux.org/packages.php?ID=24402 gives workarounds, too.
]]>Maybe you should also report this on the bugtracker.
]]>Not helpful, I know - but I can replicate the problem. It's piqued my curiosity.
edit: wget works, but curl returns a 406 error the same as makepkg. I suspect makepkg uses curl and gets this error.
edit2: if you'd prefer you can change the DLAGENT in /etc/makepkg.conf to use wget instead of curl.
]]>Also, the source code for dmg2img is just where the PKGBUILD claims it should be and wget has no trouble downloading it. Ditto firefox. (Source is http://vu1tur.eu.org/tools/dmg2img-1.6.4.tar.gz.)
However, I cannot get makepkg to download dmg2img:
$ makepkg
==> Making package: dmg2img 1.6.4-1 (Fri 3 Aug 23:57:35 BST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Downloading dmg2img-1.6.4.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 406 Not Acceptable
==> ERROR: Failure while downloading dmg2img-1.6.4.tar.gz
Aborting...
Here's the PKGBUILD:
# Maintainer: honzor
pkgname=dmg2img
pkgver=1.6.4
pkgrel=1
pkgdesc="A CLI tool to uncompress Apple's compressed DMG files to the HFS+ IMG format"
arch=('i686' 'x86_64')
url="http://vu1tur.eu.org/tools/"
license=('GPL2')
depends=('openssl')
source=(${url}${pkgname}-${pkgver}.tar.gz)
md5sums=('3861da66bf0d2f7407aeeec93f9cfc5e')
build() {
cd "${pkgname}-${pkgver}"
make CFLAGS="${CFLAGS}" || return 1
make DESTDIR=${pkgdir} install || return 1
}
I have an older version of this package installed (1.6.2-1) and have been trying to update it for some time. Initially I thought the site was down or the url must be mistyped in the PKGBUILD or something and largely ignored it. But I sat down this evening and had a look and was surprised to find that the source is just where it should be. I don't know much about PKGBUILD files and nothing looks obviously wrong with this one to me, but I'm not sure I'm aware of all the requirements or that I'm not doing something else incorrectly.
Any pointers would be much appreciated.
]]>