Skip to content

Commit dc137d1

Browse files
committedJan 5, 2012
remove unneeded stuff
1 parent 8d56ac9 commit dc137d1

File tree

2 files changed

+13
-132
lines changed

2 files changed

+13
-132
lines changed
 

‎build.sh

+13-31
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ cat <<_WREHELP
2727
--nginx compiles and installs nginx
2828
--imagemagick compiles and installs image magick
2929
--perlmodules installs perl modules from cpan
30-
--awstats installs awstats
3130
--wre installs WebGUI Runtime Environment scripts and API
3231
3332
_WREHELP
@@ -44,45 +43,40 @@ do
4443
case "$opt" in
4544

4645
--clean)
47-
export WRE_CLEAN=1
46+
WRE_CLEAN=1
4847
;;
4948

5049
--all)
51-
export WRE_BUILD_UTILS=1
52-
export WRE_BUILD_PERL=1
53-
export WRE_BUILD_NGINX=1
54-
export WRE_BUILD_IMAGEMAGICK=1
55-
export WRE_BUILD_AWSTATS=1
56-
export WRE_BUILD_WRE=1
57-
export WRE_BUILD_PM=1
50+
WRE_BUILD_UTILS=1
51+
WRE_BUILD_PERL=1
52+
WRE_BUILD_NGINX=1
53+
WRE_BUILD_IMAGEMAGICK=1
54+
WRE_BUILD_WRE=1
55+
WRE_BUILD_PM=1
5856
;;
5957

6058
--utils | --utilities)
61-
export WRE_BUILD_UTILS=1
59+
WRE_BUILD_UTILS=1
6260
;;
6361

6462
--perl)
65-
export WRE_BUILD_PERL=1
63+
WRE_BUILD_PERL=1
6664
;;
6765

6866
--nginx)
69-
export WRE_BUILD_NGINX=1
67+
WRE_BUILD_NGINX=1
7068
;;
7169

7270
--imageMagick | --imagemagick)
73-
export WRE_BUILD_IMAGEMAGICK=1
74-
;;
75-
76-
--awstats)
77-
export WRE_BUILD_AWSTATS=1
71+
WRE_BUILD_IMAGEMAGICK=1
7872
;;
7973

8074
--wre)
81-
export WRE_BUILD_WRE=1
75+
WRE_BUILD_WRE=1
8276
;;
8377

8478
--perlModules | --perlmodules | --pm)
85-
export WRE_BUILD_PM=1
79+
WRE_BUILD_PM=1
8680
;;
8781

8882
--help | -help | -h | -? | ?)
@@ -396,15 +390,6 @@ installPerlModules () {
396390
cd $WRE_BUILDDIR
397391
}
398392

399-
400-
401-
402-
#awstats
403-
installAwStats(){
404-
printHeader "AWStats"
405-
cp -RL source/awstats-7.0/* $PREFIX
406-
}
407-
408393
#wre utils
409394
installWreUtils(){
410395
printHeader "WebGUI Runtime Environment Core and Utilities"
@@ -445,9 +430,6 @@ fi
445430
if [ "$WRE_BUILD_PM" == 1 ]; then
446431
installPerlModules
447432
fi
448-
if [ "$WRE_BUILD_AWSTATS" == 1 ]; then
449-
installAwStats
450-
fi
451433
if [ "$WRE_BUILD_WRE" == 1 ]; then
452434
installWreUtils
453435
fi

‎getsource.sh

-101
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,13 @@ cd source
1010
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.20.tar.gz
1111
tar xfz pcre-8.20.tar.gz
1212

13-
#wget http://openssl.org/source/openssl-1.0.0e.tar.gz
14-
#tar xfz openssl-1.0.0e.tar.gz
15-
1613
wget http://nginx.org/download/nginx-1.0.11.tar.gz
1714
tar xfz nginx-1.0.11.tar.gz
1815

19-
#wget http://www.monkey.org/~provos/libevent-1.4.14b-stable.tar.gz
20-
#tar xfz libevent-1.4.14b-stable.tar.gz
21-
22-
#wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
23-
#tar xfz memcached-1.4.5.tar.gz
24-
25-
# ncurses http://www.gnu.org/software/ncurses/
26-
#wget -t 4 -nv http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.7.tar.gz
27-
#tar xfz ncurses-5.7.tar.gz
28-
29-
# readline http://tiswww.case.edu/php/chet/readline/rltop.html
30-
#wget -t 4 -nv ftp://ftp.cwru.edu/pub/bash/readline-6.1.tar.gz
31-
#tar xfz readline-6.1.tar.gz
32-
33-
# tiff for image magick http://www.libtiff.org/
34-
#wget -t 4 -nv ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz
35-
#tar xfz tiff-3.8.2.tar.gz
36-
3716
# imagemagick http://www.imagemagick.org/script/index.php
3817
wget -t 4 -nv ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
3918
tar zxf ImageMagick.tar.gz
4019

41-
# image magick color profile
42-
#wget -t 4 -nv http://www.imagemagick.org/source/colors.xml
43-
4420
# aspell dictionary http://aspell.net/
4521
wget -t 4 -nv ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.6.tar.gz
4622
tar zxf aspell-0.60.6.tar.gz
@@ -49,51 +25,18 @@ tar zxf aspell-0.60.6.tar.gz
4925
wget -t 4 -nv ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-6.0-0.tar.bz2
5026
tar jxf aspell6-en-6.0-0.tar.bz2
5127

52-
# awstats http://awstats.sourceforge.net/
53-
wget -t 4 -nv http://surfnet.dl.sourceforge.net/sourceforge/awstats/awstats-7.0.tar.gz
54-
tar zxf awstats-7.0.tar.gz
55-
cd awstats-7.0/wwwroot
56-
mv cgi-bin/* ./
57-
perl -ni -e 'print unless /^\s*if . !\$FileConfig/ .. /^\s+}/; print $_.qq/\t\terror("Could not open config file");\n\t}\n/ if /^\s*if . !\$FileConfig/;' awstats.pl
58-
perl -0777 -pi -e 's!else\s*{\s+\@PossibleConfigDir\s+=\s+.+?\);!else {\n\t\t\@PossibleConfigDir = ("\$DIR", "/data/wre/etc");!ms;' awstats.pl
59-
cd ../..
60-
6128
# catdoc .doc and .xls converter http://vitus.wagner.pp.ru/software/catdoc/
6229
wget -t 4 -nv http://ftp.wagner.pp.ru/pub/catdoc/catdoc-0.94.2.tar.gz
6330
tar zxf catdoc-0.94.2.tar.gz
6431

65-
# expat xml parser http://expat.sourceforge.net/
66-
#wget -t 4 -nv http://surfnet.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz
67-
#tar zxf expat-2.0.1.tar.gz
68-
6932
# freetype portable font engine http://freetype.sourceforge.net/index2.html
7033
wget -t 4 -nv http://download.savannah.gnu.org/releases/freetype/freetype-2.4.8.tar.gz
7134
tar zxf freetype-2.4.8.tar.gz
7235

73-
# gnutls transport layer security http://www.gnu.org/software/gnutls/
74-
#wget -t 4 -nv ftp://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.5.tar.bz2
75-
#tar jxf gnutls-2.8.5.tar.bz2
76-
77-
# httpd apache webserver http://httpd.apache.org/
78-
#wget -t 4 -nv http://www.apache.org/dist/httpd/httpd-2.2.20.tar.gz
79-
#tar zxf httpd-2.2.20.tar.gz
80-
81-
# lftp sophisticated ftp client http://lftp.yar.ru/
82-
#wget -t 4 -nv http://ftp.yars.free.net/pub/source/lftp/old/lftp-4.3.3.tar.gz
83-
#tar zxf lftp-4.3.3.tar.gz
84-
85-
# libiconv unicode conversion tool http://www.gnu.org/software/libiconv/
86-
#wget -t 4 -nv http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.tar.gz
87-
#tar zxf libiconv-1.13.tar.gz
88-
8936
# libjpeg image manipulation http://www.ijg.org/
9037
wget http://www.ijg.org/files/jpegsrc.v8c.tar.gz
9138
tar xfz jpegsrc.v8c.tar.gz
9239

93-
# lcms color management http://www.littlecms.com/
94-
#wget -t 4 -nv http://sourceforge.net/projects/lcms/files/lcms/1.19/lcms-1.19.tar.gz/download
95-
#tar zxf lcms-1.19.tar.gz
96-
#.3
9740
# graphviz graph generator http://www.graphviz.org/
9841
wget -t 4 -nv http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.24.0.tar.gz
9942
tar xfz graphviz-2.24.0.tar.gz
@@ -102,63 +45,19 @@ tar xfz graphviz-2.24.0.tar.gz
10245
wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.5.7.tar.gz
10346
tar xfz libpng-1.5.7.tar.gz
10447

105-
# gnu libtool http://www.gnu.org/software/libtool/
106-
#wget -t 4 -nv http://ftp.gnu.org/gnu/libtool/libtool-2.2.6a.tar.gz
107-
#tar zxf libtool-2.2.6a.tar.gz
108-
10948
# libgif image manipulation http://sourceforge.net/projects/giflib/
11049
wget -t 4 -nv http://surfnet.dl.sourceforge.net/sourceforge/giflib/giflib-4.1.6.tar.bz2
11150
tar jxf giflib-4.1.6.tar.bz2
11251

113-
# libgcrypt crypt library http://www.gnupg.org/download/
114-
#wget -t 4 -nv ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.4.6.tar.bz2
115-
#tar jxf libgcrypt-1.4.6.tar.bz2
116-
117-
# libgpg-error error messages http://www.gnupg.org/download/
118-
#wget -t 4 -nv ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.7.tar.bz2
119-
#tar jxf libgpg-error-1.7.tar.bz2
120-
12152
# libxml2 xml c parser http://www.xmlsoft.org/
12253
wget ftp://anonymous@xmlsoft.org/libxml2/libxml2-sources-2.7.7.tar.gz
12354
tar xfz libxml2-sources-2.7.7.tar.gz
12455

125-
126-
# modperl apache perl module http://perl.apache.org
127-
#wget -t 4 -nv http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz
128-
#tar zxf mod_perl-2.0-current.tar.gz
129-
130-
# mysql database server http://dev.mysql.com/downloads/mysql/5.0.html
131-
#wget -t 4 -nv http://downloads.mysql.com/archives/mysql-5.0/mysql-5.0.89.tar.gz
132-
#tar zxf mysql-5.0.89.tar.gz
133-
13456
# perl programming language http://www.cpan.org/src/README.html
13557
wget -t 4 -nv http://www.cpan.org/src/perl-5.14.2.tar.gz
13658
tar zxf perl-5.14.2.tar.gz
13759

138-
# perlmodules
139-
# SEE SEPARATE SCRIPT
140-
14160
# xpdf pdf generator http://www.foolabs.com/xpdf/download.html
14261
wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz
14362
tar xfz xpdf-3.03.tar.gz
14463

145-
# zlib compression library http://www.zlib.net/
146-
#wget -t 4 -nv http://surfnet.dl.sourceforge.net/sourceforge/libpng/zlib-1.2.3.tar.bz2
147-
#tar jxf zlib-1.2.3.tar.bz2
148-
149-
# rsync http://www.samba.org/rsync/download.html
150-
#wget -t 4 -nv http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz
151-
#tar xfz rsync-3.0.6.tar.gz
152-
153-
# git http://git-scm.com/download
154-
#wget -t 4 -nv http://kernel.org/pub/software/scm/git/git-1.7.6.tar.bz2
155-
#tar jxf git-1.7.6.tar.bz2
156-
157-
# http://curl.haxx.se/
158-
#wget -t 4 -nv http://curl.haxx.se/download/curl-7.19.7.tar.bz2
159-
#tar jxf curl-7.19.7.tar.bz2
160-
161-
#rm -f *.gz *.tgz *.bz2 *.zip
162-
163-
164-

0 commit comments

Comments
 (0)
Please sign in to comment.