diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | contrib/aix/buildbff.sh | 37 | ||||
-rwxr-xr-x | contrib/aix/inventory.sh | 2 | ||||
-rwxr-xr-x | contrib/solaris/buildpkg.sh | 5 |
4 files changed, 38 insertions, 12 deletions
@@ -2,6 +2,10 @@ | |||
2 | - (tim) [configure.ac] Assume path given with --with-pid-dir=PATH is wanted, | 2 | - (tim) [configure.ac] Assume path given with --with-pid-dir=PATH is wanted, |
3 | warn if directory does not exist. Put system directories in front of | 3 | warn if directory does not exist. Put system directories in front of |
4 | PATH for finding entorpy commands. | 4 | PATH for finding entorpy commands. |
5 | - (tim) [contrib/aix/buildbff.sh contrib/aix/inventory.sh] AIX package | ||
6 | build fixes. Patch by Darren Tucker <dtucker@zip.com.au> | ||
7 | [contrib/solaris/buildpkg.sh] add missing dirs to SYSTEM_DIR. Have | ||
8 | postinstall check for $piddir and add if necessary. | ||
5 | 9 | ||
6 | 20020311 | 10 | 20020311 |
7 | - (tim) [contrib/solaris/buildpkg.sh, contrib/solaris/README] Updated to | 11 | - (tim) [contrib/solaris/buildpkg.sh, contrib/solaris/README] Updated to |
@@ -7839,4 +7843,4 @@ | |||
7839 | - Wrote replacements for strlcpy and mkdtemp | 7843 | - Wrote replacements for strlcpy and mkdtemp |
7840 | - Released 1.0pre1 | 7844 | - Released 1.0pre1 |
7841 | 7845 | ||
7842 | $Id: ChangeLog,v 1.1922 2002/03/17 20:17:34 tim Exp $ | 7846 | $Id: ChangeLog,v 1.1923 2002/03/17 22:05:24 tim Exp $ |
diff --git a/contrib/aix/buildbff.sh b/contrib/aix/buildbff.sh index 6c7aaf454..409588484 100755 --- a/contrib/aix/buildbff.sh +++ b/contrib/aix/buildbff.sh | |||
@@ -11,21 +11,14 @@ | |||
11 | 11 | ||
12 | umask 022 | 12 | umask 022 |
13 | PKGNAME=openssh | 13 | PKGNAME=openssh |
14 | PKGDIR=package | ||
14 | 15 | ||
15 | PATH=$PATH:`pwd` # set path for external tools | 16 | PATH=`pwd`:$PATH # set path for external tools |
16 | export PATH | 17 | export PATH |
17 | 18 | ||
18 | ## Extract common info requires for the 'info' part of the package. | 19 | # Clean build directory |
19 | VERSION=`tail -1 ../../version.h | sed -e 's/.*_\([0-9]\)/\1/g' | sed 's/\"$//'` | ||
20 | BFFVERSION=`echo $VERSION | sed 's/p/./g'` | ||
21 | |||
22 | echo "Building BFF for $PKGNAME $VERSION (package version $BFFVERSION)" | ||
23 | PKGDIR=package | ||
24 | |||
25 | # Clean build directory and package file | ||
26 | rm -rf $PKGDIR | 20 | rm -rf $PKGDIR |
27 | mkdir $PKGDIR | 21 | mkdir $PKGDIR |
28 | rm -f $PKGNAME-$VERSION.bff | ||
29 | 22 | ||
30 | if [ ! -f ../../Makefile ] | 23 | if [ ! -f ../../Makefile ] |
31 | then | 24 | then |
@@ -40,6 +33,29 @@ FAKE_ROOT=$START/$PKGDIR | |||
40 | cd ../.. | 33 | cd ../.. |
41 | make install-nokeys DESTDIR=$FAKE_ROOT | 34 | make install-nokeys DESTDIR=$FAKE_ROOT |
42 | 35 | ||
36 | if [ $? -gt 0 ] | ||
37 | then | ||
38 | echo "Fake root install failed, stopping." | ||
39 | exit 1 | ||
40 | fi | ||
41 | |||
42 | # | ||
43 | # Extract common info requires for the 'info' part of the package. | ||
44 | # AIX requires 4-part version numbers | ||
45 | # | ||
46 | VERSION=`./ssh -V 2>&1 | sed -e 's/,.*//' | cut -f 2 -d _` | ||
47 | MAJOR=`echo $VERSION | cut -f 1 -d p | cut -f 1 -d .` | ||
48 | MINOR=`echo $VERSION | cut -f 1 -d p | cut -f 2 -d .` | ||
49 | PATCH=`echo $VERSION | cut -f 1 -d p | cut -f 3 -d .` | ||
50 | PORTABLE=`echo $VERSION | cut -f 2 -d p` | ||
51 | if [ "$PATCH" = "" ] | ||
52 | then | ||
53 | PATCH=0 | ||
54 | fi | ||
55 | BFFVERSION=`printf "%d.%d.%d.%d" $MAJOR $MINOR $PATCH $PORTABLE` | ||
56 | |||
57 | echo "Building BFF for $PKGNAME $VERSION (package version $BFFVERSION)" | ||
58 | |||
43 | # | 59 | # |
44 | # Fill in some details, like prefix and sysconfdir | 60 | # Fill in some details, like prefix and sysconfdir |
45 | # the eval also expands variables like sysconfdir=${prefix}/etc | 61 | # the eval also expands variables like sysconfdir=${prefix}/etc |
@@ -175,6 +191,7 @@ mv ../lpp_name . | |||
175 | # file list on the fly and feed it to backup using -i | 191 | # file list on the fly and feed it to backup using -i |
176 | # | 192 | # |
177 | echo Creating $PKGNAME-$VERSION.bff with backup... | 193 | echo Creating $PKGNAME-$VERSION.bff with backup... |
194 | rm -f $PKGNAME-$VERSION.bff | ||
178 | ( | 195 | ( |
179 | echo "./lpp_name" | 196 | echo "./lpp_name" |
180 | find . ! -name lpp_name -a ! -name . -print | 197 | find . ! -name lpp_name -a ! -name . -print |
diff --git a/contrib/aix/inventory.sh b/contrib/aix/inventory.sh index aa44ab9d4..78df0d16e 100755 --- a/contrib/aix/inventory.sh +++ b/contrib/aix/inventory.sh | |||
@@ -52,7 +52,7 @@ find . ! -name . -print | perl -ne '{ | |||
52 | } elsif ( -f $_ ) { | 52 | } elsif ( -f $_ ) { |
53 | # Entry is File | 53 | # Entry is File |
54 | print "\ttype=FILE\n"; | 54 | print "\ttype=FILE\n"; |
55 | print "\tsize=VOLATILE\n"; | 55 | print "\tsize=$sz\n"; |
56 | print "\tchecksum=VOLATILE\n"; | 56 | print "\tchecksum=VOLATILE\n"; |
57 | } elsif ( -d $_ ) { | 57 | } elsif ( -d $_ ) { |
58 | # Entry is Directory | 58 | # Entry is Directory |
diff --git a/contrib/solaris/buildpkg.sh b/contrib/solaris/buildpkg.sh index 20f8544aa..1be6ed8d1 100755 --- a/contrib/solaris/buildpkg.sh +++ b/contrib/solaris/buildpkg.sh | |||
@@ -29,6 +29,7 @@ SYSTEM_DIR="/etc \ | |||
29 | /etc/rc0.d \ | 29 | /etc/rc0.d \ |
30 | /etc/rc1.d \ | 30 | /etc/rc1.d \ |
31 | /etc/rc2.d \ | 31 | /etc/rc2.d \ |
32 | /etc/opt \ | ||
32 | /opt \ | 33 | /opt \ |
33 | /opt/bin \ | 34 | /opt/bin \ |
34 | /usr \ | 35 | /usr \ |
@@ -49,6 +50,7 @@ SYSTEM_DIR="/etc \ | |||
49 | /usr/local/sbin \ | 50 | /usr/local/sbin \ |
50 | /usr/local/share \ | 51 | /usr/local/share \ |
51 | /var \ | 52 | /var \ |
53 | /var/opt \ | ||
52 | /var/run \ | 54 | /var/run \ |
53 | /var/tmp \ | 55 | /var/tmp \ |
54 | /tmp" | 56 | /tmp" |
@@ -201,6 +203,9 @@ installf ${PKGNAME} $TEST_DIR/etc/rcS.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d | |||
201 | installf ${PKGNAME} $TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l | 203 | installf ${PKGNAME} $TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l |
202 | fi | 204 | fi |
203 | 205 | ||
206 | # If piddir doesn't exist we add it. (Ie. --with-pid-dir=/var/opt/ssh) | ||
207 | [ -d $piddir ] || installf ${PKGNAME} $TEST_DIR$piddir d 755 root sys | ||
208 | |||
204 | installf -f ${PKGNAME} | 209 | installf -f ${PKGNAME} |
205 | 210 | ||
206 | [ "\${POST_INS_START}" = "yes" ] && ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} start | 211 | [ "\${POST_INS_START}" = "yes" ] && ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} start |