Hi developers!
Began to create a receipt, I encountered such a nuisance.
$ wget http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz
Connecting to icculus.org (74.81.175.20:80)
wget: server returned error: HTTP/1.1 307 Temporary Redirect
Sources are not loaded and cook return me error.
Just for the sake of curiosity, I decided to see (using curl) where the redirection is:
$ curl -I http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz
HTTP/1.1 200 OK
Date: Wed, 17 Oct 2012 19:33:05 GMT
Server: Apache/1.3.34 (Unix) (Gentoo) mod_offload/1.0.3 PHP/5.2.9 mod_ssl/2.8.25 OpenSSL/0.9.8d
Last-Modified: Sat, 19 Feb 2011 06:22:53 GMT
ETag: "42d80ce-a3fd4-4d5f61bd"
Accept-Ranges: bytes
Content-Length: 671700
Content-Type: application/x-gzip
Content-Encoding: x-gzip
Adding wget (not busybox's one) as build depend not solved this problem
root@slitaz:/# cook physfs
Setup aufs chroot...
Cook: physfs 2.0.2
================================================================================
QA: checking package receipt...
Disabling -pipe compile flag: 115144 RAM
Checking build dependencies...
Installing dep (web/cache): wget
Connecting to mirror.slitaz.org (94.23.209.91:80)
wget-1.13.4.tazpkg 100% |*******************************| 110k --:--:-- ETA
Installing dep (web/cache): cmake
Connecting to icculus.org (74.81.175.20:80)
wget: server returned error: HTTP/1.1 307 Temporary Redirect
ERROR: wget http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz
Build dependencies to remove: 6
Removing: cmake libcrypto libidn libssl openssl wget
ERROR: cook failed
Debug information
================================================================================
Cook date: 2012-10-17 23:54
ERROR: wget http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz
ERROR: cook failed
wget: server returned error: HTTP/1.1 307 Temporary Redirect
================================================================================
Leaving aufs chroot...
root@slitaz:/#
Here is very beginning version of my receipt:
# SliTaz package receipt.
PACKAGE="physfs"
VERSION="2.0.2"
CATEGORY="development"
SHORT_DESC="PhysicsFS is a library to provide abstract access to various archives."
MAINTAINER="al.bobylev@gmail.com"
DEPENDS=""
BUILD_DEPENDS="wget cmake"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://icculus.org/physfs/"
WGET_URL="http://icculus.org/$PACKAGE/downloads/$TARBALL"
# Rules to configure and make the package.
compile_rules()
{
cmake $src
cd $src
make &&
make DESTDIR=$PWD/_pkg install
}
How do I download the source code for cook receipt?
Download sources using curl in begin of compile_rules()?