[contrib/aix/buildbff.sh contrib/aix/inventory.sh] AIX package

build fixes.  Patch by Darren Tucker <dtucker@zip.com.au>
[contrib/solaris/buildpkg.sh] add missing dirs to SYSTEM_DIR. Have
postinstall check for $piddir and add if necessary.
This commit is contained in:
Tim Rice 2002-03-17 14:05:24 -08:00
parent 88f2ab5efb
commit 3a4234699e
4 changed files with 39 additions and 13 deletions

View File

@ -2,6 +2,10 @@
- (tim) [configure.ac] Assume path given with --with-pid-dir=PATH is wanted, - (tim) [configure.ac] Assume path given with --with-pid-dir=PATH is wanted,
warn if directory does not exist. Put system directories in front of warn if directory does not exist. Put system directories in front of
PATH for finding entorpy commands. PATH for finding entorpy commands.
- (tim) [contrib/aix/buildbff.sh contrib/aix/inventory.sh] AIX package
build fixes. Patch by Darren Tucker <dtucker@zip.com.au>
[contrib/solaris/buildpkg.sh] add missing dirs to SYSTEM_DIR. Have
postinstall check for $piddir and add if necessary.
20020311 20020311
- (tim) [contrib/solaris/buildpkg.sh, contrib/solaris/README] Updated to - (tim) [contrib/solaris/buildpkg.sh, contrib/solaris/README] Updated to
@ -7839,4 +7843,4 @@
- Wrote replacements for strlcpy and mkdtemp - Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1 - Released 1.0pre1
$Id: ChangeLog,v 1.1922 2002/03/17 20:17:34 tim Exp $ $Id: ChangeLog,v 1.1923 2002/03/17 22:05:24 tim Exp $

View File

@ -11,21 +11,14 @@
umask 022 umask 022
PKGNAME=openssh PKGNAME=openssh
PATH=$PATH:`pwd` # set path for external tools
export PATH
## Extract common info requires for the 'info' part of the package.
VERSION=`tail -1 ../../version.h | sed -e 's/.*_\([0-9]\)/\1/g' | sed 's/\"$//'`
BFFVERSION=`echo $VERSION | sed 's/p/./g'`
echo "Building BFF for $PKGNAME $VERSION (package version $BFFVERSION)"
PKGDIR=package PKGDIR=package
# Clean build directory and package file PATH=`pwd`:$PATH # set path for external tools
export PATH
# Clean build directory
rm -rf $PKGDIR rm -rf $PKGDIR
mkdir $PKGDIR mkdir $PKGDIR
rm -f $PKGNAME-$VERSION.bff
if [ ! -f ../../Makefile ] if [ ! -f ../../Makefile ]
then then
@ -40,6 +33,29 @@ FAKE_ROOT=$START/$PKGDIR
cd ../.. cd ../..
make install-nokeys DESTDIR=$FAKE_ROOT make install-nokeys DESTDIR=$FAKE_ROOT
if [ $? -gt 0 ]
then
echo "Fake root install failed, stopping."
exit 1
fi
#
# Extract common info requires for the 'info' part of the package.
# AIX requires 4-part version numbers
#
VERSION=`./ssh -V 2>&1 | sed -e 's/,.*//' | cut -f 2 -d _`
MAJOR=`echo $VERSION | cut -f 1 -d p | cut -f 1 -d .`
MINOR=`echo $VERSION | cut -f 1 -d p | cut -f 2 -d .`
PATCH=`echo $VERSION | cut -f 1 -d p | cut -f 3 -d .`
PORTABLE=`echo $VERSION | cut -f 2 -d p`
if [ "$PATCH" = "" ]
then
PATCH=0
fi
BFFVERSION=`printf "%d.%d.%d.%d" $MAJOR $MINOR $PATCH $PORTABLE`
echo "Building BFF for $PKGNAME $VERSION (package version $BFFVERSION)"
# #
# Fill in some details, like prefix and sysconfdir # Fill in some details, like prefix and sysconfdir
# the eval also expands variables like sysconfdir=${prefix}/etc # the eval also expands variables like sysconfdir=${prefix}/etc
@ -175,6 +191,7 @@ mv ../lpp_name .
# file list on the fly and feed it to backup using -i # file list on the fly and feed it to backup using -i
# #
echo Creating $PKGNAME-$VERSION.bff with backup... echo Creating $PKGNAME-$VERSION.bff with backup...
rm -f $PKGNAME-$VERSION.bff
( (
echo "./lpp_name" echo "./lpp_name"
find . ! -name lpp_name -a ! -name . -print find . ! -name lpp_name -a ! -name . -print

View File

@ -52,7 +52,7 @@ find . ! -name . -print | perl -ne '{
} elsif ( -f $_ ) { } elsif ( -f $_ ) {
# Entry is File # Entry is File
print "\ttype=FILE\n"; print "\ttype=FILE\n";
print "\tsize=VOLATILE\n"; print "\tsize=$sz\n";
print "\tchecksum=VOLATILE\n"; print "\tchecksum=VOLATILE\n";
} elsif ( -d $_ ) { } elsif ( -d $_ ) {
# Entry is Directory # Entry is Directory

View File

@ -29,6 +29,7 @@ SYSTEM_DIR="/etc \
/etc/rc0.d \ /etc/rc0.d \
/etc/rc1.d \ /etc/rc1.d \
/etc/rc2.d \ /etc/rc2.d \
/etc/opt \
/opt \ /opt \
/opt/bin \ /opt/bin \
/usr \ /usr \
@ -49,6 +50,7 @@ SYSTEM_DIR="/etc \
/usr/local/sbin \ /usr/local/sbin \
/usr/local/share \ /usr/local/share \
/var \ /var \
/var/opt \
/var/run \ /var/run \
/var/tmp \ /var/tmp \
/tmp" /tmp"
@ -201,6 +203,9 @@ installf ${PKGNAME} $TEST_DIR/etc/rcS.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d
installf ${PKGNAME} $TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l installf ${PKGNAME} $TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
fi fi
# If piddir doesn't exist we add it. (Ie. --with-pid-dir=/var/opt/ssh)
[ -d $piddir ] || installf ${PKGNAME} $TEST_DIR$piddir d 755 root sys
installf -f ${PKGNAME} installf -f ${PKGNAME}
[ "\${POST_INS_START}" = "yes" ] && ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} start [ "\${POST_INS_START}" = "yes" ] && ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} start