]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/parse_debian_packages.mdwn
af2547734ad9692d96c097b27a4a3c5940b80750
[ikiwiki.git] / doc / todo / parse_debian_packages.mdwn
1 A parser, similar in functionality to [[plugins/inline]] that would find
2 and parse debian packages from a repository and include links to
3 them. Functionality would be similar to the
4 [PHP Apt-file parser](http://php-apt-parser.alioth.debian.org/)
5 (for an example of the output, see
6 [my repository](http://debian.camrdale.org/)). This would create
7 a helpful index page to a small repository, listing all the
8 packages, and possibly their descriptions as well, with links to
9 download them or their sources.
10
11 > It's a good idea, I think there are probably several ways to approach it
12 > that would all yeild good, though differing results. Maybe with
13 > something like this I'd actually get around to posting ikiwiki debs to
14 > the repo. ;-) --[[Joey]]
15
16 I think this is easily possible (and I might be able to work on
17 it myself, though Perl is not my strong suit). The trickiest
18 part is probably figuring out how and when to parse the packages.
19 The packages could be included in the ikiwiki RCS repository,
20 which might be difficult when the Packages/Release files need to
21 be generated (especially if it's via an external tool like
22 reprepro/debarchiver/etc.). Or, the packages could be kept
23 separate, with only a link given to the plugin, though changes
24 would then not be picked up until the ikiwiki is recompiled.
25
26
27 > This could be done by adding a hook to reprepro/whatever that calls
28 > ikiwiki --refresh at the end of updating a repo. (I don't
29 > remember if reprepro has such hooks; mini-dinstall certianly does.)
30
31 >> reprepro doesn't seem to have one, :( though of course creating a
32 >> script to do both would work (but it's not optimal). --Cameron
33
34 > For ikiwiki to notice that the Packages file outside its tree has
35 > changed and things need to be updated, a `needsbuild` hook could be
36 > used. This seems very doable.
37
38 Perhaps a better (though infinitely more complicated) solution
39 would be to include the reprepro/debarchiver functionality in
40 ikiwiki. Packages could be posted, like blog entries, and tagged
41 with the target distribution (sid/lenny/etc.). Then compiling
42 ikiwiki would generate the needed Packages/Release files
43 automatically.
44
45 > I like the idea of
46 > using packages as "source" and spitting out apt repos, though I'd not
47 > want to use it for a big repo, and I'd ideally want to keep the packages
48 > in a different svn repo, pulled in via svn:externals.
49
50 >> I like it too, more than the easier options, why are the most
51 >> interesting solutions always the most complicated? ;)
52
53 >> Parsing the files sounds like it might require some outside
54 >> dependencies, and given the complexity maybe this should be
55 >> a separate package from ikiwiki. Is it possible to package
56 >> plugins separately? --Cameron
57
58 --Cameron
59
60 [[tag wishlist]]