Last change
on this file since 14 was
6,
checked in by guillaume, 17 years ago
|
Publication tt-ttols v0.1
Des outils pour le TwinTact
|
-
Property svn:executable set to
*
|
File size:
921 bytes
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | SSH_PORT=2222 |
---|
4 | |
---|
5 | MAKE_FLAGS="-DTWINTACT" |
---|
6 | [ -n "${SSH_PORT}" ] && MAKE_FLAGS="${MAKE_FLAGS} -D'DROPBEAR_DEFPORT=\"${SSH_PORT}\"'" |
---|
7 | [ "$1" == 'trace' ] && MAKE_FLAGS="${MAKE_FLAGS} -DDEBUG_TRACE" |
---|
8 | |
---|
9 | source versions.sh |
---|
10 | source environnement-de-cross-compilation.sh |
---|
11 | |
---|
12 | cd ${DROPBEAR_BAS}-tt |
---|
13 | |
---|
14 | # Configurer dropbear si le Makefile n'y est pas |
---|
15 | if [ ! -e Makefile -o "$1" == 'trace' ]; then |
---|
16 | ./configure --host=$PLATEFORME \ |
---|
17 | --disable-shadow --disable-lastlog --disable-utmp --disable-utmpx \ |
---|
18 | --disable-wtmp --disable-wtmpx --disable-pam --disable-zlib \ |
---|
19 | --sysconfdir=/usr/share/config |
---|
20 | |
---|
21 | make clean |
---|
22 | fi |
---|
23 | |
---|
24 | # Compiler dropbear en statique et en mode multi |
---|
25 | make strip PROGRAMS="dropbear dbclient dropbearkey scp" MULTI=1 STATIC=1 SCPPROGRESS=0 \ |
---|
26 | CPPFLAGS="${MAKE_FLAGS}" |
---|
27 | |
---|
28 | # Utiliser upx pour compresser le binaire si disponible |
---|
29 | [ -e dropbearmulti -a "$1" != 'trace' ] && upx --version >/dev/null 2>&1 && upx dropbearmulti |
---|
Note: See
TracBrowser
for help on using the repository browser.