SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

HINT FILES

autopkg.pl allows the use of "hint files" to automate the process of building packages for projects which require specific configuration options or changes. The default location of the hint files are /usr/share/autopkg.pl/hints and $HOME/.autopkg.pl/hints.

since version 1.5, autopkg.pl now supports two hint file formats: old and new.

The old syntax is as follows:

PKG{NAME} = VALUE
VALUE can be changed to whatever you'd like, but PKG must stay the same. No quotes are necessary or a semicolon (this is not a perl script) and a newline will specify a new variable to set. NAME must be one of the valid NAME entries in /usr/share/autopkg.pl/hints/EXAMPLE_HINT_FILE.

The new syntax is as follows:

      function NAME() {
        ...
      }

It is basically just a shell script function that is called at the time in the build process that NAME refers to. NAME must be one of the valid NAME entries in /usr/share/autopkg.pl/hints/EXAMPLE_HINT_FILE. Note that in this new form of syntax the whole hint file is a shell script which is eventually executed, so it must be syntactically correct for it to execute properly.

The hint file itself is a plain text file that has the name of the directory extracted from the tarball when the package is being built. You may use wildcard characters to in this name to apply the hint file to all packages maching a similar name. For example, a hint file named "/usr/share/autopkg.pl/hints/MPlayer-" will match an extracted directory named "MPlayer-1.0pre2" but not "Skins-For-MPlayer-1.0pre2"; you would need to use "/usr/share/autopkg.pl/hints/MPlayer-*" for that.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.