-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stéphane Peter - Tue Jul 25 19:49:06 PDT 2000
* Rewrote the extractor backend to use a plugin subsystem. Plugins can either be compiled in or used as shared library objects (.so files). Ryan C. Gordon - Wed Jul 26 16:10:29 PDT 2000 * Added plugin for the Outrage PKG format. Stéphane Peter - Thu Jul 27 14:02:27 PDT 2000 * Added new 'nobinaries' tag for the product element, so that installations that don't install new binaries won't prompt the user for a path. Stéphane Peter - Fri Jul 28 18:39:28 PDT 2000 * Added new 'required' attribute for the 'option' element, for options that have to be always installed.
- Loading branch information
Showing
41 changed files
with
3,520 additions
and
1,879 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
How to write extractor plugins for setup | ||
======================================== | ||
|
||
Starting from version 1.4.0, setup can be easily extended to recognize | ||
some additional archive formats through a plugin system. This document | ||
describes the basic guidelines to write such a plugin. | ||
|
||
- Use the sample plugin as a basis for the new plugin (sample.c). You | ||
should probably copy this file in the plugins directory to a relevant | ||
name. | ||
|
||
- Look at other plugins to get an idea of what the implementation of the | ||
Copy() and Size() functions should be like. The most important is probably | ||
that you MUST use the I/O functions from file.h in order for the files | ||
created by your plugin to be registered in setup (for uninstallation purposes). | ||
Also it will give you transparent access to compressed files through Zlib, so | ||
you may want to register additional extensions for your plugin (i.e. .ext.gz). | ||
Also you must call explicitly the 'update' function given to you whenever you | ||
can, to update the installation status that the user is presented with. | ||
|
||
- Add your plugin on the 'PLUGINS = ...' line in the Makefile in the plugins | ||
directory. | ||
|
||
- Edit plugins/plugindefs.h and add declarations for your plugin's SetupPlugin | ||
structure in there (this will allow it to be statically linked if desired). | ||
|
||
- Test it! It's done... | ||
|
||
|
||
St�phane Peter <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.