Currently employed @   ![]() ( 23.335 ) | > main > varia > AIX > AIX lpp / bff pkgHowto create an AIX LPP / BFF packageThis page will explain you HOWTO create an AIX LPP / BFF package To start with, you'll need the mklpp package from Bull. You can find the tool here. A mirror you can find here. Install this package via the smitty interface:
Make a lv volume lvlpp and make a filesystems on it. Mount this filesystem under /lppdir.
First we create the build env:
Download the source of zlib and place it in /lppdir/build/zlib
Be sure to change the umask to 022, so your install directory is ok. (umask 022) Run the compille instructions for zlib:
Install zlib in a changed root env:
Make the lpp subdirs for the package
Pick a name for your package, take for exmaple: freeware.zlib
Go into the directory /lppdir/lpp/zlib and create the lpp_name file:
4 R I freeware.zlib {
freeware.zlib.rte 1.2.1.1 01 N U en_US Zlib, Data compression library
[
*prereq bos.net.tcp.client v=4 r>1
%
INSTWORK 70 70
%
%
%
%
]
}
You will have to place the version in there(1.2.1.1) the name of the package (freeware.zlib / freeware.zlib.rte) and an explanation (Zlib, Data compression library). If needed, you can place prereq's. All other fields will be auto generated. Make the .info subdir and create the copyright file:
Now you can build your package by doing:
[root@sys /lppdir/lpp/zlib] mklpp
rm -f .info/freeware.zlib.rte.al
rm -f .info/freeware.zlib.rte.size
rm -f .info/freeware.zlib.rte.inventory
rm -f .info/backup_files
rm -f usr/lpp/freeware.zlib/liblpp.a
rm -f usr/lpp/freeware.zlib/inst_root/liblpp.a
rm -f .info/liblpp.a
rm -f //lppdir/out/zlib-1.2.1.1.bff //lppdir/out/zlib-1.2.1.1.bff.asc \
//lppdir/zip/zlib-1.2.1.1.exe //lppdir/bff/zlib-1.2.1.1.bff \
//lppdir/bff/zlib-1.2.1.1.bff.asc
No freeware.zlib.rte.al, applying logic to the problem...
No size file, try this for size...
No inventory file, inventing it...
No cfgfiles script, no pre-configured option, forget it
Making .info/liblpp.a archive
No root part to make
Making list of files to backup
Updating lpp_name
Making installp format distribution on //lppdir/out/zlib-1.2.1.1.bff
Target "all" is up to date.
[root@sys /lppdir/lpp/zlib]
Do note that mklpp automaticly create post and pre scripts for install and de-install in the .info/. You can add extra commands in these scripts for your own purpose. Copyright 1997 - 2009 Ramses Smeyers. All rights reserved |