| [Index] [About] |
| |||||||
|
||||||||
The directory InstallPackage/build contains the actual files which will be installed within the package. The structure of this directory is:
For this type of package the structure under the InstallPackage/build directory should mirror the locations of the files et al as they would be under / on the system the package is to be installed under.
Thus the file InstallPackage/build/etc/foo will end up being installed at /etc/foo when the package it is a part of is added via pkgadd to a system.
For this type of package the structure under the InstallPackage/build directory should mirror the locations of the files et al as they would appear under the specified BASEDIR parameter from the pkginfo file.
Thus if the BASEDIR pkginfo file parameter was /usr/local then the file InstallPackage/build/etc/foo would end up at /usr/local/etc/foo when the package it is a part of is added via pkgadd to a system.
The rest of this document will concern itself with absolute packages only.
There are three basic ways in which you can populate the InstallPackage/build directory:
Thus if you are using software which has been configured using GNU autoconf - i.e. you called a script called configure - then you could use:
![]()
% make install prefix=`pwd`/InstallPackage/build/usr/local
![]()
This generally works as the variable prefix in a Makefile generated by GNU autoconf contains the installation root, normally /usr/local.
It should be noted that there is nothing stopping a package from installed items outside of directories which include the prefix variable; for example you could have files installed in /etc. For that reason you should ensure the following:
![]()
% umask 022 % mkdir -p InstallPackage/build/usr/local/bin % cp somebin InstallPackage/build/usr/local/bin/somebin % chmod 755 InstallPackage/build/usr/local/bin/somebin
![]()
To create a package with a single file called somebin which will be installed at /usr/local/bin/somebin when the package is added via pkgadd.
|
||||||||
|---|---|---|---|---|---|---|---|---|
| [Index] [About] | Powered by WML |
| ||||||
|
||||
| © Simes |