Ceve
Ceve is a generalized package metadata parser; i.e. it can read package metadata in several different formats and, after some simple manipulations, output them in another format.Installation
See http://gforge.inria.fr/projects/sodiac/From source
Needed packages
Unless stated otherwise, these packages need to be installed with their headers (normally, the -devel packages).- ocaml (no development package needed; but threads must be enabled)
- GNU make
- expat
- rpm
- popt
Standard OCaml packages
- ocaml-expat (which probably needs some expat-devel package, depending on your OS/distribution);
- camlzip (which, by default, doesn't install using ocamlfind; a patch is here)
- ocaml-calendar (for Dose)
- OcamlDuce
- Only for the unstable version: ocaml-mysql (more specifically a patched version that includes prepared statements and can be found here)
Dose
Ceve needs some components from Dose (the library behind pkglab), more specifically dosebase and lifetime. In order to compile them, get dose version 2 from SVN (https://gforge.inria.fr/projects/sodiac/) and run:CFLAGS="-I/usr/local/lib/ocaml" make lifetime dosebasefor i in util io mmap lifetime dosebase do (cd $i; make -I ../make install) done
Ceve
Now you should be able to compile Ceve. Go to the ceve directory and run:CFLAGS="-I/usr/local/lib/ocaml -I/usr/local/include -I/usr/local/include/rpm -I/usr/local/include/mysql" LDFLAGS="-L/usr/local/lib/mysql" make ceve.opt
Usage
Ceve usage:ceve [options] [repository files]
Options
- -p or -input-type Type of input; possible values:
- debian One Debian package per file (default)
- debian-cache One debian repository/cache per file
- rpm RPM package files
- hdlist RPM hdlist files
- egraph EGraph (GraphML-like) files
- -t or -output-type Type of output; possible values:
- prettyprint (default): pretty printing, in debian-like format
- dgraph or egraph: EGraph format
- rpmfind: Fill an RPMfind database (experimental)
- dose: DOSE (anla & pkglab) format
- oz: File for inclusion in an OZ program
- graphviz: Graph representation of the repository for usage with dot
- tart or tart-cnf: CNF form for usage with TART
- -o or -output-file The file to output to (default: standard output)
- -output-dir (only with dose output type) Output directory
- -x or -extract-cone pkg: Extract dependency cone of a given package (with version, format: pkg=version)
- -cone-dep-types type,type,...: Dependency types to use for cone extraction (default: all)
- -stop-extraction pkg: Stop extracting the dependency cone when this package is reached (format: pkg=version)
- -r or -resolve-dependencies: Resolve virtual dependencies, i.e. replace a dependency on a virtual dependency by a dependency on the packages providing it
- -vr or -rpm-versions: Force usage of RPM versions (default for RPM packages and hdlists)
- -vd or -debian-versions: Force usage of Debian versions (default for Debian packages and repositories, as well as for EGraph files)
- -dose-date (dose only): Set the date for the DOSE archive (format: yyyy-mm-dd)
- -dose-archive (dose only): Set DOSE archive name
- -dose-architecture (dose only): Set default architecture for DOSE archive
Version 3.1 last modified by StephaneLauriere on 10/09/2008 at 14:59
Document data
Attachments:
No attachments for this document
Comments: 0