Home
Name Modified Size Downloads / Week Status
Totals: 5 Items   367.5 kB 5
aixtools.buildaix.2.0.2.0.aix537.I 2015-07-08 114.7 kB 11 weekly downloads
CHANGELOG 2015-07-08 6.4 kB 11 weekly downloads
aixtools.buildaix.2.0.1.0.aix537.I 2015-04-05 111.6 kB 11 weekly downloads
aixtools.buildaix.1.0.10.0.aix537.I 2015-01-29 130.6 kB 11 weekly downloads
README 2013-09-30 4.2 kB 11 weekly downloads
# Copyright 2012 -- Michael Felt # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. This package attempts to automate the building of standard OpenSource projects as an mkinstallp image/fileset When successful, the image is palced in the Project tree in ${BASE}/installp/ppc. The template created, as well as log files are stored in $BASE/build/aix. Note: 'make clean' and make 'distclean' are not buildaix aware and shall not remove these directories. You may remove them at anytime as buildaix scripts are outside of the project. Customization: 1) edit /opt/aixinfo.ksh for global changes, CFLAGS, CC, etc. 2) create ${BASE}/build/aix/aixinfo.env and/or ${BASE}/build/aixinfo.ksh for project specific processing. Think of these two files as if /etc/environment and /etc/profile had been specifically written for the project CONFIGURE and MAKE If the default ./configure command in buildaix does not succeed run ./configure manually until you have a successful configure run. Then execute buildaix as the presence of a Makefile in the project root will cause the script to skip calling configure MAKE DESTDIR=${TEMPDIR} install After make has completed, "make DESTDIR=${TEMPDIR} install" is called to install the package in a scratch area rather than on the development system. If this fails, our recommendation is to use the GNU coreutils install command. Adjust your PATH variable to be sure it is seen. MKINSTALLP The mkinstallp.ksh script works from the following assumptions: /opt is the normal prefix (rather than /usr/local) /usr/bin, /usr/sbin, /usr/lib, /usr/include are directories for symbolic links into /opt NOTE: any files/directories in ${TEMPDIR}/usr/local are removed my mkinstallp.ksh These files are located in the USR part of the installp packaging /etc is used for configuration /var is used for modifiable data both /etc and /var are considered to be the ROOT part of the fileset /opt, /var, /etc, /usr form the PKG.PROGRAM.rte (runtime environment) fileset except /usr/share/man is put into a seperate fileset package - aixtools.${PACKAGE}.{VERSION}.man.en_US by default. NOTE: buildaix makes no presumptions about prequistites for the PACKAGE built. A later release will provide a tool to update the template and already built .I file with prequistite information. PATCHES that might be needed! I have had issues with assigning symbolic links in the packages - default mkinstallp does not like these and exits with an error. Use following patch to "fix it" Note: before applying the patch you may want/need to remove /usr/sbin/mkinstallp from /etc/security/tsd/tsd.dat using # trustchk -d /usr/sbin/mkinstallp because the checksum will no longer be correct. I also needed to change the file mode before applying the patch # chmod u+w /usr/sbin/mkinstallp --- /usr/sbin/mkinstallp 2010-06-10 01:04:37.000000000 +0200 +++ ../mkinstallp 2012-09-24 12:34:17.000000000 +0200 @@ -2350,12 +2350,13 @@ fi # Make sure we have a valid file - if [[ ! -e $ROOT_DIR/${FILE_LINE#[ ]*} ]]; then + # or symbolic link -- note -- this is a quick hack for existence of the link, not what it points at! + if [[ ! -e $ROOT_DIR/${FILE_LINE#[ ]*} && ! -L $ROOT_DIR/${FILE_LINE#[ ]*} ]]; then MESG=`/usr/bin/dspmsg -s 20 cmdinstl_e.cat 87 "0503-881 %s: Invalid filename (%s)\n \ \tin %s\n" "$CMDNAME" "${FILE_LINE#[ ]*}" "$TEMPLATE_FILE"` print >&2 "$MESG" exit 1; - fi + fi # Write out the al file, stripping leading spaces if they appear. Note # that the file paths are relative, so prepend a dot to the filename.
Source: README, updated 2013-09-30