修訂 | bb58d96100a381eb962dd73c0cb21246e2d9b20a (tree) |
---|---|
時間 | 2012-04-01 10:18:54 |
作者 | matsuand <matsuand@user...> |
Commiter | matsuand |
[BLFS] Renamed subversion-related.
@@ -0,0 +1,68 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +VER=1.7.4 | |
4 | +TARGET=subversion-$VER | |
5 | +TARGETBALL=$TARGET.tar.bz2 | |
6 | +TARGETDIR=$TARGET | |
7 | + | |
8 | +echo Building $TARGET | |
9 | + | |
10 | +. ./_blfsset.sh | |
11 | + | |
12 | +echo Check Required... | |
13 | +./_checkRequired.sh sqlite swig neon python || exit 1 | |
14 | +if test "$1" == "check"; then | |
15 | + exit 0 | |
16 | +fi | |
17 | + | |
18 | +echo Check Options... | |
19 | +. ./_checkOptions.sh httpd | |
20 | + | |
21 | +if [ ${OPTION_httpd} -eq "1" ]; then | |
22 | + export WITHHTTPD="--with-apr=/usr --with-apr-util=/usr --with-apr-memcache=/usr " | |
23 | +else | |
24 | + export WITHHTTPD="" | |
25 | + ./_checkRequired.sh apr apr-util || exit 1 | |
26 | +fi | |
27 | + | |
28 | +cd $SRC | |
29 | + | |
30 | +echo $TARGET | |
31 | + | |
32 | +echo \ \ Removing old directory... | |
33 | +rm -fr $TARGETDIR | |
34 | + | |
35 | +. $WRK/_extract.sh | |
36 | + | |
37 | +cd $TARGETDIR | |
38 | + | |
39 | +#sed -i 's/version" !=/version" </' \ | |
40 | +# build/ac-macros/berkeley-db.m4 && | |
41 | +#autoconf | |
42 | + | |
43 | +echo \ \ Configuring... | |
44 | +./configure --prefix=/usr \ | |
45 | + $WITHHTTPD \ | |
46 | + 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1 | |
47 | + | |
48 | +echo \ \ Making... | |
49 | +make \ | |
50 | + 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1 | |
51 | + | |
52 | +echo \ \ Making swig-py... | |
53 | +make swig-py \ | |
54 | + 1> $LOG/$TARGET.3_make.log 2>&1 || exit 1 | |
55 | + | |
56 | +echo \ \ Installing... | |
57 | +paco -p $TARGET 'make install' \ | |
58 | + 1> $LOG/$TARGET.4_install.log 2>&1 || exit 1 | |
59 | + | |
60 | +echo \ \ Installing swig-py... | |
61 | +paco -p+ $TARGET 'make install-swig-py' \ | |
62 | + 1> $LOG/$TARGET.4_install.log 2>&1 || exit 1 | |
63 | + | |
64 | +echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none | |
65 | + | |
66 | +echo \ \ Removing directory... | |
67 | +cd .. && rm -fr $TARGETDIR | |
68 | + |
@@ -0,0 +1,61 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +VER=1.7.4 | |
4 | +TARGET=subversion-$VER | |
5 | +TARGETBALL=$TARGET.tar.bz2 | |
6 | +TARGETDIR=$TARGET | |
7 | + | |
8 | +echo Building $TARGET | |
9 | + | |
10 | +. ./_blfsset.sh | |
11 | + | |
12 | +echo Check Required... | |
13 | +./_checkRequired.sh sqlite apr apr-util || exit 1 | |
14 | +if test "$1" == "check"; then | |
15 | + exit 0 | |
16 | +fi | |
17 | + | |
18 | +echo Check Options... | |
19 | +. ./_checkOptions.sh python cyrus-sasl jdk neon serf | |
20 | + | |
21 | +if [ ${OPTION_cyrussasl} -eq "1" ]; then | |
22 | + export WITHSASL="--with-sasl=/usr " | |
23 | +else | |
24 | + export WITHSASL="" | |
25 | +fi | |
26 | + | |
27 | +cd $SRC | |
28 | + | |
29 | +echo $TARGET | |
30 | + | |
31 | +echo \ \ Removing old directory... | |
32 | +rm -fr $TARGETDIR | |
33 | + | |
34 | +. $WRK/_extract.sh | |
35 | + | |
36 | +cd $TARGETDIR | |
37 | + | |
38 | +sed -i 's/version" !=/version" </' \ | |
39 | + build/ac-macros/berkeley-db.m4 && | |
40 | +autoconf | |
41 | + | |
42 | +echo \ \ Configuring... | |
43 | +./configure --prefix=/usr \ | |
44 | + --with-apr=/usr \ | |
45 | + --with-apr-util=/usr \ | |
46 | + $WITHSASL \ | |
47 | + 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1 | |
48 | + | |
49 | +echo \ \ Making... | |
50 | +make \ | |
51 | + 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1 | |
52 | + | |
53 | +echo \ \ Installing... | |
54 | +paco -p $TARGET 'make install' \ | |
55 | + 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
56 | + | |
57 | +echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none | |
58 | + | |
59 | +echo \ \ Removing directory... | |
60 | +cd .. && rm -fr $TARGETDIR | |
61 | + |