Skip to content

Commit 5697742

Browse files
author
root
committedJun 25, 2012
Add experimental build support for HandlerSocket
1 parent 9598af7 commit 5697742

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
 

‎build.sh

+23-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ cat <<_WREHELP
3131
--mysql compiles and installs mysql
3232
--imagemagick compiles and installs image magick
3333
--perlmodules installs perl modules from cpan
34+
--handlersocket compiles and installs HandlerSocket plugin and perl modules
3435
--awstats installs awstats
3536
--wre installs WebGUI Runtime Environment scripts and API
3637
@@ -64,6 +65,7 @@ do
6465
export WRE_BUILD_AWSTATS=1
6566
export WRE_BUILD_WRE=1
6667
export WRE_BUILD_PM=1
68+
export WRE_BUILD_HS=1
6769
;;
6870

6971
--utils | --utilities)
@@ -105,7 +107,11 @@ do
105107
export WRE_BUILD_PM=1
106108
;;
107109

108-
--help | -help | -h | -? | ?)
110+
--handlersocket | --handlerSocket | --hs)
111+
export WRE_BUILD_HS=1
112+
;;
113+
114+
--help | -help | -h | -? | ?)
109115
wrehelp
110116
exit 0
111117
;;
@@ -825,6 +831,19 @@ CFLAGS=$SAVED_CFLAGS
825831
cd $WRE_BUILDDIR
826832
}
827833

834+
# perl
835+
buildHandlerSocket(){
836+
printHeader "HandlerSocket"
837+
cd source/Handlersocket-Plugin-for-MySQL
838+
./autogen.sh
839+
./configure --with-mysql-source=../mysql-5.1.62 \
840+
--with-mysql-bindir=$PREFIX/bin \
841+
--with-mysql-plugindir=$PREFIX/lib/mysql/plugin
842+
$WRE_MAKE; checkError $? "HandlerSocket make"
843+
$WRE_MAKE install; checkError $? "HandlerSocket make install"
844+
cd $WRE_BUILDDIR
845+
}
846+
828847

829848
#awstats
830849
installAwStats(){
@@ -881,6 +900,9 @@ fi
881900
if [ "$WRE_BUILD_AWSTATS" == 1 ]; then
882901
installAwStats
883902
fi
903+
if [ "$WRE_BUILD_HS" == 1 ]; then
904+
buildHandlerSocket
905+
fi
884906
if [ "$WRE_BUILD_WRE" == 1 ]; then
885907
installWreUtils
886908
fi

‎getsource.sh

+7
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ tar zxf git-1.7.10.1.tar.gz
174174
wget -t 4 -nv http://curl.haxx.se/download/curl-7.25.0.tar.bz2
175175
tar jxf curl-7.25.0.tar.bz2
176176

177+
# Handler Socket
178+
wget -t 4 -nv https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/zipball/master
179+
mv master master.zip
180+
unzip master.zip;
181+
mv ahiguti-HandlerSocket-Plugin-for-MySQL-??????? HandlerSocket-Plugin-for-MySQL
182+
183+
##Clean up downloaded files
177184
rm -f *.gz *.tgz *.bz2 *.zip
178185

179186

0 commit comments

Comments
 (0)
Please sign in to comment.