ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/mkdistro
Revision: 1.8
Committed: Fri Mar 18 01:53:05 2005 UTC (19 years, 1 month ago) by pcg
Branch: MAIN
CVS Tags: rel-1_9, rel-1_8, rel-2_01, rel-3_0, rel-2_2, rel-2_0, rel-2_21, rel-2_22, rel-2_25, HEAD
Changes since 1.7: +17 -17 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #!/bin/bash
2
3 TARGET="dist-$1"
4
5 autoconf
6 autoheader
7 automake
8 #./configure
9
10 CONFIGURE="--prefix=/opt/gvpe --sysconfdir=/etc --localstatedir=/var --enable-tcp --enable-http-proxy"
11
12 eval $(grep VERSION= configure)
13
14 mkdir -p $TARGET
15
16 BASE=/tmp
17 MAKE=make
18 ARCH="$1"
19
20 case "$ARCH" in
21 gnu-linux )
22 HOST=root@localhost
23 CONFIGURE="$CONFIGURE --enable-icmp"
24 ;;
25 freebsd )
26 HOST=root@192.168.108.6
27 CONFIGURE="$CONFIGURE --enable-icmp"
28 MAKE=gmake
29 ARCH="$ARCH-x86"
30 ;;
31 openbsd )
32 HOST=root@192.168.108.7
33 CONFIGURE="$CONFIGURE --enable-icmp"
34 ARCH="$ARCH-x86"
35 ;;
36 netbsd )
37 HOST=root@192.168.108.5
38 CONFIGURE="$CONFIGURE --enable-icmp --with-openssl-include=/usr/local/ssl/include --with-openssl-lib=/usr/local/ssl/lib"
39 ARCH="$ARCH-x86"
40 ;;
41 darwin )
42 HOST=root@imac.laendle
43 BASE=/Users/schmorp
44 CONFIGURE="$CONFIGURE --enable-icmp --with-openssl-include=$BASE/include --with-libintl-prefix=/sw"
45 MAKE="make LIBS='$BASE/lib/libcrypto.a -L/sw/lib -lintl'"
46 ARCH="$ARCH-x86"
47 ;;
48 cygwin )
49 HOST=vm
50 CONFIGURE="$CONFIGURE --enable-icmp"
51 ;;
52 * )
53 exit 1
54 ;;
55 esac
56
57 make distdir="$TARGET/gvpe" distdir
58 rsync -avzPessh $TARGET/gvpe $HOST:$BASE/. --delete
59 rm -rf $TARGET/gvpe
60
61 echo "$CONFIGURE" >$TARGET/configure
62
63 ssh $HOST "
64 set -x
65 cd $BASE/gvpe || exit 1;
66 ./configure $CONFIGURE || exit 2;
67 rm -rf $BASE/dist;
68 $MAKE all || exit 3;
69 $MAKE prefix=$BASE/dist install || exit 4;
70 strip $BASE/dist/sbin/gvpe $BASE/dist/bin/gvpectrl;
71 strip $BASE/dist/sbin/gvpe.exe $BASE/dist/bin/gvpectrl.exe;
72 echo gvpectrl;
73 ldd $BASE/dist/bin/gvpectrl;
74 echo gvpe;
75 ldd $BASE/dist/sbin/gvpe;
76 uname -a
77 true;
78 " 2>&1 | tee $TARGET/buildlog || exit 1
79
80 mkdir -p $TARGET/opt
81 rsync -avzPessh $HOST:$BASE/dist/. $TARGET/opt/. --delete
82 (
83 cd $TARGET || exit 99
84 mkdir opt/doc
85 mkdir opt/doc/gvpe
86 mv buildlog opt/doc/gvpe/README.buildlog
87 mv configure opt/doc/gvpe/README.configure
88 chmod u=rwX,go=rX -R opt
89 )
90
91 mkdir -p bindist
92 tar cCf $TARGET - . | gzip -9 >bindist/gvpe-$VERSION-$ARCH.tar.gz
93 rm -rf $TARGET
94