Skip to content
Permalink
Browse files

Add experimental build support for HandlerSocket

  • Loading branch information...
root
root committed Jun 25, 2012
1 parent 9598af7 commit 5697742c35e68c438a44c49e0c8a40bc7c479e33
Showing with 30 additions and 1 deletion.
  1. +23 −1 build.sh
  2. +7 −0 getsource.sh
@@ -31,6 +31,7 @@ cat <<_WREHELP
--mysql compiles and installs mysql
--imagemagick compiles and installs image magick
--perlmodules installs perl modules from cpan
--handlersocket compiles and installs HandlerSocket plugin and perl modules
--awstats installs awstats
--wre installs WebGUI Runtime Environment scripts and API
@@ -64,6 +65,7 @@ do
export WRE_BUILD_AWSTATS=1
export WRE_BUILD_WRE=1
export WRE_BUILD_PM=1
export WRE_BUILD_HS=1
;;

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

--help | -help | -h | -? | ?)
--handlersocket | --handlerSocket | --hs)
export WRE_BUILD_HS=1
;;

--help | -help | -h | -? | ?)
wrehelp
exit 0
;;
@@ -825,6 +831,19 @@ CFLAGS=$SAVED_CFLAGS
cd $WRE_BUILDDIR
}

# perl
buildHandlerSocket(){
printHeader "HandlerSocket"
cd source/Handlersocket-Plugin-for-MySQL
./autogen.sh
./configure --with-mysql-source=../mysql-5.1.62 \
--with-mysql-bindir=$PREFIX/bin \
--with-mysql-plugindir=$PREFIX/lib/mysql/plugin
$WRE_MAKE; checkError $? "HandlerSocket make"
$WRE_MAKE install; checkError $? "HandlerSocket make install"
cd $WRE_BUILDDIR
}


#awstats
installAwStats(){
@@ -881,6 +900,9 @@ fi
if [ "$WRE_BUILD_AWSTATS" == 1 ]; then
installAwStats
fi
if [ "$WRE_BUILD_HS" == 1 ]; then
buildHandlerSocket
fi
if [ "$WRE_BUILD_WRE" == 1 ]; then
installWreUtils
fi
@@ -174,6 +174,13 @@ tar zxf git-1.7.10.1.tar.gz
wget -t 4 -nv http://curl.haxx.se/download/curl-7.25.0.tar.bz2
tar jxf curl-7.25.0.tar.bz2

# Handler Socket
wget -t 4 -nv https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/zipball/master
mv master master.zip
unzip master.zip;
mv ahiguti-HandlerSocket-Plugin-for-MySQL-??????? HandlerSocket-Plugin-for-MySQL

##Clean up downloaded files
rm -f *.gz *.tgz *.bz2 *.zip


0 comments on commit 5697742

Please sign in to comment.
You can’t perform that action at this time.