Update of "Packfile"
Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.
make after all source files have been collected into the staging dir.
- The main
Packfilewill be picked up from wherever
fpmwas invoked at.
Runs within the base
- Any Packfiles that were grabbed along with source files (e.g.
usr/share/doc/Packfile) will be run in the according staging subdirectory.
And of course they'll be automatically removed after being run.
An example Packfile could just be:
all: gzip -9 usr/share/doc/mypkg/changelog
Note that the paths are relative, as it's already run within the staging directory.
There are a few extra environment variables available:
Package-type specific rules
So you could add rules depending on target package types for example:
all: $(PACK_TYPE) deb: gzip -9 usr/share/doc/mypkg/changelog rpm: mv etc/rc.d/05-mypkg etc/init.d/mypkg
Minor mid-packaging refinements.
Packfiles came to be, because they're more flexibile than builtin/default -u filters. They permit more cusomized hooks and packaging tasks.
It's not meant to delay actual build steps into the packaging phase.
Instead it's there to avoid packaging-workarounds creeping into and collecting dust in a regular Makefile.
Of course the boundaries can be somewhat arbitrary. But at least it's now feasible to cleanly spearate Makefile and Packfile tasks. Less mashup / overlap.
Suitable for minor file renaming, data compression or stub/default creation tasks.