You can view this document as one long file by clicking here.
These tutorials will take you in order from simple to complex.
The most essential part of your compile and packaging efforts is the source code for your application. In our example, we'll be getting ready to compile ESP EPM. To place it, we'll download the source package from http://www.epmhome.org/ to our ./sourceballs directory, extract it to the ./src directory and know what we need to chage if anything in our user script. Please be sure to use the appropriate mirror from http://www.epmhome.org/ to download. We will be dealing with a GZipped Tarball in this example. If you have a zip, rar or other type of package, please substitute the `tar` commands below for their appropriate equivalent and read the documentation for that equivalent.
First, grab the source package.
[root@localhost:~]$ wget --directory-prefix=/ape/_compile/sourceballs 'http://ftp.SOME-MIRROR/pub/epm/4.1/epm-4.1-source.tar.gz' --10:24:06-- http://ftp.SOME-MIRROR/pub/epm/4.1/epm-4.1-source.tar.gz Resolving ftp.SOME-MIRROR... 208.256.256.256 Connecting to ftp.SOME-MIRROR|208.256.256.256|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 509728 (498K) [application/x-gzip] Saving to: `/ape/_compile/sourceballs/epm-4.1-source.tar.gz' 100%[=================================================================================================================================================>] 509,728 984K/s in 0.5s 10:24:07 (984 KB/s) - `/ape/_compile/sourceballs/epm-4.1-source.tar.gz' saved [509728/509728] [root@localhost:~]$ |
Now we extract it to /ape/_compile/src/, but first we check to see that everything in the source package is inside of a directory. In this case, the directory is named in the style of "app-version" as Ape Base Compile System will expect it: ("epm-4.1"). If the contents of the source package are at the root of the package, you may wish to alter "--directory /ape/_compile/src" to something like "--directory /ape/_compile/src/app-version" in the second command below.
[root@localhost:~]$ tar --gzip --list --file /ape/_compile/sourceballs/epm-4.1-source.tar.gz | head -n 10 epm-4.1/ epm-4.1/doc/ epm-4.1/doc/3-packaging.html epm-4.1/doc/epmlogo.tif epm-4.1/doc/epm.man epm-4.1/doc/d-relnotes.html epm-4.1/doc/mkepmlist.man epm-4.1/doc/c-reference.html epm-4.1/doc/epminstall.man epm-4.1/doc/Makefile.in [root@localhost:~]$ tar --gzip --extract --directory /ape/_compile/src --file /ape/_compile/sourceballs/epm-4.1-source.tar.gz [root@localhost:~]$ ls -ld /ape/_compile/src/epm-4.1 drwxrwxr-x 5 1110 games 4096 Apr 10 2007 /ape/_compile/src/epm-4.1 [root@localhost:~]$ |
In this case, you'll notice the odd owner and group of /ape/_compile/src/epm-4.1 in the final directory listing (`ls`). These were the permissions from the extracted archive. We shoudl fix them before going on.
[root@localhost:~]$ chown -R root:root /ape/_compile/src/epm-4.1 [root@localhost:~]$ ls -ld /ape/_compile/src/epm-4.1 drwxrwxr-x 5 root root 4096 Apr 10 2007 /ape/_compile/src/epm-4.1 [root@localhost:~]$ |
If you wish to further organize the ./src directory, you can do so. Perhaps you'd like to keep all of your MySQL sources together. In such a case you would create the directory in ./src and adjust your APE_CONF_SOURCE_DIR_NAME variable accordingly in your user script.
(this section has yet to be written)