what creates a Packages{,.gz} etc. file ?

2000-05-03 Thread Andrew J Cosgriff

Pardon my ineptitude, but I'm trying to work out the process of making
a little test package directory to chuck into apt's sources.list, and
I'm unsure how one goes about making the Packages, Packages.gz,
Release (etc.) files that need to live in there along with the actual
package files themselves.

I'm presuming there's a program to autogenerate them, but having poked
about with "apt-cache search" and at the new maintainers guide et al,
I've been unable to find the package that does this (I suppose I
missed something obvious somewhere ?)

Help !

Thanks heeps,
 Andrew
-- 
Andrew J Cosgriff <[EMAIL PROTECTED]> a long way from home


Re: what creates a Packages{,.gz} etc. file ?

2000-05-03 Thread Brian May
> "Andrew" == Andrew J Cosgriff <[EMAIL PROTECTED]> writes:

Andrew> Pardon my ineptitude, but I'm trying to work out the
Andrew> process of making a little test package directory to chuck
Andrew> into apt's sources.list, and I'm unsure how one goes about
Andrew> making the Packages, Packages.gz, Release (etc.) files
Andrew> that need to live in there along with the actual package
Andrew> files themselves.

Andrew> I'm presuming there's a program to autogenerate them, but
Andrew> having poked about with "apt-cache search" and at the new
Andrew> maintainers guide et al, I've been unable to find the
Andrew> package that does this (I suppose I missed something
Andrew> obvious somewhere ?)

It depends what, exactly, you are after.

however, the usual way is

source archive > *.deb

using one of

debian/rules build
fakeroot debian/rules binary-arch
(not sure if the last parameter would always be that; sometimes it
might be binary-indep).

OR

dpkg-buildpackage (also builds the source *.tgz and *.diff files).


If this is the type of thing you require, have a look at some Debian
source code (unpack it with dpkg-source -x *.dsc) to see how to create
the source. The simplest (IMHO) package I know of (my package of
course!)  is diskless, as it is entirely perl and doesn't require
compilation.  Other good examples will also exist.

Also look up dh_make, from dh-make (automatically generate /debian
directory of source), and lintian (check package to see if it complies
with Debian policy). These might be an overkill for your application,
but I think a good idea all the same.


Or, if you want to get low-level, the building of the *.deb file comes
from "dpkg-deb -b". You must have a DEBIAN directory though containing
at least control.


I hope this helps...
-- 
Brian May <[EMAIL PROTECTED]>


Re: what creates a Packages{,.gz} etc. file ?

2000-05-03 Thread Andrew J Cosgriff
Brian May wrote :

> > "Andrew" == Andrew J Cosgriff <[EMAIL PROTECTED]> writes:
> 
> Andrew> Pardon my ineptitude, but I'm trying to work out the
> Andrew> process of making a little test package directory to
> Andrew> chuck into apt's sources.list, and I'm unsure how one
> Andrew> goes about making the Packages, Packages.gz, Release
> Andrew> (etc.) files that need to live in there along with the
> Andrew> actual package files themselves.
> 
> It depends what, exactly, you are after.

dpkg-scanpackages was it.  I missed it when I did a "man -k Packages".

Thanks for all the (off-list) replies.

-- 
Andrew J Cosgriff <[EMAIL PROTECTED]> do not ingest


Re: what creates a Packages{,.gz} etc. file ?

2000-05-05 Thread Jordi Mallach
On Wed, May 03, 2000 at 05:30:00PM +1000, Andrew J Cosgriff wrote:
> dpkg-scanpackages was it.  I missed it when I did a "man -k Packages".

Related to this, I have a question also.
One friend has a new hard drive and wants to copy his 3 unofficial potato
CDs into it, and make them aptable. So I copied the CDs on a
debian/dist/{m,c,n-f,n-u} tree and I guess I only need to run
dpkg-scanpackages on each directory to generate the Packages files. The
problem is I don't know which is the overrides file in the CDs. Is it
necessary?

An example would be the best help.

-- 
Jordi Mallach Pérez || [EMAIL PROTECTED]   || Rediscovering Freedom,
ka Oskuro in RL-MUD || [EMAIL PROTECTED]|| Using Debian GNU/Linux

http://sindominio.net  GnuPG public information:  pub  1024D/917A225E 
telnet pusa.uv.es 23   73ED 4244 FD43 5886 20AC  2644 2584 94BA 917A 225E


pgpX1jn9zXK5e.pgp
Description: PGP signature


Re: what creates a Packages{,.gz} etc. file ?

2000-05-05 Thread tony mancill
I did this same thing to setup a Debian mirror at work.  If you look
carefully, all you have to do is delete the existings Packages.gz files
(since they are for a single CD) and mv Packages-cd.gz Packages.gz (do the
same for the uncompressed packages).  It's a lot easier if you do this
with a find . -name Packages-cd -exec mv ..., because there are about 6 of
them.

BTW, this worked for everything *except* non-US, which I need to look
further into.  It could just be that I have the source URL in apt
definined incorrectly.

HTH,
tony

On Fri, 5 May 2000, Jordi Mallach wrote:

> On Wed, May 03, 2000 at 05:30:00PM +1000, Andrew J Cosgriff wrote:
> > dpkg-scanpackages was it.  I missed it when I did a "man -k Packages".
> 
> Related to this, I have a question also.
> One friend has a new hard drive and wants to copy his 3 unofficial potato
> CDs into it, and make them aptable. So I copied the CDs on a
> debian/dist/{m,c,n-f,n-u} tree and I guess I only need to run
> dpkg-scanpackages on each directory to generate the Packages files. The
> problem is I don't know which is the overrides file in the CDs. Is it
> necessary?
> 
> An example would be the best help.
> 
> -- 
> Jordi Mallach Pérez || [EMAIL PROTECTED]   || Rediscovering Freedom,
> ka Oskuro in RL-MUD || [EMAIL PROTECTED]|| Using Debian GNU/Linux
> 
> http://sindominio.net  GnuPG public information:  pub  1024D/917A225E 
> telnet pusa.uv.es 23   73ED 4244 FD43 5886 20AC  2644 2584 94BA 917A 225E
> 

  [EMAIL PROTECTED] |  After all is said and done, 
http://www.debian.org  |  a heck of a lot more is said than done.
   | (fortune)


Re: what creates a Packages{,.gz} etc. file ?

2000-05-11 Thread Fred Harju
I have a question related to this one as well. Is there an automated tool/method
to generate an override file from a directory of debs?  I would prefer to use a
tool to build the bulk of the file initially.

If a tool does not exist, (dpkg-distaddfile is close) and if you (debian
community) believe it would be useful, I could create it.
Let me know, thanks!
Fred.

Jordi Mallach wrote:

> On Wed, May 03, 2000 at 05:30:00PM +1000, Andrew J Cosgriff wrote:
> > dpkg-scanpackages was it.  I missed it when I did a "man -k Packages".
>
> Related to this, I have a question also.
> One friend has a new hard drive and wants to copy his 3 unofficial potato
> CDs into it, and make them aptable. So I copied the CDs on a
> debian/dist/{m,c,n-f,n-u} tree and I guess I only need to run
> dpkg-scanpackages on each directory to generate the Packages files. The
> problem is I don't know which is the overrides file in the CDs. Is it
> necessary?
>
> An example would be the best help.
>
> --
> Jordi Mallach Pérez || [EMAIL PROTECTED]   || Rediscovering Freedom,
> ka Oskuro in RL-MUD || [EMAIL PROTECTED]|| Using Debian GNU/Linux
>
> http://sindominio.net  GnuPG public information:  pub  1024D/917A225E
> telnet pusa.uv.es 23   73ED 4244 FD43 5886 20AC  2644 2584 94BA 917A 225E
>
>   
>Part 1.2Type: application/pgp-signature

--
Fred Harju <[EMAIL PROTECTED]>
Software Developer
Corel Corporation

Take your office suite performance to an exciting new level. Check it out at
http://www.corel.com/featuresinaction

begin:vcard 
n:Harju;Fred
tel;work:613-728-0826 x5669
x-mozilla-html:TRUE
url:http://linux.corel.com
org:Corel Corporation;Linux Engineering
adr:;;1600 Carling Ave.;Ottawa;ON;K1Z 8R7;Canada
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Developer
fn:Fred Harju
end:vcard