Hi Ralf,
Thanks for your reply.
I was aiming to open this thread as a general 'non-default' Freetz package question, less specific for ndas.
For me page 10 does exist, can this due to you using a different number of replies per page? I have 20 per page. I will correct the link to the range of applicable posts.
Before looking into making a package for ndas I looked into, updated and created a number of examples on the wiki:
http://freetz.org/wiki/help/howtos/development/developer_information/package_development_start
I also looked at other examples using git (grep git make/*/*.mk | grep -v digitemp), there a just a few, and suspect they all actually just wget a packed source from freetz.magenbrot.net.
When I try to manually checkout from github using freetz_download I don't get the correct results in dl, but maybe I make a mistake in one of the parameters. Some of the commands I tried:
Code:
DEBUG=1 tools/freetz_download dl ndas4linux.git https://github.com/iocellnetworks/
tools/freetz_download dl https://github.com/iocellnetworks/
tools/freetz_download dl git://github.com/iocellnetworks/ndas4linux.git
tools/freetz_download dl ndas4linux.git https://github.com/iocellnetworks/ndas4linux.git
tools/freetz_download dl ndas4linux https://github.com/iocellnetworks/ndas4linux.git
tools/freetz_download dl ndas4linux https://github.com/iocellnetworks/
tools/freetz_download dl ndas4linux.git git://github.com/iocellnetworks/
tools/freetz_download dl ndas4linux git://github.com/iocellnetworks/
tools/freetz_download dl ndas4linux git://github.com/iocellnetworks/ndas4linux.git
tools/freetz_download dl ndas4linux.git git://github.com/iocellnetworks/ndas4linux.git
tools/freetz_download dl ndas4linux.git git://git.github.com/iocellnetworks/ndas4linux.git
tools/freetz_download dl ndas4linux git://git.github.com/iocellnetworks/ndas4linux.git
Would it be possible to have two make steps by splitting this up in two 'packages'? e.g.
- package1 (e.g. ndas4linux) to download, unpack, apply patches, make.
- And package2 (e.g. ndas) no need to download and unpack, just apply patches and the final make.
I'm afraid that changing the makefile to have just one make step goes above my head, with my current knowledge.
Some further digging into the behavior of tools/freetz_download.
I don't see 'git clone' being initiated. There is a function for this in the script.
Added some additional debug output, and git is detected.
Code:
--- tools/freetz_download.orig 2013-12-15 00:42:28.806944066 +0100
+++ tools/freetz_download 2013-12-15 00:47:07.399863886 +0100
@@ -170,7 +170,13 @@
supportedVCSs="cvs|svn|git|git_archive|bzr|hg|darcs"
VCS="$(echo "${URLs}" | sed -nr -e "s,^(${supportedVCSs})(@|://).*,\1,p")"
if [ -n "${VCS}" ]; then
+ if [ "$DEBUG" == "1" ]; then
+ echo " VCS=$VCS"
+ fi
URLs="$(echo "${URLs}" | sed -r -e "s,^(${supportedVCSs})@(.*),\2,")"
+ if [ "$DEBUG" == "1" ]; then
+ echo " URLs=$URLs"
+ fi
num_sites=0
CHECKSUM=""
else
VCS does result in git:
Code:
$ DEBUG=1 tools/freetz_download dl ndas4linux git@git://github.com/iocellnetworks/ndas4linux.git
freetz_download parameters:
DL_DIR=dl
DOT_CONFIG=/.config
DL_FILE=ndas4linux
URLs=git@git://github.com/iocellnetworks/ndas4linux.git
CHECKSUM=
VCS=git
URLs=git://github.com/iocellnetworks/ndas4linux.git
But still see only wget:
Code:
$ DEBUG=1 tools/freetz_download dl ndas4linux git@git://github.com/iocellnetworks/ndas4linux.git
freetz_download parameters:
DL_DIR=dl
DOT_CONFIG=/.config
DL_FILE=ndas4linux
URLs=git@git://github.com/iocellnetworks/ndas4linux.git
CHECKSUM=
VCS=git
URLs=git://github.com/iocellnetworks/ndas4linux.git
wget -nd -t3 --timeout=20 --no-check-certificate --passive-ftp -O "dl/ndas4linux" "http://freetz.3dfxatwork.de/ndas4linux"
--2013-12-15 00:52:58-- http://freetz.3dfxatwork.de/ndas4linux
Resolving freetz.3dfxatwork.de... 85.214.81.232, 2a01:238:4362:b900:fc60:1b77:4435:1ba9
Connecting to freetz.3dfxatwork.de|85.214.81.232|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-12-15 00:52:58 ERROR 404: Not Found.
Download failed - "http://freetz.3dfxatwork.de" -> error code 8
wget -nd -t3 --timeout=20 --no-check-certificate --passive-ftp -O "dl/ndas4linux" "http://freetz.magenbrot.net/ndas4linux"
--2013-12-15 00:52:58-- http://freetz.magenbrot.net/ndas4linux
Resolving freetz.magenbrot.net... 85.25.156.176
Connecting to freetz.magenbrot.net|85.25.156.176|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2013-12-15 00:52:59 ERROR 403: Forbidden.
Download failed - "http://freetz.magenbrot.net" -> error code 8
wget -nd -t3 --timeout=20 --no-check-certificate --passive-ftp -O "dl/ndas4linux" "http://freetz.wirsind.info/ndas4linux"
--2013-12-15 00:52:59-- http://freetz.wirsind.info/ndas4linux
Resolving freetz.wirsind.info... 87.98.242.177
Connecting to freetz.wirsind.info|87.98.242.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-12-15 00:52:59 ERROR 404: Not Found.
Download failed - "http://freetz.wirsind.info" -> error code 8
Failed to detect compression method from ndas4linux
$
Edit 15-12-13 22:19:
With help of Ralf found a working command for a checkout from github using tools/freetz_download:
Code:
freetz@freetz-linux:~/freetz-trunk$ DEBUG=1 tools/freetz_download dl ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz git@git://github.com/iocellnetworks/ndas4linux.git/
freetz_download parameters:
DL_DIR=dl
DOT_CONFIG=/.config
DL_FILE=ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz
URLs=git@git://github.com/iocellnetworks/ndas4linux.git/
CHECKSUM=
VCS=git
URLs=git://github.com/iocellnetworks/ndas4linux.git/
wget -nd -t3 --timeout=20 --no-check-certificate --passive-ftp -O "dl/ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz" "http://freetz.wirsind.info/ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz"
--2013-12-15 22:06:43-- http://freetz.wirsind.info/ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz
Resolving freetz.wirsind.info... 87.98.242.177
Connecting to freetz.wirsind.info|87.98.242.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-12-15 22:06:43 ERROR 404: Not Found.
Download failed - "http://freetz.wirsind.info" -> error code 8
wget -nd -t3 --timeout=20 --no-check-certificate --passive-ftp -O "dl/ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz" "http://freetz.magenbrot.net/ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz"
--2013-12-15 22:06:43-- http://freetz.magenbrot.net/ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz
Resolving freetz.magenbrot.net... 85.25.156.176
Connecting to freetz.magenbrot.net|85.25.156.176|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2013-12-15 22:06:43 ERROR 403: Forbidden.
Download failed - "http://freetz.magenbrot.net" -> error code 8
wget -nd -t3 --timeout=20 --no-check-certificate --passive-ftp -O "dl/ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz" "http://freetz.3dfxatwork.de/ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz"
--2013-12-15 22:06:43-- http://freetz.3dfxatwork.de/ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad.tar.xz
Resolving freetz.3dfxatwork.de... 85.214.81.232, 2a01:238:4362:b900:fc60:1b77:4435:1ba9
Connecting to freetz.3dfxatwork.de|85.214.81.232|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-12-15 22:06:43 ERROR 404: Not Found.
Download failed - "http://freetz.3dfxatwork.de" -> error code 8
Checking out files from the git repository...
Initialized empty Git repository in /tmp/freetz75I/ndas4linux-1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad/.git/
remote: Counting objects: 2625, done.
remote: Compressing objects: 100% (1286/1286), done.
remote: Total 2625 (delta 1288), reused 2588 (delta 1251)
Receiving objects: 100% (2625/2625), 38.48 MiB | 1.13 MiB/s, done.
Resolving deltas: 100% (1288/1288), done.
Note: checking out '1aaf88acd0bcc3a7aca1e7ad52b583f57d26ecad'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 1aaf88a... Removed 64Bit deb files from the top folder
Packing checkout...
freetz@freetz-linux:~/freetz-trunk$