Diff for /embedaddon/build.sh between versions 1.3 and 1.5.2.4

version 1.3, 2011/07/20 12:58:19 version 1.5.2.4, 2011/11/02 01:04:13
Line 1 Line 1
 #!/bin/sh  #!/bin/sh
 #  #
# (C)`10 PKG-Builder for elwix by Michael Pounov <misho@elwix.org># (C)`10 PKG-Builder for ELWIX by Michael Pounov <misho@elwix.org>
 #  #
# ./build.sh [package] [prefix_dir] [os_specific_set] [other_make_opts ...]# ./build.sh [package] [os_specific_build_set] [prefix_dir] [other_make_opts ...]
 #  #
 # $Id$  # $Id$
 #  #
Line 10 Line 10
 CMD=$1  CMD=$1
 MK=${2:-make}  MK=${2:-make}
 P=${3:-/tmp}  P=${3:-/tmp}
   B=$4
 PFX="--prefix ${P}"  PFX="--prefix ${P}"
shift; shift; shift;shift; shift; shift; shift;
 echo ">>> Working script ${MK} into ${PFX}"  echo ">>> Working script ${MK} into ${PFX}"
   
   if [ -n "${B}" ]; then
           PFX="${PFX} --build ${B}"
   fi
   
 TOP=$(pwd)  TOP=$(pwd)
 echo ">>> TOPDIR=${TOP}"  echo ">>> TOPDIR=${TOP}"
   
Line 21  case $CMD in Line 26  case $CMD in
         sudo)          sudo)
                 cd sudo                  cd sudo
 #               [ ! -r config.log ] && \  #               [ ! -r config.log ] && \
                ./configure --sysconfdir=/etc --with-ignore-dot --with-tty-tickets \                ./configure --sysconfdir=/etc --libexecdir=/usr/libexec --with-ignore-dot \
                                         --with-env-editor --with-logincap \                                        --with-tty-tickets --with-env-editor --with-logincap \
                                         --with-long-otp-prompt --with-pam --with-logfac=local2 ${PFX}                                        --with-long-otp-prompt --with-pam --with-logfac=local2 \
                                         ${PFX}
                 ${MK} clean                  ${MK} clean
                 ${MK}                  ${MK}
                ${MK} install                install src/sudo ${P}/bin
                 ln ${P}/bin/sudo ${P}/bin/sudoedit
                 install plugins/sudoers/sudoreplay ${P}/bin
                 install plugins/sudoers/visudo ${P}/sbin
                 install plugins/sudoers/.libs/sudoers.so ${P}/libexec
                 install src/.libs/libsudo_noexec.so ${P}/libexec
                 echo ">>> Now rebuild elwix firmware image ..."                  echo ">>> Now rebuild elwix firmware image ..."
                 ;;                  ;;
         ntpd)          ntpd)
Line 121  case $CMD in Line 132  case $CMD in
                                 --enable-dhcpv6 ${PFX}                                  --enable-dhcpv6 ${PFX}
                 ${MK} clean                  ${MK} clean
                 ${MK}                  ${MK}
                ${MK} install                install server/dhcpd ${P}/sbin
                 install relay/dhcrelay ${P}/sbin
                 install dhcpctl/omshell ${P}/bin
                 echo ">>> Now rebuild elwix firmware image ..."                  echo ">>> Now rebuild elwix firmware image ..."
                 ;;                  ;;
         dhcping)          dhcping)
Line 196  case $CMD in Line 209  case $CMD in
                 ${MK} install                  ${MK} install
                 echo ">>> Now rebuild elwix firmware image ..."                  echo ">>> Now rebuild elwix firmware image ..."
                 ;;                  ;;
        hping2)        hping)
                cd hping2                cd hping
 #               [ ! -r config.log ] && \  #               [ ! -r config.log ] && \
                 ./configure ${PFX}                  ./configure ${PFX}
                 ${MK} clean                  ${MK} clean
Line 396  case $CMD in Line 409  case $CMD in
                 ${MK} clean                  ${MK} clean
                 ${MK}                  ${MK}
                 ${MK} install                  ${MK} install
   #               install .libs/libpcre.so.* ${P}/lib
   #               install .libs/libpcreposix.so.* ${P}/lib
   #               install .libs/libpcrecpp.so.* ${P}/lib
   #               rm -f ${P}/lib/libpcrecpp.so*T ${P}/lib/libpcreposix.so*T
                 echo ">>> Now rebuild elwix firmware image ..."                  echo ">>> Now rebuild elwix firmware image ..."
                 ;;                  ;;
         spawn-fcgi)          spawn-fcgi)
Line 423  case $CMD in Line 440  case $CMD in
                 ${MK} clean                  ${MK} clean
                 ${MK}                  ${MK}
                 ${MK} install                  ${MK} install
   #               install xml2-config ${P}/bin
   #               install .libs/libxml2.so.* ${P}/lib
                 cd ..                  cd ..
                 cd php                  cd php
 #               [ ! -r config.log ] && \  #               [ ! -r config.log ] && \
                 ./configure --localstatedir=/var --with-config-file-scan-dir=/etc/php --disable-all \                  ./configure --localstatedir=/var --with-config-file-scan-dir=/etc/php --disable-all \
                        --enable-libxml=../libxml2/.libs --with-openssl \                        --enable-xml --enable-libxml --with-libxml-dir=${P} --with-openssl \
                         --enable-zip --enable-sqlite-utf8 ${PFX}                          --enable-zip --enable-sqlite-utf8 ${PFX}
                 ${MK} clean                  ${MK} clean
                 ${MK}                  ${MK}

Removed from v.1.3  
changed lines
  Added in v.1.5.2.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>