Installing Wt on Slackware
Version 2 (Pieter Libin, 10/29/2009 02:07 pm)
| 1 | 1 | h1. Installing Wt on Slackware |
|
|---|---|---|---|
| 2 | 1 | ||
| 3 | 1 | {{toc}} |
|
| 4 | 1 | ||
| 5 | 1 | By Miguel Suarez Xavier Penteado miguel_penteado@fca.unesp.br |
|
| 6 | 1 | ||
| 7 | 1 | (sorry by poor english) |
|
| 8 | 1 | ||
| 9 | 1 | In slackware 12 we have not in default installation |
|
| 10 | 1 | # boost library |
|
| 11 | 1 | # asio library _*' --(no asio stand alone and no boost asio)-- |
|
| 12 | 1 | # mxml |
|
| 13 | 1 | # fastcgi lib |
|
| 14 | 1 | # fastcgi apache mod |
|
| 15 | 1 | # ICU |
|
| 16 | 1 | # mysql++ |
|
| 17 | 1 | # wt |
|
| 18 | 1 | ||
| 19 | 1 | Then, we need build each previous packages and install it before try compile witty. |
|
| 20 | 1 | ||
| 21 | 1 | Slackare 12 use slackbuilds to build packges, so we will put here the slackbuilds for packages above |
|
| 22 | 1 | ||
| 23 | 1 | *Remember all packets will be generated in /tmp directory* |
|
| 24 | 1 | ||
| 25 | 1 | ||
| 26 | 1 | h3. boost 1.34.1 Slackbuild |
|
| 27 | 1 | ||
| 28 | 1 | Before you ctr+c the follow *boost.Slackbuild*, you need to create the *patch* files used by script in same dir where you will save boost.Slackbuild. |
|
| 29 | 1 | ||
| 30 | 1 | *boost_bjam-gcc42_mod.patch* |
|
| 31 | 1 | ||
| 32 | 1 | ||
| 33 | 1 | <pre> |
|
| 34 | 1 | Index: tools/jam/src/build.sh |
|
| 35 | 1 | --- tools/jam/src/build.sh.orig 2006-02-03 17:57:42 +0100 |
|
| 36 | 1 | +++ tools/jam/src/build.sh 2007-06-17 13:54:31 +0200 |
|
| 37 | 1 | @@ -127,7 +127,7 @@ |
|
| 38 | 1 | ;; |
|
| 39 | 1 | ||
| 40 | 1 | gcc) |
|
| 41 | 1 | - BOOST_JAM_CC=gcc |
|
| 42 | 1 | + BOOST_JAM_CC="gcc -O0" |
|
| 43 | 1 | ;; |
|
| 44 | 1 | ||
| 45 | 1 | darwin) |
|
| 46 | 1 | Index: tools/jam/src/build.jam |
|
| 47 | 1 | --- tools/jam/src/build.jam.orig 2007-06-17 14:07:34 +0200 |
|
| 48 | 1 | +++ tools/jam/src/build.jam 2007-06-17 14:08:21 +0200 |
|
| 49 | 1 | @@ -153,7 +153,7 @@ |
|
| 50 | 1 | ## GCC 2.x, 3.x, 4.x |
|
| 51 | 1 | toolset gcc gcc : "-o " : -D |
|
| 52 | 1 | : -pedantic |
|
| 53 | 1 | - [ opt --release : [ opt --symbols : -g : -s ] -O3 ] |
|
| 54 | 1 | + [ opt --release : [ opt --symbols : -g : -s ] -O0 ] |
|
| 55 | 1 | [ opt --debug : -g -O0 -fno-inline ] |
|
| 56 | 1 | -I$(--python-include) -Wno-long-long |
|
| 57 | 1 | : -L$(--python-lib[1]) -l$(--python-lib[2]) ; |
|
| 58 | 1 | </pre> |
|
| 59 | 1 | ||
| 60 | 1 | ||
| 61 | 1 | ||
| 62 | 1 | *boost-configure.patch* |
|
| 63 | 1 | ||
| 64 | 1 | <pre> |
|
| 65 | 1 | *** configure.orig 2007-01-16 01:39:00.000000000 +0100 |
|
| 66 | 1 | --- configure 2007-01-19 03:53:08.000000000 +0100 |
|
| 67 | 1 | *************** |
|
| 68 | 1 | *** 9,15 **** |
|
| 69 | 1 | ||
| 70 | 1 | BJAM="" |
|
| 71 | 1 | TOOLSET="" |
|
| 72 | 1 | ! BJAM_CONFIG="" |
|
| 73 | 1 | BUILD="" |
|
| 74 | 1 | PREFIX=/usr/local |
|
| 75 | 1 | EPREFIX= |
|
| 76 | 1 | --- 9,15 ---- |
|
| 77 | 1 | ||
| 78 | 1 | BJAM="" |
|
| 79 | 1 | TOOLSET="" |
|
| 80 | 1 | ! BJAM_CONFIG="-d2 --layout=system variant=release debug-symbols=on" |
|
| 81 | 1 | BUILD="" |
|
| 82 | 1 | PREFIX=/usr/local |
|
| 83 | 1 | EPREFIX= |
|
| 84 | 1 | *************** INCLUDEDIR=$INCLUDEDIR |
|
| 85 | 1 | *** 325,332 **** |
|
| 86 | 1 | LIBS=$LIBS |
|
| 87 | 1 | ||
| 88 | 1 | all: .dummy |
|
| 89 | 1 | ! @echo "\$(BJAM) \$(BJAM_CONFIG) --user-config=user-config.jam \$(LIBS)" |
|
| 90 | 1 | ! @\$(BJAM) \$(BJAM_CONFIG) --user-config=user-config.jam \$(LIBS) || \\ |
|
| 91 | 1 | echo "Not all Boost libraries built properly." |
|
| 92 | 1 | ||
| 93 | 1 | clean: .dummy |
|
| 94 | 1 | --- 325,332 ---- |
|
| 95 | 1 | LIBS=$LIBS |
|
| 96 | 1 | ||
| 97 | 1 | all: .dummy |
|
| 98 | 1 | ! @echo "\$(BJAM) \$(BJAM_CONFIG) --user-config=user-config.jam \$(LIBS) stage" |
|
| 99 | 1 | ! @\$(BJAM) \$(BJAM_CONFIG) --user-config=user-config.jam \$(LIBS) stage || \\ |
|
| 100 | 1 | echo "Not all Boost libraries built properly." |
|
| 101 | 1 | ||
| 102 | 1 | clean: .dummy |
|
| 103 | 1 | ||
| 104 | 1 | </pre> |
|
| 105 | 1 | ||
| 106 | 1 | *boost-gcc-soname.patch* |
|
| 107 | 1 | ||
| 108 | 1 | <pre> |
|
| 109 | 1 | *** tools/build/v2/tools/gcc.jam.orig 2007-05-03 08:09:04.000000000 +0200 |
|
| 110 | 1 | --- tools/build/v2/tools/gcc.jam 2007-06-26 20:37:44.000000000 +0200 |
|
| 111 | 1 | *************** if [ os.name ] != NT && [ os.name ] != O |
|
| 112 | 1 | *** 316,322 **** |
|
| 113 | 1 | # expected, therefore it has been disabled. |
|
| 114 | 1 | ||
| 115 | 1 | HAVE_SONAME = "" ; |
|
| 116 | 1 | ! SONAME_OPTION = -h ; |
|
| 117 | 1 | } |
|
| 118 | 1 | ||
| 119 | 1 | ||
| 120 | 1 | --- 316,323 ---- |
|
| 121 | 1 | # expected, therefore it has been disabled. |
|
| 122 | 1 | ||
| 123 | 1 | HAVE_SONAME = "" ; |
|
| 124 | 1 | ! SONAME_OPTION = -soname ; |
|
| 125 | 1 | ! SONAME_VERSION = 3 ; |
|
| 126 | 1 | } |
|
| 127 | 1 | ||
| 128 | 1 | ||
| 129 | 1 | *************** rule link.dll ( targets * : sources * : |
|
| 130 | 1 | *** 631,637 **** |
|
| 131 | 1 | # Differ from 'link' above only by -shared. |
|
| 132 | 1 | actions link.dll bind LIBRARIES |
|
| 133 | 1 | { |
|
| 134 | 1 | ! "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,$(RPATH_OPTION:E=-R)$(SPACE)-Wl,"$(RPATH)" "$(.IMPLIB-COMMAND)$(<[1])" -o "$(<[-1])" $(HAVE_SONAME)-Wl,$(SONAME_OPTION)$(SPACE)-Wl,$(<[-1]:D=) -shared $(START-GROUP) "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) $(USER_OPTIONS) |
|
| 135 | 1 | } |
|
| 136 | 1 | ||
| 137 | 1 | # Set up threading support. It's somewhat contrived, so perform it at the end, |
|
| 138 | 1 | --- 632,638 ---- |
|
| 139 | 1 | # Differ from 'link' above only by -shared. |
|
| 140 | 1 | actions link.dll bind LIBRARIES |
|
| 141 | 1 | { |
|
| 142 | 1 | ! "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,$(RPATH_OPTION:E=-R)$(SPACE)-Wl,"$(RPATH)" "$(.IMPLIB-COMMAND)$(<[1])" -o "$(<[-1])" $(HAVE_SONAME)-Wl,$(SONAME_OPTION)$(SPACE)-Wl,$(<[-1]:D=).$(SONAME_VERSION) -shared $(START-GROUP) "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) $(USER_OPTIONS) |
|
| 143 | 1 | } |
|
| 144 | 1 | ||
| 145 | 1 | # Set up threading support. It's somewhat contrived, so perform it at the end, |
|
| 146 | 1 | </pre> |
|
| 147 | 1 | ||
| 148 | 1 | *boost-use-rpm-optflags.patch* |
|
| 149 | 1 | ||
| 150 | 1 | <pre> |
|
| 151 | 1 | *** tools/build/v2/tools/gcc.jam.orig 2007-08-01 01:17:16.000000000 -0500 |
|
| 152 | 1 | --- tools/build/v2/tools/gcc.jam 2007-08-01 01:17:46.000000000 -0500 |
|
| 153 | 1 | *************** flags gcc.compile PCH_FILE <pch>on : <pc |
|
| 154 | 1 | *** 268,274 **** |
|
| 155 | 1 | ||
| 156 | 1 | # Declare flags and action for compilation |
|
| 157 | 1 | flags gcc.compile OPTIONS <optimization>off : -O0 ; |
|
| 158 | 1 | ! flags gcc.compile OPTIONS <optimization>speed : -O3 ; |
|
| 159 | 1 | flags gcc.compile OPTIONS <optimization>space : -Os ; |
|
| 160 | 1 | ||
| 161 | 1 | flags gcc.compile OPTIONS <inlining>off : -fno-inline ; |
|
| 162 | 1 | --- 268,274 ---- |
|
| 163 | 1 | ||
| 164 | 1 | # Declare flags and action for compilation |
|
| 165 | 1 | flags gcc.compile OPTIONS <optimization>off : -O0 ; |
|
| 166 | 1 | ! flags gcc.compile OPTIONS <optimization>speed : "$RPM_OPT_FLAGS" ; |
|
| 167 | 1 | flags gcc.compile OPTIONS <optimization>space : -Os ; |
|
| 168 | 1 | ||
| 169 | 1 | flags gcc.compile OPTIONS <inlining>off : -fno-inline ; |
|
| 170 | 1 | </pre> |
|
| 171 | 1 | ||
| 172 | 1 | ||
| 173 | 1 | Now you need download im place where you put patches ( and will put boost.Slackbuild ) the sorces used by scripts of corse. If you to read boost.script , will see script uses two files in build process: |
|
| 174 | 1 | ||
| 175 | 1 | *boost_asio* on http://sourceforge.net/project/showfiles.php?group_id=122478 or if you prefer directly on |
|
| 176 | 1 | http://easynews.dl.sourceforge.net/sourceforge/asio/asio-0.3.8rc3.tar.gz |
|
| 177 | 1 | ||
| 178 | 1 | *Adobe GPL GIL* (just for enhace your boost lib) on http://opensource.adobe.com/gil/download.html or directly on http://opensource.adobe.com/gil/gil.tar.gz |
|
| 179 | 1 | ||
| 180 | 1 | finily _*' boost 1.34.1 _*' on http://sourceforge.net/project/showfiles.php?group_id=7586 or directly on |
|
| 181 | 1 | http://easynews.dl.sourceforge.net/sourceforge/boost/boost_1_34_1.tar.bz2 |
|
| 182 | 1 | (boost.Slackbuild will compile your bjam -ARGH!!- (a ./configure like autotool system) ) in your system , and you will not need download bjam binary. |
|
| 183 | 1 | ||
| 184 | 1 | ||
| 185 | 1 | This Slackbuild is based on boost.SlackBuild,v 1.6 2007/09/04 of Eric Hameleers <alien@slackware.com> |
|
| 186 | 1 | and boost.spec from boost-1.34.0-2.el5.src.rpm from Red Hat Enterprise linux |
|
| 187 | 1 | ||
| 188 | 1 | *boost.Slackbuild* |
|
| 189 | 1 | <pre> |
|
| 190 | 1 | #!/bin/sh |
|
| 191 | 1 | # $Id: boost.SlackBuild,v 1.6 2007/09/04 23:08:43 root Exp root $ |
|
| 192 | 1 | # Copyright (c) 2007 Eric Hameleers <alien@slackware.com> |
|
| 193 | 1 | # All rights reserved. |
|
| 194 | 1 | # |
|
| 195 | 1 | # Permission to use, copy, modify, and distribute this software for |
|
| 196 | 1 | # any purpose with or without fee is hereby granted, provided that |
|
| 197 | 1 | # the above copyright notice and this permission notice appear in all |
|
| 198 | 1 | # copies. |
|
| 199 | 1 | # |
|
| 200 | 1 | # THIS SOFTWARE IS PROVIDED ``AS IS*_ AND ANY EXPRESSED OR IMPLIED |
|
| 201 | 1 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
| 202 | 1 | # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
| 203 | 1 | # IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
|
| 204 | 1 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
| 205 | 1 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
| 206 | 1 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
| 207 | 1 | # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
| 208 | 1 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
| 209 | 1 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
| 210 | 1 | # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
| 211 | 1 | # SUCH DAMAGE. |
|
| 212 | 1 | # |
|
| 213 | 1 | # Slackware SlackBuild script |
|
| 214 | 1 | # =========================== |
|
| 215 | 1 | # By: Eric Hameleers <alien@slackware.com> |
|
| 216 | 1 | # For: boost |
|
| 217 | 1 | # Descr: collection of portable C++ source libraries |
|
| 218 | 1 | # URL: http://www.boost.org/ |
|
| 219 | 1 | # Needs: |
|
| 220 | 1 | # Changelog: |
|
| 221 | 1 | # 1.34.1-1 01/10/2007 by Miguel Suarez Xavier Penteado <miguel_penteado@fca.unesp.br> |
|
| 222 | 1 | # 1.33.1-1: 23/Dec/2006 by Eric Hameleers <alien@slackware.com> |
|
| 223 | 1 | # * Initial build. |
|
| 224 | 1 | # 1.34.0-1: 04/Sep/2007 by Eric Hameleers <alien@slackware.com> |
|
| 225 | 1 | # * Update, Slackware 12.0 package. |
|
| 226 | 1 | # |
|
| 227 | 1 | # Run 'sh boost.SlackBuild --cleanup' to build a Slackware package. |
|
| 228 | 1 | # The package (.tgz) plus descriptive .txt file are created in /tmp . |
|
| 229 | 1 | # Install using 'installpkg'. |
|
| 230 | 1 | # |
|
| 231 | 1 | # Set initial variables: |
|
| 232 | 1 | ||
| 233 | 1 | echo "Setting variables ..." |
|
| 234 | 1 | echo "Setando variaveis ..." |
|
| 235 | 1 | ||
| 236 | 1 | PRGNAM=boost |
|
| 237 | 1 | VERSION=${VERSION:-1.34.1} |
|
| 238 | 1 | SRCVER=$(echo ${VERSION} | tr '.' '_') |
|
| 239 | 1 | ARCH=${ARCH:-i486} |
|
| 240 | 1 | BUILD=${BUILD:-1} |
|
| 241 | 1 | ||
| 242 | 1 | # This is the python we build against: |
|
| 243 | 1 | PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]') |
|
| 244 | 1 | PYTHON_FLAGS="-sPYTHON_ROOT=/usr -sPYTHON_VERSION=$PYTHON_VERSION" |
|
| 245 | 1 | ||
| 246 | 1 | DOCS="README LICENSE_1_0.txt people wiki" |
|
| 247 | 1 | ||
| 248 | 1 | # Where do we look for sources? |
|
| 249 | 1 | CWD=$(pwd) |
|
| 250 | 1 | SRCDIR=$(dirname $0) |
|
| 251 | 1 | [ "${SRCDIR:0:1}" == "." ] && SRCDIR=${CWD}/${SRCDIR} |
|
| 252 | 1 | ||
| 253 | 1 | # Place to build (TMP) package (PKG) and output (OUTPUT) the program: |
|
| 254 | 1 | TMP=${TMP:-/tmp/build} |
|
| 255 | 1 | PKG=$TMP/package-$PRGNAM |
|
| 256 | 1 | OUTPUT=${OUTPUT:-/tmp} |
|
| 257 | 1 | ||
| 258 | 1 | ################################################################################### |
|
| 259 | 1 | ASIO=boost_asio |
|
| 260 | 1 | VER_ASIO="0_3_8rc3" |
|
| 261 | 1 | SOURCE_ASIO="$SRCDIR/${ASIO}_${VER_ASIO}.tar.gz" |
|
| 262 | 1 | PKG_ASIO=$TMP/package-$ASIO |
|
| 263 | 1 | ||
| 264 | 1 | ################################################################################### |
|
| 265 | 1 | ||
| 266 | 1 | ################################################################################### |
|
| 267 | 1 | GIL=gil |
|
| 268 | 1 | VER_GIL="2.1.1" |
|
| 269 | 1 | SOURCE_GIL="$SRCDIR/${GIL}-${VER_GIL}.tar.gz" |
|
| 270 | 1 | PKG_GIL=$TMP/package-$GIL |
|
| 271 | 1 | ||
| 272 | 1 | ################################################################################### |
|
| 273 | 1 | ||
| 274 | 1 | ||
| 275 | 1 | # Input URL: http://dl.sourceforge.net/boost/boost_1_34_1.tar.gz |
|
| 276 | 1 | SOURCE="$SRCDIR/${PRGNAM}_${SRCVER}.tar.gz" |
|
| 277 | 1 | SRCURL="http://dl.sourceforge.net/${PRGNAM}/${PRGNAM}_${SRCVER}.tar.gz" |
|
| 278 | 1 | ||
| 279 | 1 | ||
| 280 | 1 | # Exit the script on errors: |
|
| 281 | 1 | set -e |
|
| 282 | 1 | trap 'echo "$0 FAILED at line $LINENO!" | tee $OUTPUT/error-${PRGNAM}.log' ERR |
|
| 283 | 1 | # Catch unitialized variables: |
|
| 284 | 1 | set -u |
|
| 285 | 1 | P1=${1:-1} |
|
| 286 | 1 | ||
| 287 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 288 | 1 | echo -e '\E[01;33;40m'"Setando a vers~ao de gcc para 3.3.x ou 4.2.x" ;tput sgr0; |
|
| 289 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 290 | 1 | echo -e '\E[01;32;40m' |
|
| 291 | 1 | ||
| 292 | 1 | # Slackware 11 and up need other option (gcc > 3.3.x) |
|
| 293 | 1 | if [ $(gcc -dumpversion | tr -d '.' |cut -c 1-2) -gt 33 ]; then |
|
| 294 | 1 | MOPT=tune |
|
| 295 | 1 | else |
|
| 296 | 1 | MOPT=cpu |
|
| 297 | 1 | fi |
|
| 298 | 1 | ||
| 299 | 1 | case "$ARCH" in |
|
| 300 | 1 | i386) SLKCFLAGS="-O2 -march=i386 -m${MOPT}=i686" |
|
| 301 | 1 | SLKLDFLAGS=""; LIBDIRSUFFIX="" |
|
| 302 | 1 | ;; |
|
| 303 | 1 | i486) SLKCFLAGS="-O2 -march=i486 -m${MOPT}=i686" |
|
| 304 | 1 | SLKLDFLAGS=""; LIBDIRSUFFIX="" |
|
| 305 | 1 | ;; |
|
| 306 | 1 | s390) SLKCFLAGS="-O2" |
|
| 307 | 1 | SLKLDFLAGS=""; LIBDIRSUFFIX="" |
|
| 308 | 1 | ;; |
|
| 309 | 1 | powerpc) SLKCFLAGS="-O2" |
|
| 310 | 1 | SLKLDFLAGS=""; LIBDIRSUFFIX="" |
|
| 311 | 1 | ;; |
|
| 312 | 1 | x86_64) SLKCFLAGS="-O2 -fPIC" |
|
| 313 | 1 | SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" |
|
| 314 | 1 | ;; |
|
| 315 | 1 | athlon-xp) SLKCFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" |
|
| 316 | 1 | SLKLDFLAGS=""; LIBDIRSUFFIX="" |
|
| 317 | 1 | ;; |
|
| 318 | 1 | esac |
|
| 319 | 1 | ||
| 320 | 1 | # Create working directories: |
|
| 321 | 1 | mkdir -p $TMP/tmp-$PRGNAM # location to build the source |
|
| 322 | 1 | rm -rf $TMP/tmp-$PRGNAM/* # By default we remove the remnants of previous build |
|
| 323 | 1 | mkdir -p $PKG # place for the package to be built |
|
| 324 | 1 | rm -rf $PKG/* # We always erase old package's contents: |
|
| 325 | 1 | mkdir -p $OUTPUT # place for the package to be saved |
|
| 326 | 1 | ||
| 327 | 1 | # Source file availability: |
|
| 328 | 1 | if ! [ -f ${SOURCE} ]; then |
|
| 329 | 1 | if ! [ "x${SRCURL}" == "x" ]; then |
|
| 330 | 1 | # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT |
|
| 331 | 1 | [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" |
|
| 332 | 1 | echo "Source '$(basename ${SOURCE})' not available yet..." |
|
| 333 | 1 | echo "Will download file to $(dirname $SOURCE)" |
|
| 334 | 1 | wget -nv --connect-timeout=30 -O "${SOURCE}" "${SRCURL}" || true |
|
| 335 | 1 | if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then |
|
| 336 | 1 | echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." |
|
| 337 | 1 | mv -f "${SOURCE}" "${SOURCE}".FAIL |
|
| 338 | 1 | exit 1 |
|
| 339 | 1 | fi |
|
| 340 | 1 | else |
|
| 341 | 1 | echo "File '$(basename ${SOURCE})' not available... aborting the build." |
|
| 342 | 1 | exit 1 |
|
| 343 | 1 | fi |
|
| 344 | 1 | fi |
|
| 345 | 1 | ||
| 346 | 1 | if [ "$P1" == "--download" ]; then |
|
| 347 | 1 | echo "Download complete." |
|
| 348 | 1 | exit 0 |
|
| 349 | 1 | fi |
|
| 350 | 1 | ||
| 351 | 1 | ||
| 352 | 1 | ################################################################################################# |
|
| 353 | 1 | # --- PACKAGE BUILDING --- |
|
| 354 | 1 | ||
| 355 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 356 | 1 | echo -e '\E[01;33;40m'"extraindo arquivos" ;tput sgr0; |
|
| 357 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 358 | 1 | echo -e '\E[01;36;40m' |
|
| 359 | 1 | ||
| 360 | 1 | echo "++=================" |
|
| 361 | 1 | echo "|| $PRGNAM-$VERSION" |
|
| 362 | 1 | echo "++=================" |
|
| 363 | 1 | ||
| 364 | 1 | cd $TMP/tmp-$PRGNAM |
|
| 365 | 1 | echo "Extracting the source archive(s) for $PRGNAM..." |
|
| 366 | 1 | if $(file ${SOURCE} | grep -q ": bzip2"); then |
|
| 367 | 1 | tar -xjvf ${SOURCE} |
|
| 368 | 1 | elif $(file ${SOURCE} | grep -q ": gzip"); then |
|
| 369 | 1 | tar -xzvf ${SOURCE} |
|
| 370 | 1 | fi |
|
| 371 | 1 | mv ${PRGNAM}_${SRCVER} ${PRGNAM}-${VERSION} |
|
| 372 | 1 | cd ${PRGNAM}-${VERSION} |
|
| 373 | 1 | BUILD_DIR_BOOST=`pwd` |
|
| 374 | 1 | chown -R root:root . |
|
| 375 | 1 | chmod -R u+w,go+r-w,a-s . |
|
| 376 | 1 | ||
| 377 | 1 | ||
| 378 | 1 | ||
| 379 | 1 | ################################################################################################# |
|
| 380 | 1 | mkdir -p $TMP/tmp-$ASIO # location to build the source |
|
| 381 | 1 | rm -rf $TMP/tmp-$ASIO/* # By default we remove the remnants of previous build |
|
| 382 | 1 | ||
| 383 | 1 | cd $TMP/tmp-$ASIO |
|
| 384 | 1 | echo "Extracting the SOURCE_ASIO archive(s) for $ASIO..." |
|
| 385 | 1 | if $(file ${SOURCE_ASIO} | grep -q ": bzip2"); then |
|
| 386 | 1 | tar -xjvf ${SOURCE_ASIO} |
|
| 387 | 1 | elif $(file ${SOURCE_ASIO} | grep -q ": gzip"); then |
|
| 388 | 1 | tar -xzvf ${SOURCE_ASIO} |
|
| 389 | 1 | fi |
|
| 390 | 1 | mv ${ASIO}_${VER_ASIO} ${ASIO}-${VER_ASIO} |
|
| 391 | 1 | cd ${ASIO}-${VER_ASIO} |
|
| 392 | 1 | chown -R root:root . |
|
| 393 | 1 | chmod -R u+w,go+r-w,a-s . |
|
| 394 | 1 | ||
| 395 | 1 | cp -a boost/ $TMP/tmp-$PRGNAM/${PRGNAM}-${VERSION} |
|
| 396 | 1 | cp -a libs/ $TMP/tmp-$PRGNAM/${PRGNAM}-${VERSION} |
|
| 397 | 1 | ||
| 398 | 1 | ################################################################################################# |
|
| 399 | 1 | ||
| 400 | 1 | ################################################################################################# |
|
| 401 | 1 | mkdir -p $TMP/tmp-$GIL # location to build the source |
|
| 402 | 1 | rm -rf $TMP/tmp-$GIL/* # By default we remove the remnants of previous build |
|
| 403 | 1 | ||
| 404 | 1 | cd $TMP/tmp-$GIL |
|
| 405 | 1 | echo "Extracting the SOURCE_GIL archive(s) for $GIL..." |
|
| 406 | 1 | if $(file ${SOURCE_GIL} | grep -q ": bzip2"); then |
|
| 407 | 1 | tar -xjvf ${SOURCE_GIL} |
|
| 408 | 1 | elif $(file ${SOURCE_GIL} | grep -q ": gzip"); then |
|
| 409 | 1 | tar -xzvf ${SOURCE_GIL} |
|
| 410 | 1 | fi |
|
| 411 | 1 | ||
| 412 | 1 | cd ${GIL}-${VER_GIL} |
|
| 413 | 1 | chown -R root:root . |
|
| 414 | 1 | chmod -R u+w,go+r-w,a-s . |
|
| 415 | 1 | ||
| 416 | 1 | cp -a boost/ $TMP/tmp-$PRGNAM/${PRGNAM}-${VERSION} |
|
| 417 | 1 | cp -a libs/ $TMP/tmp-$PRGNAM/${PRGNAM}-${VERSION} |
|
| 418 | 1 | ||
| 419 | 1 | ################################################################################################# |
|
| 420 | 1 | ||
| 421 | 1 | cd $BUILD_DIR_BOOST |
|
| 422 | 1 | ||
| 423 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 424 | 1 | echo -e '\E[01;33;40m'"aplicando o patch para gcc 4.2.x " ;tput sgr0; |
|
| 425 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 426 | 1 | echo -e '\E[01;32;40m' |
|
| 427 | 1 | ||
| 428 | 1 | cp -a $CWD/boost_bjam-gcc42_mod.patch $TMP/tmp-$PRGNAM/${PRGNAM}-${VERSION}/ |
|
| 429 | 1 | ||
| 430 | 1 | patch -p0 < boost_bjam-gcc42_mod.patch |
|
| 431 | 1 | ||
| 432 | 1 | # echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 433 | 1 | # echo -e '\E[01;33;40m'"aplicando o patch para Thread " ;tput sgr0; |
|
| 434 | 1 | # echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 435 | 1 | # echo -e '\E[01;32;40m' |
|
| 436 | 1 | # |
|
| 437 | 1 | # cp -a $CWD/boost-thread.patch $TMP/tmp-$PRGNAM/${PRGNAM}-${VERSION}/ |
|
| 438 | 1 | # |
|
| 439 | 1 | # patch -p0 < boost-thread.patch |
|
| 440 | 1 | ||
| 441 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 442 | 1 | echo -e '\E[01;33;40m'"aplicando o patch para Configure " ;tput sgr0; |
|
| 443 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 444 | 1 | echo -e '\E[01;32;40m' |
|
| 445 | 1 | ||
| 446 | 1 | cp -a $CWD/boost-configure.patch $TMP/tmp-$PRGNAM/${PRGNAM}-${VERSION}/ |
|
| 447 | 1 | ||
| 448 | 1 | patch -p0 < boost-configure.patch |
|
| 449 | 1 | ||
| 450 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 451 | 1 | echo -e '\E[01;33;40m'"aplicando o patch para boost-gcc-soname.patch " ;tput sgr0; |
|
| 452 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 453 | 1 | echo -e '\E[01;32;40m' |
|
| 454 | 1 | ||
| 455 | 1 | cp -a $CWD/boost-gcc-soname.patch $TMP/tmp-$PRGNAM/${PRGNAM}-${VERSION}/ |
|
| 456 | 1 | ||
| 457 | 1 | patch -p0 < boost-gcc-soname.patch |
|
| 458 | 1 | ||
| 459 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 460 | 1 | echo -e '\E[01;33;40m'"aplicando o patch para boost-use-rpm-optflags.patch " ;tput sgr0; |
|
| 461 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 462 | 1 | echo -e '\E[01;32;40m' |
|
| 463 | 1 | ||
| 464 | 1 | cp -a $CWD/boost-use-rpm-optflags.patch $TMP/tmp-$PRGNAM/${PRGNAM}-${VERSION}/ |
|
| 465 | 1 | ||
| 466 | 1 | patch -p0 < boost-use-rpm-optflags.patch |
|
| 467 | 1 | ||
| 468 | 1 | ||
| 469 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 470 | 1 | echo -e '\E[01;33;40m'"Construindo BJAM " ;tput sgr0; |
|
| 471 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 472 | 1 | echo -e '\E[01;36;40m' |
|
| 473 | 1 | ||
| 474 | 1 | ||
| 475 | 1 | echo Building ... |
|
| 476 | 1 | export LDFLAGS="$SLKLDFLAGS" |
|
| 477 | 1 | export CFLAGS="$SLKCFLAGS" |
|
| 478 | 1 | export CXXFLAGS="$SLKCFLAGS" |
|
| 479 | 1 | ||
| 480 | 1 | BOOST_ROOT=`pwd` |
|
| 481 | 1 | staged_dir=stage |
|
| 482 | 1 | export BOOST_ROOT |
|
| 483 | 1 | ||
| 484 | 1 | ||
| 485 | 1 | # First build bjam, the boost build system: |
|
| 486 | 1 | ( cd tools/jam/src |
|
| 487 | 1 | ./build.sh gcc 2>&1 | tee $OUTPUT/make-${PRGNAM}.log |
|
| 488 | 1 | ) || exit $? |
|
| 489 | 1 | BJAM=$(find tools/jam/src/ -name bjam -a -type f) |
|
| 490 | 1 | ||
| 491 | 1 | # Create build subdirectory |
|
| 492 | 1 | mkdir -p obj |
|
| 493 | 1 | ||
| 494 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 495 | 1 | echo -e '\E[01;33;40m'"Configure " ;tput sgr0; |
|
| 496 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 497 | 1 | echo -e '\E[01;32;40m' |
|
| 498 | 1 | ||
| 499 | 1 | #"-sBUILD=<optimization>speed <runtime-link>shared <runtime-link>static <inlining>full <threading>single/multi " |
|
| 500 | 1 | # Next, we build boost using bjam |
|
| 501 | 1 | echo "Building boost now..." |
|
| 502 | 1 | $BJAM \ |
|
| 503 | 1 | release \ |
|
| 504 | 1 | "-d2 -sBUILD= <runtime-link>shared <threading>multi " \ |
|
| 505 | 1 | "-sNO_COMPRESSION=0" "-sZLIB_INCLUDE=/usr/include" "-sZLIB_LIBPATH=/usr/lib" \ |
|
| 506 | 1 | "-sBZIP2_INCLUDE=/usr/include" "-sBZIP2_LIBPATH=/usr/lib" \ |
|
| 507 | 1 | --toolset=gcc --layout=system --builddir=obj \ |
|
| 508 | 1 | --prefix=/usr \ |
|
| 509 | 1 | $PYTHON_FLAGS \ |
|
| 510 | 1 | stage \ |
|
| 511 | 1 | 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log |
|
| 512 | 1 | ||
| 513 | 1 | ||
| 514 | 1 | # ./configure \ |
|
| 515 | 1 | # --with-bjam=$BJAM \ |
|
| 516 | 1 | # --with-toolset=gcc \ |
|
| 517 | 1 | # --prefix=/usr \ |
|
| 518 | 1 | # --with-libraries=all \ |
|
| 519 | 1 | # --with-python=/usr/bin/python \ |
|
| 520 | 1 | # --with-python-root=/usr \ |
|
| 521 | 1 | # --with-python-version=$PYTHON_VERSION |
|
| 522 | 1 | # #--with-icu \ |
|
| 523 | 1 | # #--with-icu=DIR \ |
|
| 524 | 1 | ||
| 525 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 526 | 1 | echo -e '\E[01;33;40m'"Construindo boost " ;tput sgr0; |
|
| 527 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 528 | 1 | echo -e '\E[01;33;40m' |
|
| 529 | 1 | ||
| 530 | 1 | # make all |
|
| 531 | 1 | ||
| 532 | 1 | ||
| 533 | 1 | ||
| 534 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 535 | 1 | echo -e '\E[01;33;40m'"Instalando o boost em `pwd` " ;tput sgr0; |
|
| 536 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 537 | 1 | echo -e '\E[01;34;40m' |
|
| 538 | 1 | ||
| 539 | 1 | echo "Installing boost now..." |
|
| 540 | 1 | $BJAM \ |
|
| 541 | 1 | release \ |
|
| 542 | 1 | --toolset=gcc --layout=system --link=shared --builddir=obj \ |
|
| 543 | 1 | --prefix=$PKG/usr \ |
|
| 544 | 1 | $PYTHON_FLAGS \ |
|
| 545 | 1 | install \ |
|
| 546 | 1 | 2>&1 | tee $OUTPUT/install-${PRGNAM}.log |
|
| 547 | 1 | ||
| 548 | 1 | ||
| 549 | 1 | ||
| 550 | 1 | # And then install boost.. |
|
| 551 | 1 | mkdir -p $PKG/usr/{bin,lib,include} |
|
| 552 | 1 | mkdir -p $PKG/usr/share/${PRGNAM}-${VERSION} |
|
| 553 | 1 | cp -a $BJAM $PKG/usr/bin |
|
| 554 | 1 | ||
| 555 | 1 | #install lib |
|
| 556 | 1 | for i in `find stage -type f -name \*.a`; do |
|
| 557 | 1 | NAME=`basename $i`; |
|
| 558 | 1 | install -p -m 0644 $i $PKG/usr/lib/$NAME; |
|
| 559 | 1 | done; |
|
| 560 | 1 | ||
| 561 | 1 | for i in `find stage -type f -name \*.so`; do |
|
| 562 | 1 | NAME=$i; |
|
| 563 | 1 | SONAME=$i.3; |
|
| 564 | 1 | VNAME=$i.${VERSION}; |
|
| 565 | 1 | base=`basename $i`; |
|
| 566 | 1 | NAMEbase=$base; |
|
| 567 | 1 | SONAMEbase=$base.3; |
|
| 568 | 1 | VNAMEbase=$base.${VERSION}; |
|
| 569 | 1 | mv $i $VNAME; |
|
| 570 | 1 | ln -s $VNAMEbase $SONAME; |
|
| 571 | 1 | ln -s $VNAMEbase $NAME; |
|
| 572 | 1 | install -p -m 755 $VNAME $PKG/usr/lib/$VNAMEbase; |
|
| 573 | 1 | mv $SONAME $PKG/usr/lib/$SONAMEbase; |
|
| 574 | 1 | mv $NAME $PKG/usr/lib/$NAMEbase; |
|
| 575 | 1 | done; |
|
| 576 | 1 | ||
| 577 | 1 | ||
| 578 | 1 | ## Move incorrectly installed include files |
|
| 579 | 1 | if [ -d $PKG/usr/include/${PRGNAM}-${VERSION} ]; then |
|
| 580 | 1 | echo -e '\E[01;33;40m'"Movendo os Includes boost para $PKG/usr/include/ " ;tput sgr0; |
|
| 581 | 1 | echo -e '\E[01;34;40m' |
|
| 582 | 1 | mv $PKG/usr/include/${PRGNAM}-${VERSION}/boost $PKG/usr/include/ |
|
| 583 | 1 | rmdir $PKG/usr/include/${PRGNAM}-${VERSION} |
|
| 584 | 1 | fi |
|
| 585 | 1 | ||
| 586 | 1 | ||
| 587 | 1 | ||
| 588 | 1 | # Add documentation: |
|
| 589 | 1 | mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |
|
| 590 | 1 | cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true |
|
| 591 | 1 | chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/* |
|
| 592 | 1 | ||
| 593 | 1 | # Strip binaries: |
|
| 594 | 1 | cd $PKG |
|
| 595 | 1 | find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |
|
| 596 | 1 | find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |
|
| 597 | 1 | cd - |
|
| 598 | 1 | ||
| 599 | 1 | # Add a package description: |
|
| 600 | 1 | mkdir -p $PKG/install |
|
| 601 | 1 | cat $SRCDIR/slack-desc > $PKG/install/slack-desc |
|
| 602 | 1 | if [ -f $SRCDIR/doinst.sh ]; then |
|
| 603 | 1 | cat $SRCDIR/doinst.sh >> $PKG/install/doinst.sh |
|
| 604 | 1 | fi |
|
| 605 | 1 | ||
| 606 | 1 | # Build the package: |
|
| 607 | 1 | cd $PKG |
|
| 608 | 1 | makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log |
|
| 609 | 1 | cd $OUTPUT |
|
| 610 | 1 | md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz.md5 |
|
| 611 | 1 | cd - |
|
| 612 | 1 | cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.txt |
|
| 613 | 1 | ||
| 614 | 1 | # Clean up the extra stuff: |
|
| 615 | 1 | if [ "$P1" = "--cleanup" ]; then |
|
| 616 | 1 | rm -rf $TMP/tmp-$PRGNAM |
|
| 617 | 1 | rm -rf $PKG |
|
| 618 | 1 | fi |
|
| 619 | 1 | tput sgr0; |
|
| 620 | 1 | </pre> |
|
| 621 | 1 | ||
| 622 | 1 | ||
| 623 | 1 | h3. asio 0.3.7 standalone library Slackbuild |
|
| 624 | 1 | ||
| 625 | 1 | Next step: we will patch and compile asio-0.3.7.tar.gz . Use asio 0.3.7 version , is working. |
|
| 626 | 1 | #Patch asio-0.3.7 standalone |
|
| 627 | 1 | ||
| 628 | 1 | asio_openssl_init.patch |
|
| 629 | 1 | <pre> |
|
| 630 | 1 | --- ./include/asio/ssl/detail/openssl_init.hpp.orig 2006-11-15 00:10:08.000000000 +0100 |
|
| 631 | 1 | +++ ./include/asio/ssl/detail/openssl_init.hpp 2006-11-15 00:10:38.000000000 +0100 |
|
| 632 | 1 | @@ -45,13 +45,13 @@ |
|
| 633 | 1 | { |
|
| 634 | 1 | ::SSL_library_init(); |
|
| 635 | 1 | ::SSL_load_error_strings(); |
|
| 636 | 1 | + ::OpenSSL_add_ssl_algorithms(); |
|
| 637 | 1 | ||
| 638 | 1 | mutexes_.resize(::CRYPTO_num_locks()); |
|
| 639 | 1 | for (size_t i = 0; i < mutexes_.size(); ++i) |
|
| 640 | 1 | mutexes_[i].reset(new asio::detail::mutex); |
|
| 641 | 1 | ::CRYPTO_set_locking_callback(&do_init::openssl_locking_func); |
|
| 642 | 1 | ||
| 643 | 1 | - ::OpenSSL_add_ssl_algorithms(); |
|
| 644 | 1 | } |
|
| 645 | 1 | } |
|
| 646 | 1 | </pre> |
|
| 647 | 1 | ||
| 648 | 1 | Getting Asio 0.3.7 library |
|
| 649 | 1 | You may open asio's homepage http://asio.sourceforge.net/ or get asio with this direct link |
|
| 650 | 1 | http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/a/as/asio/asio-0.3.7.tar.gz |
|
| 651 | 1 | ||
| 652 | 2 | Pieter Libin | *asio.Slackbuild* |
| 653 | 1 | ||
| 654 | 1 | <pre> |
|
| 655 | 1 | #!/bin/sh |
|
| 656 | 1 | ||
| 657 | 1 | PRGNAM=asio |
|
| 658 | 1 | VERSION=0.3.7 |
|
| 659 | 1 | ARCH=${ARCH:-i486} |
|
| 660 | 1 | BUILD=${BUILD:-1} |
|
| 661 | 1 | TAG=${TAG:-MSXP} |
|
| 662 | 1 | CWD=$(pwd) |
|
| 663 | 1 | TMP=${TMP:-/tmp} |
|
| 664 | 1 | PKG=$TMP/package-$PRGNAM |
|
| 665 | 1 | OUTPUT=${OUTPUT:-/tmp} |
|
| 666 | 1 | ||
| 667 | 1 | if [ "$ARCH" = "i486" ]; then |
|
| 668 | 1 | SLKCFLAGS="-O2 -march=i486 -mtune=i686" |
|
| 669 | 1 | elif [ "$ARCH" = "i686" ]; then |
|
| 670 | 1 | SLKCFLAGS="-O2 -march=i686 -mtune=i686" |
|
| 671 | 1 | fi |
|
| 672 | 1 | ||
| 673 | 1 | rm -rf $PKG |
|
| 674 | 1 | mkdir -p $TMP $PKG $OUTPUT |
|
| 675 | 1 | cd $TMP || exit 1 |
|
| 676 | 1 | rm -rf $PRGNAM-$VERSION |
|
| 677 | 1 | tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 |
|
| 678 | 1 | cd $PRGNAM-$VERSION || exit 1 |
|
| 679 | 1 | chown -R root:root . |
|
| 680 | 1 | chmod -R u+w,go+r-w,a-s . |
|
| 681 | 1 | ||
| 682 | 1 | echo -e '\E[01;32;40m'"****************************************************************";tput sgr0; |
|
| 683 | 1 | echo -e '\E[01;33;40m'"aplicando o patch para $TMP/$PRGNAM-$VERSION em`pwd` " ;tput sgr0; |
|
| 684 | 1 | echo -e '\E[01;32;40m'"****************************************************************";tput sgr0; |
|
| 685 | 1 | echo -e '\E[01;32;40m' |
|
| 686 | 1 | ||
| 687 | 1 | cp -a $CWD/asio_openssl_init.patch $TMP/$PRGNAM-$VERSION/ |
|
| 688 | 1 | ||
| 689 | 1 | patch -p0 < asio_openssl_init.patch |
|
| 690 | 1 | ||
| 691 | 1 | ||
| 692 | 1 | echo -e '\E[01;32;40m'"****************************************************************";tput sgr0; |
|
| 693 | 1 | echo -e '\E[01;33;40m'"execucao do script configure para $PRGNAM-$VERSION em`pwd` " ;tput sgr0; |
|
| 694 | 1 | echo -e '\E[01;32;40m'"****************************************************************";tput sgr0; |
|
| 695 | 1 | echo -e '\E[01;36;40m' |
|
| 696 | 1 | ||
| 697 | 1 | CFLAGS="$SLKCFLAGS" \ |
|
| 698 | 1 | CXXFLAGS="$SLKCFLAGS" \ |
|
| 699 | 1 | ./configure \ |
|
| 700 | 1 | --prefix=/usr \ |
|
| 701 | 1 | --sysconfdir=/etc \ |
|
| 702 | 1 | --localstatedir=/var \ |
|
| 703 | 1 | --with-boost=/usr \ |
|
| 704 | 1 | --with-openssl=/usr |
|
| 705 | 1 | ||
| 706 | 1 | echo -e '\E[01;32;40m'"****************************************************************" ;tput sgr0; |
|
| 707 | 1 | echo -e '\E[01;33;40m'"execucao de make configure para $PRGNAM-$VERSION em`pwd` " ;tput sgr0; |
|
| 708 | 1 | echo -e '\E[01;32;40m'"****************************************************************" ;tput sgr0; |
|
| 709 | 1 | echo -e '\E[01;34;40m' |
|
| 710 | 1 | ||
| 711 | 1 | make |
|
| 712 | 1 | ||
| 713 | 1 | echo -e '\E[01;32;40m'"******************************************************************" ;tput sgr0; |
|
| 714 | 1 | echo -e '\E[01;33;40m'"execucao de make install configure para $PRGNAM-$VERSION em`pwd` " ;tput sgr0; |
|
| 715 | 1 | echo -e '\E[01;32;40m'"******************************************************************" ;tput sgr0; |
|
| 716 | 1 | echo -e '\E[01;33;40m' |
|
| 717 | 1 | ||
| 718 | 1 | make install DESTDIR=$PKG |
|
| 719 | 1 | ||
| 720 | 1 | echo -e '\E[01;32;40m'"****************************************************************" ;tput sgr0; |
|
| 721 | 1 | echo -e '\E[01;33;40m'"Criando o pacote $PRGNAM-$VERSION em`pwd` " ;tput sgr0; |
|
| 722 | 1 | echo -e '\E[01;32;40m'"****************************************************************" ;tput sgr0; |
|
| 723 | 1 | echo -e '\E[01;32;40m' |
|
| 724 | 1 | ||
| 725 | 1 | if [ -d $PKG/usr/man ]; then |
|
| 726 | 1 | ( cd $PKG/usr/man |
|
| 727 | 1 | find . -type f -exec gzip -9 {} \; |
|
| 728 | 1 | for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done |
|
| 729 | 1 | ) |
|
| 730 | 1 | fi |
|
| 731 | 1 | ||
| 732 | 1 | mkdir -p $PKG/install |
|
| 733 | 1 | cat $CWD/slack-desc > $PKG/install/slack-desc |
|
| 734 | 1 | ||
| 735 | 1 | cd $PKG |
|
| 736 | 1 | /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |
|
| 737 | 1 | ||
| 738 | 1 | tput sgr0; |
|
| 739 | 1 | </pre> |
|
| 740 | 1 | ||
| 741 | 1 | h3. mxml 2.3 library Slackbuild |
|
| 742 | 1 | ||
| 743 | 1 | Next step we will download Mini XML 2.3 version on |
|
| 744 | 1 | http://www.minixml.org/software.php or in direct link |
|
| 745 | 1 | http://ftp.easysw.com/pub/mxml/2.3/mxml-2.3.tar.gz |
|
| 746 | 1 | ||
| 747 | 1 | *mxml.SlackBuild* |
|
| 748 | 1 | ||
| 749 | 1 | <pre> |
|
| 750 | 1 | #!/bin/sh |
|
| 751 | 1 | ||
| 752 | 1 | # Slackware build script for mxml |
|
| 753 | 1 | # Original form Written by Chess Griffin <chess at chessgriffin dot com> |
|
| 754 | 1 | # Adapted by Miguel Suarez Xavier Penteado <miguel_penteado@fca.unesp.br> |
|
| 755 | 1 | ||
| 756 | 1 | PRGNAM=mxml |
|
| 757 | 1 | VERSION=2.3 |
|
| 758 | 1 | ARCH=${ARCH:-i486} |
|
| 759 | 1 | BUILD=${BUILD:-1} |
|
| 760 | 1 | TAG=${TAG:-MSXP} |
|
| 761 | 1 | CWD=$(pwd) |
|
| 762 | 1 | TMP=${TMP:-/tmp/SBo} |
|
| 763 | 1 | PKG=$TMP/package-$PRGNAM |
|
| 764 | 1 | OUTPUT=${OUTPUT:-/tmp} |
|
| 765 | 1 | ||
| 766 | 1 | if [ "$ARCH" = "i486" ]; then |
|
| 767 | 1 | SLKCFLAGS="-O2 -march=i486 -mtune=i686" |
|
| 768 | 1 | elif [ "$ARCH" = "i686" ]; then |
|
| 769 | 1 | SLKCFLAGS="-O2 -march=i686 -mtune=i686" |
|
| 770 | 1 | fi |
|
| 771 | 1 | ||
| 772 | 1 | rm -rf $PKG |
|
| 773 | 1 | mkdir -p $TMP $PKG $OUTPUT |
|
| 774 | 1 | cd $TMP || exit 1 |
|
| 775 | 1 | rm -rf $PRGNAM-$VERSION |
|
| 776 | 1 | tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 |
|
| 777 | 1 | cd $PRGNAM-$VERSION || exit 1 |
|
| 778 | 1 | chown -R root:root . |
|
| 779 | 1 | chmod -R u+w,go+r-w,a-s . |
|
| 780 | 1 | ||
| 781 | 1 | ||
| 782 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 783 | 1 | echo -e '\E[01;33;40m'"Confire mxml in `pwd` ";tput sgr0; |
|
| 784 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 785 | 1 | echo -e '\E[01;35;40m'; |
|
| 786 | 1 | ||
| 787 | 1 | CFLAGS="$SLKCFLAGS" \ |
|
| 788 | 1 | CXXFLAGS="$SLKCFLAGS" \ |
|
| 789 | 1 | ./configure \ |
|
| 790 | 1 | --prefix=/usr \ |
|
| 791 | 1 | --sysconfdir=/etc \ |
|
| 792 | 1 | --localstatedir=/var \ |
|
| 793 | 1 | --enable-static=no |
|
| 794 | 1 | ||
| 795 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 796 | 1 | echo -e '\E[01;33;40m'"make mxml in `pwd` ";tput sgr0; |
|
| 797 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 798 | 1 | echo -e '\E[01;36;40m'; |
|
| 799 | 1 | ||
| 800 | 1 | make |
|
| 801 | 1 | ||
| 802 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 803 | 1 | echo -e '\E[01;33;40m'"make install mxml in `pwd` ";tput sgr0; |
|
| 804 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 805 | 1 | echo -e '\E[01;37;40m'; |
|
| 806 | 1 | ||
| 807 | 1 | make install BUILDROOT=$PKG |
|
| 808 | 1 | ||
| 809 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 810 | 1 | echo -e '\E[01;33;40m'" Building packge mxml in `pwd` ";tput sgr0; |
|
| 811 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 812 | 1 | echo -e '\E[01;35;40m'; |
|
| 813 | 1 | ||
| 814 | 1 | if [ -d $PKG/usr/man ]; then |
|
| 815 | 1 | ( cd $PKG/usr/man |
|
| 816 | 1 | find . -type f -exec gzip -9 {} \; |
|
| 817 | 1 | for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done |
|
| 818 | 1 | ) |
|
| 819 | 1 | fi |
|
| 820 | 1 | ||
| 821 | 1 | mkdir -p $PKG/install |
|
| 822 | 1 | cat $CWD/slack-desc > $PKG/install/slack-desc |
|
| 823 | 1 | ||
| 824 | 1 | cd $PKG |
|
| 825 | 1 | /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |
|
| 826 | 1 | tput sgr0; |
|
| 827 | 1 | </pre> |
|
| 828 | 1 | ||
| 829 | 1 | <pre> |
|
| 830 | 1 | ||
| 831 | 1 | </pre> |
|
| 832 | 1 | ||
| 833 | 1 | h3. Fastcgi-2.4.0 Slackbuild |
|
| 834 | 1 | ||
| 835 | 1 | This slackbuild will install fastcgi library in your Slackware 12 ! You will need Fastcgi library plus apache modules. Lets get Library first. |
|
| 836 | 1 | ||
| 837 | 1 | You can download fcgi sorces at http://www.fastcgi.com/ or in this direct link |
|
| 838 | 1 | http://www.fastcgi.com/dist/fcgi.tar.gz You will get 2.4.0 version |
|
| 839 | 1 | ||
| 840 | 1 | Before, you must save this patch in sources tar directory |
|
| 841 | 1 | ||
| 842 | 1 | <pre> |
|
| 843 | 1 | The patch have 5.117 lines ... sorry try without him |
|
| 844 | 1 | </pre> |
|
| 845 | 1 | ||
| 846 | 1 | ||
| 847 | 1 | then you may use fastcgi.Slackbuild |
|
| 848 | 2 | Pieter Libin | |
| 849 | 1 | *fastcgi.Slackbuild* |
|
| 850 | 1 | ||
| 851 | 1 | <pre> |
|
| 852 | 1 | #!/bin/sh |
|
| 853 | 1 | ||
| 854 | 1 | # Slackware build script for mysql++ |
|
| 855 | 1 | # Written by Chess Griffin <chess at chessgriffin dot com> |
|
| 856 | 1 | # Adapted by Miguel Suarez Xavier Penteado <miguel_penteado@fca.unesp.br> |
|
| 857 | 1 | ||
| 858 | 1 | PRGNAM=fcgi |
|
| 859 | 1 | VERSION=2.4.0 |
|
| 860 | 1 | ARCH=${ARCH:-i486} |
|
| 861 | 1 | BUILD=${BUILD:-1} |
|
| 862 | 1 | TAG=${TAG:-MSXP} |
|
| 863 | 1 | CWD=$(pwd) |
|
| 864 | 1 | TMP=${TMP:-/tmp/SBo} |
|
| 865 | 1 | PKG=$TMP/package-$PRGNAM |
|
| 866 | 1 | OUTPUT=${OUTPUT:-/tmp} |
|
| 867 | 1 | ||
| 868 | 1 | if [ "$ARCH" = "i486" ]; then |
|
| 869 | 1 | SLKCFLAGS="-O2 -march=i486 -mtune=i686" |
|
| 870 | 1 | elif [ "$ARCH" = "i686" ]; then |
|
| 871 | 1 | SLKCFLAGS="-O2 -march=i686 -mtune=i686" |
|
| 872 | 1 | fi |
|
| 873 | 1 | ||
| 874 | 1 | rm -rf $PKG |
|
| 875 | 1 | mkdir -p $TMP $PKG $OUTPUT |
|
| 876 | 1 | cd $TMP || exit 1 |
|
| 877 | 1 | rm -rf $PRGNAM-$VERSION |
|
| 878 | 1 | #tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 |
|
| 879 | 1 | tar -xzvf $CWD/$PRGNAM.tar.gz || exit 1 |
|
| 880 | 1 | cd $PRGNAM-$VERSION || exit 1 |
|
| 881 | 1 | chown -R root:root . |
|
| 882 | 1 | chmod -R u+w,go+r-w,a-s . |
|
| 883 | 1 | chmod a-x include/fcgios.h libfcgi/os_unix.c |
|
| 884 | 1 | ||
| 885 | 1 | cp $CWD/fcgi-2.4.0-autotools.patch $PKG/$PRGNAM-$VERSION |
|
| 886 | 1 | patch -p0 < $PKG/$PRGNAM-$VERSION/fcgi-2.4.0-autotools.patch |
|
| 887 | 1 | ||
| 888 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 889 | 1 | echo -e '\E[01;33;40m'"configurando em "`pwd` ;tput sgr0; |
|
| 890 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 891 | 1 | echo -e '\E[01;36;40m' |
|
| 892 | 1 | ||
| 893 | 1 | CFLAGS="$SLKCFLAGS" \ |
|
| 894 | 1 | CXXFLAGS="$SLKCFLAGS" \ |
|
| 895 | 1 | ./configure \ |
|
| 896 | 1 | --prefix=/usr \ |
|
| 897 | 1 | --sysconfdir=/etc \ |
|
| 898 | 1 | --localstatedir=/var |
|
| 899 | 1 | ||
| 900 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 901 | 1 | echo -e '\E[01;33;40m'"make em "`pwd` ;tput sgr0; |
|
| 902 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 903 | 1 | echo -e '\E[01;32;40m' |
|
| 904 | 1 | make |
|
| 905 | 1 | ||
| 906 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 907 | 1 | echo -e '\E[01;33;40m'"make install "`pwd` ;tput sgr0; |
|
| 908 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 909 | 1 | echo -e '\E[01;38;40m' |
|
| 910 | 1 | ||
| 911 | 1 | make install DESTDIR=$PKG |
|
| 912 | 1 | ||
| 913 | 1 | ||
| 914 | 1 | if [ -d $PKG/usr/man ]; then |
|
| 915 | 1 | ( cd $PKG/usr/man |
|
| 916 | 1 | find . -type f -exec gzip -9 {} \; |
|
| 917 | 1 | for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done |
|
| 918 | 1 | ) |
|
| 919 | 1 | fi |
|
| 920 | 1 | ||
| 921 | 1 | mkdir -p $PKG/install |
|
| 922 | 1 | cat $CWD/slack-desc > $PKG/install/slack-desc |
|
| 923 | 1 | ||
| 924 | 1 | cd $PKG |
|
| 925 | 1 | /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |
|
| 926 | 1 | tput sgr0; |
|
| 927 | 1 | ||
| 928 | 1 | </pre> |
|
| 929 | 1 | ||
| 930 | 1 | ||
| 931 | 1 | h3. Modfastcgi-2.4.2 for apache Slackbuild |
|
| 932 | 1 | ||
| 933 | 1 | The mod_fastcgi will generate a patch for your apache 2.x.x modules |
|
| 934 | 1 | ||
| 935 | 1 | Get the module source http://www.fastcgi.com/ or directly here |
|
| 936 | 1 | http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz |
|
| 937 | 1 | ||
| 938 | 1 | ||
| 939 | 1 | patch |
|
| 940 | 1 | *mod_fastcgi-2.4.2-update.patch* |
|
| 941 | 1 | <pre> |
|
| 942 | 1 | sorry, to big 774 lines ... search in google, or try without it |
|
| 943 | 1 | </pre> |
|
| 944 | 1 | ||
| 945 | 1 | Patch for you save in Sorce + Slackbuilds dir |
|
| 946 | 1 | ||
| 947 | 1 | _*' mod_fastcgi-2.4.2-apache2.2.patch* |
|
| 948 | 1 | <pre> |
|
| 949 | 1 | --- mod_fastcgi-2.4.2/fcgi.h 2006-03-22 16:59:55.000000000 +0000 |
|
| 950 | 1 | +++ mod_fastcgi-2.4.2/fcgi.h 2006-03-22 17:04:41.000000000 +0000 |
|
| 951 | 1 | @@ -73,6 +73,36 @@ |
|
| 952 | 1 | #define ap_reset_timeout(a) |
|
| 953 | 1 | #define ap_unblock_alarms() |
|
| 954 | 1 | ||
| 955 | 1 | +/* starting with apache 2.2 the backward-compatibility defines for |
|
| 956 | 1 | + * 1.3 APIs are not available anymore. Define them ourselves here. |
|
| 957 | 1 | + */ |
|
| 958 | 1 | +#ifndef ap_copy_table |
|
| 959 | 1 | + |
|
| 960 | 1 | +#define ap_copy_table apr_table_copy |
|
| 961 | 1 | +#define ap_cpystrn apr_cpystrn |
|
| 962 | 1 | +#define ap_destroy_pool apr_pool_destroy |
|
| 963 | 1 | +#define ap_isspace apr_isspace |
|
| 964 | 1 | +#define ap_make_array apr_array_make |
|
| 965 | 1 | +#define ap_make_table apr_table_make |
|
| 966 | 1 | +#define ap_null_cleanup apr_pool_cleanup_null |
|
| 967 | 1 | +#define ap_palloc apr_palloc |
|
| 968 | 1 | +#define ap_pcalloc apr_pcalloc |
|
| 969 | 1 | +#define ap_psprintf apr_psprintf |
|
| 970 | 1 | +#define ap_pstrcat apr_pstrcat |
|
| 971 | 1 | +#define ap_pstrdup apr_pstrdup |
|
| 972 | 1 | +#define ap_pstrndup apr_pstrndup |
|
| 973 | 1 | +#define ap_push_array apr_array_push |
|
| 974 | 1 | +#define ap_register_cleanup apr_pool_cleanup_register |
|
| 975 | 1 | +#define ap_snprintf apr_snprintf |
|
| 976 | 1 | +#define ap_table_add apr_table_add |
|
| 977 | 1 | +#define ap_table_do apr_table_do |
|
| 978 | 1 | +#define ap_table_get apr_table_get |
|
| 979 | 1 | +#define ap_table_set apr_table_set |
|
| 980 | 1 | +#define ap_table_setn apr_table_setn |
|
| 981 | 1 | +#define ap_table_unset apr_table_unset |
|
| 982 | 1 | + |
|
| 983 | 1 | +#endif /* defined(ap_copy_table) */ |
|
| 984 | 1 | + |
|
| 985 | 1 | #if (defined(HAVE_WRITEV) && !HAVE_WRITEV && !defined(NO_WRITEV)) || defined WIN32 |
|
| 986 | 1 | #define NO_WRITEV |
|
| 987 | 1 | #endif |
|
| 988 | 1 | --- mod_fastcgi-2.4.2/Makefile.AP2 2006-03-22 17:04:55.000000000 +0000 |
|
| 989 | 1 | +++ mod_fastcgi-2.4.2/Makefile.AP2 2006-03-22 17:05:22.000000000 +0000 |
|
| 990 | 1 | @@ -20,8 +20,6 @@ |
|
| 991 | 1 | ||
| 992 | 1 | all: local-shared-build |
|
| 993 | 1 | ||
| 994 | 1 | -install: install-modules |
|
| 995 | 1 | - |
|
| 996 | 1 | clean: |
|
| 997 | 1 | -rm -f *.o *.lo *.slo *.la |
|
| 998 | 1 | </pre> |
|
| 999 | 1 | ||
| 1000 | 1 | Outro patch para voce slavar junto ao fonte e aos slackbuilds |
|
| 1001 | 1 | ||
| 1002 | 1 | _*' mod_fastcgi-2.4.2-fix_warnings.patch* |
|
| 1003 | 1 | ||
| 1004 | 1 | <pre> |
|
| 1005 | 1 | --- mod_fastcgi-2.4.2/fcgi_config.c 2007-05-25 16:01:49.000000000 +0200 |
|
| 1006 | 1 | +++ mod_fastcgi-2.4.2/fcgi_config.c 2007-05-25 16:06:42.000000000 +0200 |
|
| 1007 | 1 | @@ -694,7 +694,7 @@ |
|
| 1008 | 1 | return invalid_value(tp, name, fs_path, option, err); |
|
| 1009 | 1 | } |
|
| 1010 | 1 | else if (strcasecmp(option, "-min-server-life") == 0) { |
|
| 1011 | 1 | - if ((err = get_int(tp, &arg, &s->minServerLife, 0))) |
|
| 1012 | 1 | + if ((err = get_u_int(tp, &arg, &s->minServerLife, 0))) |
|
| 1013 | 1 | return invalid_value(tp, name, NULL, option, err); |
|
| 1014 | 1 | } |
|
| 1015 | 1 | else if (strcasecmp(option, "-priority") == 0) { |
|
| 1016 | 1 | @@ -763,12 +763,12 @@ |
|
| 1017 | 1 | { |
|
| 1018 | 1 | if (s->group == NULL) |
|
| 1019 | 1 | { |
|
| 1020 | 1 | - s->group = ap_psprintf(tp, "#%ld", fcgi_util_get_server_gid(cmd->server)); |
|
| 1021 | 1 | + s->group = ap_psprintf(tp, "#%d", fcgi_util_get_server_gid(cmd->server)); |
|
| 1022 | 1 | } |
|
| 1023 | 1 | ||
| 1024 | 1 | if (s->user == NULL) |
|
| 1025 | 1 | { |
|
| 1026 | 1 | - s->user = ap_psprintf(p, "#%ld", fcgi_util_get_server_uid(cmd->server)); |
|
| 1027 | 1 | + s->user = ap_psprintf(p, "#%d", fcgi_util_get_server_uid(cmd->server)); |
|
| 1028 | 1 | } |
|
| 1029 | 1 | ||
| 1030 | 1 | s->uid = ap_uname2id(s->user); |
|
| 1031 | 1 | @@ -954,12 +954,12 @@ |
|
| 1032 | 1 | { |
|
| 1033 | 1 | if (s->group == NULL) |
|
| 1034 | 1 | { |
|
| 1035 | 1 | - s->group = ap_psprintf(tp, "#%ld", fcgi_util_get_server_gid(cmd->server)); |
|
| 1036 | 1 | + s->group = ap_psprintf(tp, "#%d", fcgi_util_get_server_gid(cmd->server)); |
|
| 1037 | 1 | } |
|
| 1038 | 1 | ||
| 1039 | 1 | if (s->user == NULL) |
|
| 1040 | 1 | { |
|
| 1041 | 1 | - s->user = ap_psprintf(p, "#%ld", fcgi_util_get_server_uid(cmd->server)); |
|
| 1042 | 1 | + s->user = ap_psprintf(p, "#%d", fcgi_util_get_server_uid(cmd->server)); |
|
| 1043 | 1 | } |
|
| 1044 | 1 | ||
| 1045 | 1 | s->uid = ap_uname2id(s->user); |
|
| 1046 | 1 | ||
| 1047 | 1 | </pre> |
|
| 1048 | 1 | ||
| 1049 | 1 | *fastcgi.conf* |
|
| 1050 | 1 | ||
| 1051 | 1 | <pre> |
|
| 1052 | 1 | # This is the Apache server configuration file providing FastCGI support.. |
|
| 1053 | 1 | # |
|
| 1054 | 1 | # Documentation is available at <http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html> |
|
| 1055 | 1 | ||
| 1056 | 1 | LoadModule fastcgi_module lib/httpd/modules/mod_fastcgi.so |
|
| 1057 | 1 | ||
| 1058 | 1 | # To use FastCGI to process .fcg .fcgi & .fpl scripts |
|
| 1059 | 1 | AddHandler fastcgi-script fcg fcgi fpl |
|
| 1060 | 1 | </pre> |
|
| 1061 | 1 | ||
| 1062 | 1 | ||
| 1063 | 1 | *doinst.sh* |
|
| 1064 | 1 | ||
| 1065 | 1 | <pre> |
|
| 1066 | 1 | cp /etc/httpd/httpd.conf /etc/httpd/httpd.old |
|
| 1067 | 1 | echo "Include /etc/httpd/extra/fastcgi.conf" >> /etc/httpd/httpd.conf |
|
| 1068 | 1 | echo "Restarting httpd ..." |
|
| 1069 | 1 | sh /etc/rc.d/rc.httpd restart |
|
| 1070 | 1 | </pre> |
|
| 1071 | 1 | ||
| 1072 | 1 | ||
| 1073 | 1 | *slack-desc* |
|
| 1074 | 1 | ||
| 1075 | 1 | <pre> |
|
| 1076 | 1 | |-----handy-ruler------------------------------------------------------| |
|
| 1077 | 1 | mod_fastcgi: mod_fastcgi 2.4.2 |
|
| 1078 | 1 | mod_fastcgi: |
|
| 1079 | 1 | mod_fastcgi: A fastcgi module for httpd |
|
| 1080 | 1 | mod_fastcgi: |
|
| 1081 | 1 | mod_fastcgi: |
|
| 1082 | 1 | mod_fastcgi: |
|
| 1083 | 1 | mod_fastcgi: |
|
| 1084 | 1 | mod_fastcgi: |
|
| 1085 | 1 | mod_fastcgi: |
|
| 1086 | 1 | mod_fastcgi: |
|
| 1087 | 1 | </pre> |
|
| 1088 | 1 | ||
| 1089 | 1 | ||
| 1090 | 1 | *modfastcgi.Slackbuild |
|
| 1091 | 1 | ||
| 1092 | 1 | <pre> |
|
| 1093 | 1 | #!/bin/sh |
|
| 1094 | 1 | # |
|
| 1095 | 1 | # $Id: mod_fastcgi-server.SlackBuild 275 2005-03-08 01:20:25Z freerock $ |
|
| 1096 | 1 | ||
| 1097 | 1 | CWD=`pwd` |
|
| 1098 | 1 | TMP=${TMP:-/tmp} |
|
| 1099 | 1 | PKG=$TMP/package-mod_fastcgi |
|
| 1100 | 1 | ||
| 1101 | 1 | VERSION=2.4.2 |
|
| 1102 | 1 | ARCH=${ARCH:-i486} |
|
| 1103 | 1 | BUILD=1 |
|
| 1104 | 1 | ||
| 1105 | 1 | if [ ! -d $TMP ]; then |
|
| 1106 | 1 | mkdir -p $TMP # location to build the source |
|
| 1107 | 1 | fi |
|
| 1108 | 1 | rm -rf $PKG |
|
| 1109 | 1 | mkdir -p $PKG |
|
| 1110 | 1 | ||
| 1111 | 1 | if [ "$ARCH" = "i386" ]; then |
|
| 1112 | 1 | SLKCFLAGS="-O2 -march=i386 -mcpu=i686" |
|
| 1113 | 1 | elif [ "$ARCH" = "i486" ]; then |
|
| 1114 | 1 | SLKCFLAGS="-O2 -march=i486 -mcpu=i686" |
|
| 1115 | 1 | elif [ "$ARCH" = "s390" ]; then |
|
| 1116 | 1 | SLKCFLAGS="-O2" |
|
| 1117 | 1 | elif [ "$ARCH" = "x86_64" ]; then |
|
| 1118 | 1 | SLKCFLAGS="-O2" |
|
| 1119 | 1 | fi |
|
| 1120 | 1 | ||
| 1121 | 1 | cd $TMP |
|
| 1122 | 1 | tar xzvf $CWD/mod_fastcgi-$VERSION.tar.gz |
|
| 1123 | 1 | ||
| 1124 | 1 | cd mod_fastcgi-$VERSION |
|
| 1125 | 1 | ||
| 1126 | 1 | echo "copiando patch ..." |
|
| 1127 | 1 | ||
| 1128 | 1 | cp $CWD/mod_fastcgi-2.4.2-apache2.2.patch $TMP/mod_fastcgi-$VERSION |
|
| 1129 | 1 | cp $CWD/mod_fastcgi-2.4.2-update.patch $TMP/mod_fastcgi-$VERSION |
|
| 1130 | 1 | cp $CWD/mod_fastcgi-2.4.2-fix_warnings.patch $TMP/mod_fastcgi-$VERSION |
|
| 1131 | 1 | ||
| 1132 | 1 | echo "aplicando patch ..." |
|
| 1133 | 1 | ||
| 1134 | 1 | patch -p1 < mod_fastcgi-2.4.2-apache2.2.patch |
|
| 1135 | 1 | patch -p1 < mod_fastcgi-2.4.2-update.patch |
|
| 1136 | 1 | patch -p1 < mod_fastcgi-2.4.2-fix_warnings.patch |
|
| 1137 | 1 | ||
| 1138 | 1 | rm Makefile |
|
| 1139 | 1 | ||
| 1140 | 1 | cat Makefile.AP2 > Makefile |
|
| 1141 | 1 | ||
| 1142 | 1 | LDFLAGS=-s \ |
|
| 1143 | 1 | CFLAGS="$SLKCFLAGS" \ |
|
| 1144 | 1 | CXXFLAGS="$SLKCFLAGS" |
|
| 1145 | 1 | ||
| 1146 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 1147 | 1 | echo -e '\E[01;33;40m'"make em "`pwd` ;tput sgr0; |
|
| 1148 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 1149 | 1 | echo -e '\E[01;32;40m' |
|
| 1150 | 1 | ||
| 1151 | 1 | topdir=$(/usr/bin/dirname $(/usr/sbin/apxs -q exp_installbuilddir)) |
|
| 1152 | 1 | ||
| 1153 | 1 | make top_dir=${topdir} |
|
| 1154 | 1 | ||
| 1155 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 1156 | 1 | echo -e '\E[01;33;40m'"make install "`pwd` ;tput sgr0; |
|
| 1157 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 1158 | 1 | echo -e '\E[01;36;40m' |
|
| 1159 | 1 | ||
| 1160 | 1 | make top_dir=${topdir} DESTDIR=$PKG MKINSTALLDIRS="mkdir -p" install |
|
| 1161 | 1 | ||
| 1162 | 1 | tput sgr0; |
|
| 1163 | 1 | ||
| 1164 | 1 | mkdir -p $PKG/etc/httpd/extra/ |
|
| 1165 | 1 | cp -a $CWD/fastcgi.conf $PKG/etc/httpd/extra/ |
|
| 1166 | 1 | ||
| 1167 | 1 | echo "Criando diretório de documentação ..." |
|
| 1168 | 1 | mkdir -p $PKG/usr/doc/mod_fastcgi-$VERSION |
|
| 1169 | 1 | ||
| 1170 | 1 | echo "Copiando arquivos de documetação ..." |
|
| 1171 | 1 | cp -a INSTALL README CHANGES $PKG/usr/doc/mod_fastcgi-$VERSION |
|
| 1172 | 1 | ||
| 1173 | 1 | chmod 644 $PKG/usr/doc/mod_fastcgi-$VERSION/* |
|
| 1174 | 1 | chown root.root $PKG/usr/doc/mod_fastcgi-$VERSION/* |
|
| 1175 | 1 | ||
| 1176 | 1 | find $PKG -type f | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded |
|
| 1177 | 1 | gzip -9 $PKG/usr/man/*/* |
|
| 1178 | 1 | ||
| 1179 | 1 | echo "criando diretório de scripts instalação ..." |
|
| 1180 | 1 | mkdir -p $PKG/install |
|
| 1181 | 1 | cat $CWD/slack-desc > $PKG/install/slack-desc |
|
| 1182 | 1 | cat $CWD/doinst.sh >> $PKG/install/doinst.sh |
|
| 1183 | 1 | ||
| 1184 | 1 | echo "criando o pacote ..." |
|
| 1185 | 1 | cd $PKG |
|
| 1186 | 1 | makepkg -l y -c n $TMP/mod_fastcgi-$VERSION-$ARCH-$BUILD.tgz |
|
| 1187 | 1 | ||
| 1188 | 1 | # Clean up the extra stuff: |
|
| 1189 | 1 | if [ "$1" = "--cleanup" ]; then |
|
| 1190 | 1 | rm -rf $TMP/template-$VERSION |
|
| 1191 | 1 | rm -rf $PKG |
|
| 1192 | 1 | fi |
|
| 1193 | 1 | </pre> |
|
| 1194 | 1 | ||
| 1195 | 1 | ||
| 1196 | 1 | h3. Mysql++ Slackbuild |
|
| 1197 | 1 | ||
| 1198 | 1 | You can get the sources of Mysql++ at http://tangentsoft.net/mysql++/ or directly in |
|
| 1199 | 1 | http://tangentsoft.net/mysql++/releases/mysql++-2.3.2.tar.gz |
|
| 1200 | 1 | ||
| 1201 | 1 | ||
| 1202 | 1 | You may need some how-to or tutorials on internet for mysql++ , so you may like this |
|
| 1203 | 1 | http://www.devarticles.com/c/a/Cplusplus/Building-a-Store-Application-With-MySQL-and-C/ |
|
| 1204 | 1 | save this with *slack-desc* name in the sources + mysql++.Slacbuild directory |
|
| 1205 | 1 | ||
| 1206 | 1 | <pre> |
|
| 1207 | 1 | # HOW TO EDIT THIS FILE: |
|
| 1208 | 1 | # The "handy ruler" below makes it easier to edit a package description. Line |
|
| 1209 | 1 | # up the first '|' above the ':' following the base package name, and the '|' on |
|
| 1210 | 1 | # the right side marks the last column you can put a character in. You must make |
|
| 1211 | 1 | # exactly 11 lines for the formatting to be correct. It's also customary to |
|
| 1212 | 1 | # leave one space after the ':'. |
|
| 1213 | 1 | ||
| 1214 | 1 | |-----handy-ruler------------------------------------------------------| |
|
| 1215 | 1 | mysql++: mysql++-2.3.2 |
|
| 1216 | 1 | mysql++: |
|
| 1217 | 1 | mysql++: MySQL++ is a powerful C++ wrapper for MySQL's C API. |
|
| 1218 | 1 | mysql++: Its purpose is to make working with queries as easy as working |
|
| 1219 | 1 | mysql++: with STL containers. |
|
| 1220 | 1 | mysql++: |
|
| 1221 | 1 | mysql++: |
|
| 1222 | 1 | mysql++: |
|
| 1223 | 1 | mysql++: |
|
| 1224 | 1 | mysql++: |
|
| 1225 | 1 | mysql++: |
|
| 1226 | 1 | </pre> |
|
| 1227 | 1 | ||
| 1228 | 1 | ||
| 1229 | 1 | Now you can build package with mysql++.Slackbuild |
|
| 1230 | 1 | ||
| 1231 | 1 | *Mysql++.Slackbuild |
|
| 1232 | 1 | ||
| 1233 | 1 | <pre> |
|
| 1234 | 1 | #!/bin/sh |
|
| 1235 | 1 | ||
| 1236 | 1 | # Slackware build script for mysql++ |
|
| 1237 | 1 | # Written by Chess Griffin <chess at chessgriffin dot com> |
|
| 1238 | 1 | ||
| 1239 | 1 | PRGNAM=mysql++ |
|
| 1240 | 1 | VERSION=2.3.2 |
|
| 1241 | 1 | ARCH=${ARCH:-i486} |
|
| 1242 | 1 | BUILD=${BUILD:-1} |
|
| 1243 | 1 | TAG=${TAG:-MSXP} |
|
| 1244 | 1 | CWD=$(pwd) |
|
| 1245 | 1 | TMP=${TMP:-/tmp/SBo} |
|
| 1246 | 1 | PKG=$TMP/package-$PRGNAM |
|
| 1247 | 1 | OUTPUT=${OUTPUT:-/tmp} |
|
| 1248 | 1 | ||
| 1249 | 1 | if [ "$ARCH" = "i486" ]; then |
|
| 1250 | 1 | SLKCFLAGS="-O2 -march=i486 -mtune=i686" |
|
| 1251 | 1 | elif [ "$ARCH" = "i686" ]; then |
|
| 1252 | 1 | SLKCFLAGS="-O2 -march=i686 -mtune=i686" |
|
| 1253 | 1 | fi |
|
| 1254 | 1 | ||
| 1255 | 1 | rm -rf $PKG |
|
| 1256 | 1 | mkdir -p $TMP $PKG $OUTPUT |
|
| 1257 | 1 | cd $TMP || exit 1 |
|
| 1258 | 1 | rm -rf $PRGNAM-$VERSION |
|
| 1259 | 1 | tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 |
|
| 1260 | 1 | cd $PRGNAM-$VERSION || exit 1 |
|
| 1261 | 1 | chown -R root:root . |
|
| 1262 | 1 | chmod -R u+w,go+r-w,a-s . |
|
| 1263 | 1 | ||
| 1264 | 1 | CFLAGS="$SLKCFLAGS" \ |
|
| 1265 | 1 | CXXFLAGS="$SLKCFLAGS" \ |
|
| 1266 | 1 | ./configure \ |
|
| 1267 | 1 | --prefix=/usr \ |
|
| 1268 | 1 | --sysconfdir=/etc \ |
|
| 1269 | 1 | --localstatedir=/var |
|
| 1270 | 1 | ||
| 1271 | 1 | make |
|
| 1272 | 1 | ||
| 1273 | 1 | make install DESTDIR=$PKG |
|
| 1274 | 1 | ||
| 1275 | 1 | if [ -d $PKG/usr/man ]; then |
|
| 1276 | 1 | ( cd $PKG/usr/man |
|
| 1277 | 1 | find . -type f -exec gzip -9 {} \; |
|
| 1278 | 1 | for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done |
|
| 1279 | 1 | ) |
|
| 1280 | 1 | fi |
|
| 1281 | 1 | ||
| 1282 | 1 | mkdir -p $PKG/install |
|
| 1283 | 1 | cat $CWD/slack-desc > $PKG/install/slack-desc |
|
| 1284 | 1 | ||
| 1285 | 1 | cd $PKG |
|
| 1286 | 1 | /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |
|
| 1287 | 1 | ||
| 1288 | 1 | </pre> |
|
| 1289 | 1 | ||
| 1290 | 1 | ||
| 1291 | 1 | ||
| 1292 | 1 | h3. ICU Slackbuild |
|
| 1293 | 1 | ||
| 1294 | 1 | optional |
|
| 1295 | 1 | ||
| 1296 | 1 | ||
| 1297 | 1 | h3. Wt-2.0.5 Slackbuild |
|
| 1298 | 1 | ||
| 1299 | 1 | Finally tou ready for Witty. |
|
| 1300 | 1 | ||
| 1301 | 1 | Get witty sources on |
|
| 1302 | 1 | http://www.webtoolkit.eu/ or in direct link |
|
| 1303 | 1 | http://easynews.dl.sourceforge.net/sourceforge/witty/wt-2.0.5.tar.gz |
|
| 1304 | 1 | ||
| 1305 | 1 | #put this description file file as *slack-desc* in wt.Slackbuild source directory |
|
| 1306 | 1 | <pre> |
|
| 1307 | 1 | # HOW TO EDIT THIS FILE: |
|
| 1308 | 1 | # The "handy ruler" below makes it easier to edit a package description. Line |
|
| 1309 | 1 | # up the first '|' above the ':' following the base package name, and the '|' on |
|
| 1310 | 1 | # the right side marks the last column you can put a character in. You must make |
|
| 1311 | 1 | # exactly 11 lines for the formatting to be correct. It's also customary to |
|
| 1312 | 1 | # leave one space after the ':'. |
|
| 1313 | 1 | ||
| 1314 | 1 | |-----handy-ruler------------------------------------------------------| |
|
| 1315 | 1 | wt: wt-2.0.5 - Webtoolkit |
|
| 1316 | 1 | wt: |
|
| 1317 | 1 | wt: Wt (pronounced 'witty') is a C++ library and application server |
|
| 1318 | 1 | wt: for developping and deploying web applications. The API is |
|
| 1319 | 1 | wt: widget-centric, and inspired by existing C++ Graphical User Interface |
|
| 1320 | 1 | wt: (GUI) APIs. To the developer, it offers complete abstraction of any |
|
| 1321 | 1 | wt: web-specific implementation details. |
|
| 1322 | 1 | wt: In contrast, a web application developed with Wt is written in only |
|
| 1323 | 1 | wt: one compiled language (C++), from which the library generates the |
|
| 1324 | 1 | wt: necessary HTML, Javascript, CGI, and AJAX code. |
|
| 1325 | 1 | wt: |
|
| 1326 | 1 | wt: http://www.webtoolkit.eu/ |
|
| 1327 | 1 | wt: |
|
| 1328 | 1 | </pre> |
|
| 1329 | 1 | ||
| 1330 | 1 | ||
| 1331 | 1 | ||
| 1332 | 1 | #put this config file in Slackbuild + source directory |
|
| 1333 | 1 | *wt_httpd.conf* |
|
| 1334 | 1 | ||
| 1335 | 1 | <pre> |
|
| 1336 | 1 | <Directory /var/www/wt/> |
|
| 1337 | 1 | #Order Deny,Allow |
|
| 1338 | 1 | Allow from all |
|
| 1339 | 1 | # Don't show indexes for directories on publicly accessible machines (Uncomment if it's a private devshell). |
|
| 1340 | 1 | #Options -Indexes |
|
| 1341 | 1 | # Enable CGIs to be executed |
|
| 1342 | 1 | Options ExecCGI |
|
| 1343 | 1 | </Directory> |
|
| 1344 | 1 | ||
| 1345 | 1 | </pre> |
|
| 1346 | 1 | ||
| 1347 | 1 | #put this post-install script file in Slackbuild + source directory |
|
| 1348 | 1 | *doinst.sh* |
|
| 1349 | 1 | <pre> |
|
| 1350 | 1 | echo "backup /etc/httpd/httpd.conf as httpd.conf.old ..." |
|
| 1351 | 1 | cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf.old |
|
| 1352 | 1 | echo "Including /etc/httpd/extra/wt_httpd.conf in httpd.conf ..." |
|
| 1353 | 1 | echo "Include /etc/httpd/extra/wt_httpd.conf" >> /etc/httpd/httpd.conf |
|
| 1354 | 1 | echo "Reloading Apache httpd ..." |
|
| 1355 | 1 | sh /etc/rc.d/rc.httpd restart |
|
| 1356 | 1 | </pre> |
|
| 1357 | 1 | ||
| 1358 | 1 | *wt.Slackbuild* |
|
| 1359 | 1 | ||
| 1360 | 1 | <pre> |
|
| 1361 | 1 | #!/bin/sh |
|
| 1362 | 1 | # Slackware build script for wt. |
|
| 1363 | 1 | NAME=wt |
|
| 1364 | 1 | ||
| 1365 | 1 | # Get the current and temporary directories |
|
| 1366 | 1 | CWD=`pwd` |
|
| 1367 | 1 | if [ "$TMP" = "" ]; then |
|
| 1368 | 1 | TMP=/tmp |
|
| 1369 | 1 | fi |
|
| 1370 | 1 | PKG=$TMP/package-$NAME |
|
| 1371 | 1 | ||
| 1372 | 1 | VERSION=${VERSION:-2.0.5} |
|
| 1373 | 1 | ARCH=${ARCH:-i486} |
|
| 1374 | 1 | BUILD=${BUILD:-1} |
|
| 1375 | 1 | ||
| 1376 | 1 | if [ "$ARCH" = "i386" ]; then |
|
| 1377 | 1 | SLKCFLAGS="-O2 -m32 -march=i386 -mcpu=i386" |
|
| 1378 | 1 | elif [ "$ARCH" = "i486" ]; then |
|
| 1379 | 1 | SLKCFLAGS="-O2 -m32 -march=i486 -mtune=i686" |
|
| 1380 | 1 | elif [ "$ARCH" = "s390" ]; then |
|
| 1381 | 1 | SLKCFLAGS="-O2" |
|
| 1382 | 1 | elif [ "$ARCH" = "x86_64" ]; then |
|
| 1383 | 1 | SLKCFLAGS="-O2" |
|
| 1384 | 1 | fi |
|
| 1385 | 1 | ||
| 1386 | 1 | if [ ! -d $TMP ]; then |
|
| 1387 | 1 | mkdir -p $TMP # location to build the source |
|
| 1388 | 1 | fi |
|
| 1389 | 1 | ||
| 1390 | 1 | # Clean up a previous build |
|
| 1391 | 1 | rm -rf $PKG |
|
| 1392 | 1 | mkdir -p $PKG |
|
| 1393 | 1 | ||
| 1394 | 1 | # Decompress |
|
| 1395 | 1 | cd $TMP |
|
| 1396 | 1 | rm -rf $NAME-$VERSION |
|
| 1397 | 1 | tar xvf $CWD/$NAME-$VERSION.tar.gz || exit 1 |
|
| 1398 | 1 | cd $NAME-$VERSION |
|
| 1399 | 1 | ||
| 1400 | 1 | # Fix |
|
| 1401 | 1 | chown -R root:root . |
|
| 1402 | 1 | find . -perm 666 -exec chmod 644 {} \; |
|
| 1403 | 1 | find . -perm 664 -exec chmod 644 {} \; |
|
| 1404 | 1 | find . -perm 600 -exec chmod 644 {} \; |
|
| 1405 | 1 | find . -perm 444 -exec chmod 644 {} \; |
|
| 1406 | 1 | find . -perm 400 -exec chmod 644 {} \; |
|
| 1407 | 1 | find . -perm 440 -exec chmod 644 {} \; |
|
| 1408 | 1 | find . -perm 777 -exec chmod 755 {} \; |
|
| 1409 | 1 | find . -perm 775 -exec chmod 755 {} \; |
|
| 1410 | 1 | find . -perm 511 -exec chmod 755 {} \; |
|
| 1411 | 1 | find . -perm 711 -exec chmod 755 {} \; |
|
| 1412 | 1 | find . -perm 555 -exec chmod 755 {} \; |
|
| 1413 | 1 | ||
| 1414 | 1 | mkdir -p $PKG/var/www/wt |
|
| 1415 | 1 | mkdir -p $PKG/etc/wt |
|
| 1416 | 1 | ||
| 1417 | 1 | mkdir $PKG/usr/src/wt |
|
| 1418 | 1 | cp $CWD/wt.Slackbuild $PKG/usr/src/wt |
|
| 1419 | 1 | ||
| 1420 | 1 | mkdir `pwd`/build |
|
| 1421 | 1 | cd `pwd`/build |
|
| 1422 | 1 | ||
| 1423 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 1424 | 1 | echo -e '\E[01;33;40m'"execucao do script cmake para wt em "`pwd` ;tput sgr0; |
|
| 1425 | 1 | echo -e '\E[01;32;40m'"**************************************************" ;tput sgr0; |
|
| 1426 | 1 | echo -e '\E[01;36;40m' |
|
| 1427 | 1 | ||
| 1428 | 1 | cmake -D DEPLOYROOT=/var/www/wt \ |
|
| 1429 | 1 | -D WEBUSER=apache \ |
|
| 1430 | 1 | -D BUILD_SHARED_LIBS=ON \ |
|
| 1431 | 1 | -D CONFIGURATION=/etc/wt \ |
|
| 1432 | 1 | -D BOOST_COMPILER=gcc \ |
|
| 1433 | 1 | -D BOOST_VERSION=1_34_1 \ |
|
| 1434 | 1 | -D BOOST_DIR=/usr \ |
|
| 1435 | 1 | -D RUNDIR=/var/run \ |
|
| 1436 | 1 | -D CMAKE_INSTALL_PREFIX=/usr \ |
|
| 1437 | 1 | -D HTTP_WITH_SSL=true \ |
|
| 1438 | 1 | -D CONNECTOR_FCGI=true \ |
|
| 1439 | 1 | -D EXAMPLES_CONNECTOR=wthttp \ |
|
| 1440 | 1 | -D WEBGROUP=users ../ |
|
| 1441 | 1 | #-D EXECUTABLE_OUTPUT_PATH=/var/www/wt/bin \ |
|
| 1442 | 1 | ||
| 1443 | 1 | ||
| 1444 | 1 | # Build |
|
| 1445 | 1 | ||
| 1446 | 1 | echo -e '\E[01;32;40m'"**************************************************" ; tput sgr0; |
|
| 1447 | 1 | echo -e '\E[01;33;40m'" Compilando wt com make em " `pwd` ; tput sgr0; |
|
| 1448 | 1 | echo -e '\E[01;32;40m'"**************************************************" ; tput sgr0; |
|
| 1449 | 1 | echo -e '\E[01;34;40m'; |
|
| 1450 | 1 | ||
| 1451 | 1 | make |
|
| 1452 | 1 | ||
| 1453 | 1 | echo -e '\E[01;32;40m'"**************************************************" ; tput sgr0; |
|
| 1454 | 1 | echo -e '\E[01;33;40m'" Compilando exemplos com make em " `pwd` ; tput sgr0; |
|
| 1455 | 1 | echo -e '\E[01;32;40m'"**************************************************" ; tput sgr0; |
|
| 1456 | 1 | echo -e '\E[01;32;40m'; |
|
| 1457 | 1 | ||
| 1458 | 1 | make -C examples |
|
| 1459 | 1 | ||
| 1460 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 1461 | 1 | echo -e '\E[01;33;40m'"instalado wt em $PKG com o make install" ;tput sgr0; |
|
| 1462 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 1463 | 1 | echo -e '\E[01;35;40m'; |
|
| 1464 | 1 | ||
| 1465 | 1 | make install DESTDIR=$PKG |
|
| 1466 | 1 | ||
| 1467 | 1 | ||
| 1468 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 1469 | 1 | echo -e '\E[01;33;40m'"instalado wt examples em $PKG " ;tput sgr0; |
|
| 1470 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 1471 | 1 | echo -e '\E[01;32;40m'; |
|
| 1472 | 1 | ||
| 1473 | 1 | ||
| 1474 | 1 | mkdir -p $PKG/usr/share/$NAME-$VERSION/examples |
|
| 1475 | 1 | cp -a $TMP/$NAME-$VERSION/build/examples $PKG/usr/share/$NAME-$VERSION/ |
|
| 1476 | 1 | ||
| 1477 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 1478 | 1 | echo -e '\E[01;33;40m'"Montando o pacote" ;tput sgr0; |
|
| 1479 | 1 | echo -e '\E[01;32;40m'"**************************************************";tput sgr0; |
|
| 1480 | 1 | ||
| 1481 | 1 | # Clean up a previous build |
|
| 1482 | 1 | rm -rf $PKG/etc/wt |
|
| 1483 | 1 | mkdir -p $PKG/etc/wt |
|
| 1484 | 1 | ||
| 1485 | 1 | rm -rf $PKG/var/www/wt |
|
| 1486 | 1 | mkdir -p $PKG/var/www/wt |
|
| 1487 | 1 | ||
| 1488 | 1 | mkdir -p $PKG/etc/httpd/extra |
|
| 1489 | 1 | cp $CWD/wt_httpd.conf $PKG/etc/httpd/extra |
|
| 1490 | 1 | ||
| 1491 | 1 | ||
| 1492 | 1 | # Gzip man pages |
|
| 1493 | 1 | find $PKG/usr/man -name "*.[123456789]" -exec gzip -9 {} \; |
|
| 1494 | 1 | ||
| 1495 | 1 | # Strip binaries |
|
| 1496 | 1 | ( cd $PKG |
|
| 1497 | 1 | find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |
|
| 1498 | 1 | find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |
|
| 1499 | 1 | ) |
|
| 1500 | 1 | ||
| 1501 | 1 | # Copy Slackware package files |
|
| 1502 | 1 | mkdir -p $PKG/install |
|
| 1503 | 1 | cat $CWD/slack-desc > $PKG/install/slack-desc |
|
| 1504 | 1 | cat $CWD/doinst.sh >> $PKG/install/doinst.sh |
|
| 1505 | 1 | ||
| 1506 | 1 | # Create package |
|
| 1507 | 1 | echo "Creating package" |
|
| 1508 | 1 | cd $PKG |
|
| 1509 | 1 | makepkg -l y -c n ../$NAME-$VERSION-$ARCH-$BUILD.tgz |
|
| 1510 | 1 | ||
| 1511 | 1 | # Clean up |
|
| 1512 | 1 | if [ "$1" = "--cleanup" ]; then |
|
| 1513 | 1 | rm -rf $TMP/$NAME-$VERSION |
|
| 1514 | 1 | rm -rf $PKG |
|
| 1515 | 1 | fi |
|
| 1516 | 1 | </pre> |
|
| 1517 | 1 | ||
| 1518 | 1 | ||
| 1519 | 1 | h3. Testing Witty without apache |
|
| 1520 | 1 | ||
| 1521 | 1 | open a konsole window and |
|
| 1522 | 1 | ||
| 1523 | 1 | <pre> |
|
| 1524 | 1 | cd /usr/share/wt-2.0.5/examples/ |
|
| 1525 | 1 | cd hello |
|
| 1526 | 1 | sh deploy.sh |
|
| 1527 | 1 | </pre> |
|
| 1528 | 1 | ||
| 1529 | 1 | then go to |
|
| 1530 | 1 | <pre> |
|
| 1531 | 1 | cd /var/www/wt/hello |
|
| 1532 | 1 | cd /var/www/wt/hello/ |
|
| 1533 | 1 | ./hello.wt --docroot . --http-address your.ip.com --http-port 8080 |
|
| 1534 | 1 | </pre> |
|
| 1535 | 1 | ||
| 1536 | 1 | and open your browser at http://you.ip.com:8080 |
|
| 1537 | 1 | ||
| 1538 | 1 | Have a fun !!! |