[Apachetoolbox-devel] SourceForge downloads
Brought to you by:
bryanandrews
From: Toni M. <su...@oe...> - 2002-10-06 20:16:15
|
Hello, while rebuilding with 1.5.62 from scratch I discovered that the download procedure assumes that files are stored on SourceForge. This is untrue and leads to HTML files on disk that are called "program.tar.gz", after which further build attemts fail. I have two ideas about how to go about that: - First, it is desirable to have other sources for programs listed in the build procedure. BSD ports collections come to mind. - Secondly, as most components don't seem to change that much from release to release, especially if it's only a security-related release that fixes one hole in one component, leaving all other components untouched, it appears to be desirable to have the local source archives outside of the ATB tree proper, so source archives can easier be reused for the different versions of the ATB. Suggested directory layout: .../ATB .../ATB/Apachetoolbox-x.y.z/ .../ATB/download or similar, together with the following patch for etc/functions.conf: --- functions.conf~ Sun Oct 6 22:04:20 2002 +++ functions.conf Sun Oct 6 22:14:02 2002 @@ -296,7 +296,17 @@ ### need to have a free variable, say, check_source_path check_source() { - if [ ! -f $1 ];then + ### we're in Apachetoolbox-x.y.z/src now: + check_source_path="" + if [ -f $1 ];then + check_source_path="$1" + fi + if [ -f ../../download/$1 ]; then + ln -s ../../download/$1 . + check_source_path="../../download/$1" + fi + + if [ X"${check_source_path}" = X ];then notice "$MENUFALSE" "$1 detection failed\n" if [ "$JUSTDL" = "$TRUE" ]; then $WGET $WGETOPTIONS "$2" --Toni++ |