Almindor ee598d6f67 * update lNet to 0.6.4 há 15 anos atrás
..
examples f0c4849f3a * another example há 18 anos atrás
lnet ee598d6f67 * update lNet to 0.6.4 há 15 anos atrás
Makefile 93c1c74e02 * Update Makefiles há 16 anos atrás
Makefile.fpc 1bbc9b3e13 * implicit units in a Makefile.fpc are installed when doing a cross install, however if they are referenced only from a program they won't be build so a cross install fails: added build unit, resolves #14409 há 16 anos atrás
README.txt 4bf254bc32 * added .txt extensions to all README, TODO and COPYING files há 16 anos atrás
buildfppkg.pp 63b8ff87c8 * fixes for go32v2 compilation by John Lee (approved by Tomas) há 16 anos atrás
fpmkunitsrc.inc c1a83273f7 * Use ExeSearch instead of FileSearch to find command executable há 16 anos atrás
fppkg.lpi 2ca892c361 * Added ability to use macros ({AppConfigDir}, {UserDir} and {LocalRepository}) in path settings há 15 anos atrás
fppkg.pp 6be872bb13 * Added -l/--showlocation option for the list command to show which packages are installed locally and globally há 15 anos atrás
fprepos.pp d94ee900fb * Also check cpu and os when the package in the current directory is used há 15 anos atrás
fpxmlrep.pp 2ba6583d8d Merged revisions 12047-12050,12054,12056-12057,12059-12062,12064-12066,12073,12075,12077-12078,12082,12085,12087-12088,12092-12094,12099,12106-12110,12114,12117-12122,12125,12128-12131,12138,12141-12143,12152-12160,12162-12163,12166-12171,12173-12176,12196,12198-12205 via svnmerge from há 17 anos atrás
pkgcommands.pp 6be872bb13 * Added -l/--showlocation option for the list command to show which packages are installed locally and globally há 15 anos atrás
pkgdownload.pp 85250cca06 * split repository in InstalledRepository and AvailableRepository há 17 anos atrás
pkgfpmake.pp d4af41d4bf * Do not check platform-availability for manifest and archive commands há 15 anos atrás
pkgglobals.pp 2ba6583d8d Merged revisions 12047-12050,12054,12056-12057,12059-12062,12064-12066,12073,12075,12077-12078,12082,12085,12087-12088,12092-12094,12099,12106-12110,12114,12117-12122,12125,12128-12131,12138,12141-12143,12152-12160,12162-12163,12166-12171,12173-12176,12196,12198-12205 via svnmerge from há 17 anos atrás
pkghandler.pp 2ba6583d8d Merged revisions 12047-12050,12054,12056-12057,12059-12062,12064-12066,12073,12075,12077-12078,12082,12085,12087-12088,12092-12094,12099,12106-12110,12114,12117-12122,12125,12128-12131,12138,12141-12143,12152-12160,12162-12163,12166-12171,12173-12176,12196,12198-12205 via svnmerge from há 17 anos atrás
pkglnet.pp ef9177ccc4 * report URL in download failure há 17 anos atrás
pkgmessages.pp 2ad42e8d8f * Show ''broken'' option and ''fixbroken'' command in help há 15 anos atrás
pkgmkconv.pp 85250cca06 * split repository in InstalledRepository and AvailableRepository há 17 anos atrás
pkgoptions.pp 6be872bb13 * Added -l/--showlocation option for the list command to show which packages are installed locally and globally há 15 anos atrás
pkgrepos.pp 6be872bb13 * Added -l/--showlocation option for the list command to show which packages are installed locally and globally há 15 anos atrás
pkgwget.pp ef9177ccc4 * report URL in download failure há 17 anos atrás

README.txt

This is the FPC packager.

The architecture is as follows:

A mirror list is maintained with FPC repositories.
The packager will download the mirror list and store
it somewhere locally

From a mirror, a repository is chosen (using it's name)

From the repository the repository file is downloaded.
It contains all known packages. The fprepos.pp unit contains the
functionality to read and maintain the package file.

The packager maintains a local repository file. when needed
it will download a package and install it. It does so recursively.

Each package contains a fpmake.pp driver. It contains all that
is needed to compile, install and zip a package. It can also
create a manifest file (in XML) to import in a repository.

All packager functionality will be implemented in units so
these units can be used in command-line and GUI package managers.

All packager command handling is implemented in descendents fom
TPackageHandler (pkghandler.pp). All messages emitted by these
handlers are in pkgmessages.

Units:
-----

fprepos:
A unit that describes a repository.
It is mainly a collection of packages.
fpxmlrep
A unit to read/write a repository to XML. It can be used to read a
manifest file as produced by the fpmake driver.
pkgropts
A unit to maintain settings for the packager it reads/writes
options from/to an ini file.
fpmkunit
this is the unit that implements all the functionality a fpmake driver
needs.
fpmktype
types and constants shared by fpmkunit and fprepos
rep2xml
test program for the fprepos unit.
reptest
creates some test packages for use in the rep2xml test program.
fppkg
the package manager application
fpmkconv
Makefile.fpc to fpmake converter.
pkgmessages
the messages used in pkghandler and below.
pkghandler
the base for all fppkg command handlers
pkgdownload
a base implementation for download functionality in fppkg
pkgwget
a downloader based on spawning wget.
pkgsynapse
a downloader based on Synapse. Do not put in makefile, as Synapse is
not distributed by default with FPC.
pkglibcurl
a downloader based on LibCurl (plain C library).
pkgocurl
a downloader based on CurlPas (object version). Do not put in makefile,
as CurlPas is not distributed with FPC.
pkglnet
a downloader based on lNet. The library is distributed in "lnet" subdir
of fppkg root.


Options supported in packager config file:
------------------------------------------

LocalMirrors
Local file with list of mirrors.
RemoteMirrors
URL with location of remote mirrors file.
RemoteRepository
Name of repository as found in LocalMirrors file.
LocalRepository
Location of local repository file.
InstallDir
Directory to install packages/units to
BuildDir
Directory where to unpack and build packages
Compiler
Compiler binary to be used
OS
Default OS
CPU
Default CPU

Defaults can be found in pkgropts


Helpfull commands for building packages:
----------------------------------------

* Generate AddInclude and AddUnit lines from an existing PPU file:

ppudump | awk "/^Source/ { printf(\"AddInclude('%s');\\n\",\$5); } /^Uses unit/ { printf(\"AddUnit('%s');\\n\",tolower(\$3)); }"

* Testing if building a package from archive works:

fpc fpmake && fpmake archive && fppkg build *.zip

* Comparing units directories and generate AddUnit lines for missing .ppu files in :

diff -q | awk "/^Only.*ppu/ { gsub(\".ppu\",\".pp\"); printf(\"T:=P.Targets.AddUnit('%s');\n\",\$NF); }"