1 |
DISCLAIMER: I am not a dev. |
2 |
|
3 |
On Sunday 09 October 2005 16:52, Mikey wrote: |
4 |
> I recently posted a question in the Portage & Programming forum and was |
5 |
> told that this mailing list might be the place to go. Any help would be |
6 |
> greatly appreciated. |
7 |
> |
8 |
> I have a custom in-house web based source code/packaging repository system |
9 |
> that I need to integrate into ebuilds. It is kind of like a funky cvs |
10 |
> system. Source code and packages are all viewed or downloaded via a |
11 |
> browser. |
12 |
> |
13 |
> For example, to retrieve a gzipped tarball of a package named "mypackage" |
14 |
> from the repository looks like: |
15 |
> |
16 |
> http://codeserver.wherever.net/pman/package_ids.php?action=package&id=10105 |
17 |
Is the id->name mapping 1:1? Since this is an in-house app, can you write a |
18 |
script which has nice names, perhaps using $_SERVER['PATH_INFO'], i.e. |
19 |
http://codeserver.wherever.net/pman/package_dl.php/mypackage.tar.gz |
20 |
? In one of my web apps, I use PATH_INFO with Apache's Multiviews to make |
21 |
clear, permanent, search-engine-friendly paths to my c ontent pages, |
22 |
http://example.com/content/<name>/pages/<page number> |
23 |
which is served by a file named content.php in the site's root, using files |
24 |
outside the DocumentRoot that hold the actual content. |
25 |
|
26 |
> |
27 |
> On any standard browser (konqueror, IE, firefox) this would retrieve a file |
28 |
> named "mypackage.tar.gz". |
29 |
wget doesn't support that. |
30 |
|
31 |
> Here is where my problem starts, and why I believe a custom eclass might be |
32 |
> my best route. |
33 |
> |
34 |
> The utility that fetches packages via emerge mangles the resulting file |
35 |
> name, as well as wget (does emerge use wget?). When fetching the above url, |
36 |
> emerge or wget saves the file as "package_ids.php?action=package&id=10105". |
37 |
> This of course throws a wrench into my use of custom ebuilds :) |
38 |
emerge uses wget via $FETCHCOMMAND, which doesn't include a place for -O |
39 |
|
40 |
> My problem is that I cannot seem to locate where any package fetching |
41 |
> routines are in any of the existing eclasses to use as a template. |
42 |
I think that's because they're not there. IIRC, fetching is more internal than |
43 |
that. |
44 |
> Another |
45 |
> thing I am curious about, will custom eclasses in PORTDIR_OVERLAY work |
46 |
> correctly (assuming they are written correctly). |
47 |
Partly. From what I've read, I think you have to touch all the ebuilds that |
48 |
inherit the eclass every time you change the eclass. |
49 |
|
50 |
Other people have run into this problem before, and recently. You might want |
51 |
to check the archives of both this list and gentoo-dev. |
52 |
|
53 |
-- electronerd |