From: Alex de L. <al...@de...> - 2006-03-01 02:29:02
|
On Tue, 2006-02-28 at 10:56 +0100, G1ul10 wrote: > Hi all, > I've a question whose answer I was unable to find in Morphix's FAQ and > wiki. I've home made .deb packages stored in=20 >=20 > /debs >=20 > which I can see from my Debian system with the following line > in /etc/apt/sources.list >=20 > deb file:/debs ./ >=20 > I would like to have them added to the main module... what's the > right <repository> statement I've to put in main.xml? Hey Giulio, Simple answer: you can't, at least not directly :) Long answer: The process of building a module using mmaker consists of running a debootstrapped bare Debian inside a chroot, thus it is impossible to access the host filesystem (as that's the whole idea). Thus, without some nasty tricks you can't have apt install your packages from the host system. There are a number of solutions possible: The easiest would be to simply copy the packages over into the resulting directory /tmp/libmorphix-bla, chroot into this directory and install the packages manually. Annoying to automate, however. Another method would be to mount --bind the directory from the host system to a directory in the chroot. This way, you would again have access to your packages inside the chroot. Also hard to automate. Yet another method is to host your own repository in the host system via FTP or HTTP. This is slightly more work to set up, but is the best way to automate the process currently. A forth method, and one I've been considering (you're not the first to run into this limitation), is adding a commandline option to mmaker. You'd give one or more filenames of the packages, mmaker would then automatically install the packages inside the chroot after it has processed the template. (mmaker -p /debs/mypackage.deb) For now you should be able to figure things out. I'll put the package-option on my todolist for mmaker. In the mean time you might want to join the morphix-devel list; morphix-user was ment to be for users of the default Morphix live cds, devel is both for people making their own live cds as for us developers working on Morphix. cheers, Alex --=20 /------------------------------------------------------------------\ | Alex de Landgraaf | The cure for boredom is curiosity | | Student AI & CS, VU, A'dam | There is no cure for curiosity | | Phone: 06-16844084 | | | GPG: http://www.alextreme.org/key_alex.asc /'-'\ | | www.alextreme.org & www.morphix.org ( o o ) | \------------------------------------------oOO0--(_)--0OOo---------/ |