diff options
author | rillig <rillig> | 2007-02-20 13:08:32 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-02-20 13:08:32 +0000 |
commit | 7d266d810f5ad0e23eecd980f9dd810ceb14fbce (patch) | |
tree | 4782ea737aef5e8818d579784ee3679d42635d46 /mk/flavor | |
parent | 56b41849139ef66c364e2ffcc31e0bfd2e9f837d (diff) | |
download | pkgsrc-7d266d810f5ad0e23eecd980f9dd810ceb14fbce.tar.gz |
Added a README file with some basic introduction to encourage developers
to port pkgsrc to other packaging systems.
Diffstat (limited to 'mk/flavor')
-rw-r--r-- | mk/flavor/README | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/mk/flavor/README b/mk/flavor/README new file mode 100644 index 00000000000..3554d709187 --- /dev/null +++ b/mk/flavor/README @@ -0,0 +1,56 @@ += Introduction = + +A package flavor is a packaging system that is supported by pkgsrc. +Currently, there is only one (the native pkgsrc tools), but maybe we can +support RPM, dpkg or the Solaris native packages someday. It can also be +used to test new variants of the packaging tools. + += Interface = + +A package system flavor must define the following variables so that they +can be used when loading Makefiles. (That is, no references to undefined +variables.) + +* PKG_DBDIR (TODO: Make the other parts of pkgsrc independent of that + variable; this should go away.) + +* PKG_ADD +* PKG_ADMIN +* PKG_CREATE +* PKG_DELETE +* PKG_INFO +* PKG_VIEW +* LINKFARM +* PKG_BEST_EXISTS + +The variables from the second list are all shell commands, which must +accept some command line options that are detailed in the respective man +pages. (TODO: Find out which command line options are really used and +which ones are useful. Document them.) + +The following variables must be defined so that they can be used in +shell commands. They may contain references to all other variables. + +* PKG_FILELIST_CMD + +The following make targets must be implemented: + +* check-vulnerable +* deinstall-pkg +* show-depends +* depends-install +* bootstrap-depends +* register-pkg +* tarup (XXX: This doesn't sound like a target that should be defined + here.) +* tarup-pkg +* package-install +* replace-pkg +* undo-replace-pkg + += Bugs = + +The name "flavor" is badly chosen, especially since flavor is such a +broad term that OpenBSD ports collection has chosen to implement +something entirely different using the same name. (This has happended +before pkgsrc has chosen to use this word, though, so no blame on them.) |