Revision | a5f7bca26ff7f12463cae4893b9661984d51e66d (tree) |
---|---|
Time | 2012-02-25 22:26:56 |
Author | matsuand <matsuand@user...> |
Commiter | matsuand |
Added openssl.sh.
@@ -0,0 +1,57 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +. ./_blfsset.sh | |
4 | + | |
5 | +VER=1.0.0e | |
6 | +TARGET=openssl-$VER | |
7 | +TARGETBALL=$TARGET.tar.gz | |
8 | +TARGETDIR=$TARGET | |
9 | + | |
10 | +echo $TARGET | |
11 | + | |
12 | +cd $SRC | |
13 | + | |
14 | +echo \ \ Removing old directory... | |
15 | +rm -fr $TARGETDIR | |
16 | + | |
17 | +echo \ \ Extracting sources... | |
18 | +if ! test -f $DLD/$TARGETBALL; then | |
19 | + echo \ \ Tarball not found: $TARGETBALL && exit 1 | |
20 | +else | |
21 | + tar xf $DLD/$TARGETBALL | |
22 | +fi | |
23 | + | |
24 | +cd $TARGETDIR | |
25 | + | |
26 | +echo \ \ Patching... | |
27 | +patch -Np1 -i $DLD/openssl-$VER-fix_manpages-1.patch \ | |
28 | + 1> $LOG/$TARGET.1_patch.log 2>&1 || exit 1 | |
29 | + | |
30 | +echo \ \ Configuring... | |
31 | +./config --prefix=/usr \ | |
32 | + --openssldir=/etc/ssl \ | |
33 | + shared \ | |
34 | + zlib-dynamic \ | |
35 | + 1> $LOG/$TARGET.2_conf.log 2>&1 || exit 1 | |
36 | + | |
37 | +echo \ \ Making... | |
38 | +make \ | |
39 | + 1> $LOG/$TARGET.3_make.log 2>&1 || exit 1 | |
40 | + | |
41 | +echo \ \ Installing... | |
42 | +paco -p $TARGET "make MANDIR=/usr/share/man install" \ | |
43 | + 1> $LOG/$TARGET.4_install.log 2>&1 || exit 1 | |
44 | + | |
45 | +echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none | |
46 | + | |
47 | +paco -p+ $TARGET "install -v -d -m755 /usr/share/doc/openssl-$VER" | |
48 | + | |
49 | +paco -p+ $TARGET "cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \ | |
50 | + /usr/share/doc/openssl-$VER" \ | |
51 | + 1>> $LOG/$TARGET.4_install.log 2>&1 || exit 1 | |
52 | + | |
53 | +echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none | |
54 | + | |
55 | +echo \ \ Removing directory... | |
56 | +cd .. && rm -fr $TARGETDIR | |
57 | + |