Fink::Scanpackages man page on Darwin

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
Darwin logo
[printable version]

Fink::Scanpackages(3)	      Fink documentation	 Fink::Scanpackages(3)

NAME
       Fink::Scanpackages - Pure-perl .deb scanner.

DESCRIPTION
       Fink::Scanpackages is a pure-perl way to generate a Packages file for a
       tree of .debs. Unlike dpkg-scanpackges, it uses modern perl and a
       database for caching.

       It is designed to work on Fink-generated .debs. Certain obsolete
       features of .debs are therefore ignored, and some features of dpkg-
       scanpackages and apt-ftparchive are not implemented.

SYNOPSIS
	 use Fink::Scanpackages;

	 # Object oriented
	 my $sp = Fink::Scanpackages->new(%options);
	 $sp->scan($dir, %options);
	 $sp->scan_dists($options, @dirs);
	 $sp->scan_fink;

	 $sp->finish; # This is usually unnecessary

	 # Functions
	 Fink::Scanpackages->scan($dir, %options);
	 Fink::Scanpackages->scan_dists($options, @dirs);
	 Fink::Scanpackages->scan_fink(%options);

	 my $path = Fink::Scanpackages->default_cache;

METHODS
       new
	     my $sp = Fink::Scanpackages->new(%options);

	   Create a scanner object.

	   Options include:

	   db  The path to use for caching results. Defaults to no cache.

	   pdb If true, use the Fink package database for the fields that
	       would be defined in dpkg-scanpackage's override file. Defaults
	       to true.

	   restrictive
	       If true, do index License: Restrictive. Defaults to true.

	   verbosity
	       An integer. If non-zero, various messages will be printed. The
	       default is 1.

	   prefix
	       The prefix where dpkg-deb can be found. This defaults to the
	       Fink prefix, but supplying this option explicitly may allow
	       scanpackages to run even without a properly configured Fink.

       scan
	     $sp->scan($dir, %options);
	     Fink::Scanpackages->scan($dir, %options);

	   Scan a directory for packages, with output going to stdout.

	   If called as a package function rather than as a method, options
	   for new may be included in %options.

	   Options include:

	   output
	       The file or filehandle to output to. Defaults to stdout.

	   basedir
	       The directory relative to which all paths should be considered.
	       This includes the $dir passed directly to scan.

       scan_dists
	     $sp->scan_dists($options, @dirs);
	     Fink::Scanpackages->scan_dists($options, @dirs);

	   Scan many directories at once. The output for each directory is
	   assumed to go in Packages.gz at that directory's root.

	   The option basedir from scan is accepted. Other options include:

	   release
	       A hashref. If present, a release file will be created in each
	       directory scanned, with fields taken from the hashref. The
	       Archive and Component fields will be auto-generated where
	       possible.

       scan_fink
	     $sp->scan_fink;
	     $sp->scan_fink($options);
	     $sp->scan_fink($options, @trees);

	     Fink::Scanpackages->scan_fink;
	     Fink::Scanpackages->scan_fink($options);
	     Fink::Scanpackages->scan_fink($options, @trees);

	   Scan packages in Fink trees. If no trees are specified, all trees
	   are scanned.

	   No options exist yet.

       default_cache
	     my $path = Fink::Scanpackages->default_cache;

	   Get the path to the file that is used by default for caching result
	   of scan_fink.

       finish
	     $sp->finish;

	   Explicitly releases any resources. Usually this will happen
	   automatically when the object is destroyed.

BUGS
       It can be hazardous to change the 'pdb' option but use the same
       database.

Fink 0.36.3.1			  2013-12-30		 Fink::Scanpackages(3)
[top]

List of man pages available for Darwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net