--- embedaddon/build.sh 2011/07/20 12:58:19 1.3 +++ embedaddon/build.sh 2011/10/31 12:56:54 1.5 @@ -4,16 +4,21 @@ # # ./build.sh [package] [prefix_dir] [os_specific_set] [other_make_opts ...] # -# $Id: build.sh,v 1.3 2011/07/20 12:58:19 misho Exp $ +# $Id: build.sh,v 1.5 2011/10/31 12:56:54 misho Exp $ # CMD=$1 MK=${2:-make} P=${3:-/tmp} +B=$4 PFX="--prefix ${P}" -shift; shift; shift; +shift; shift; shift; shift; echo ">>> Working script ${MK} into ${PFX}" +if [ -n "${B}" ]; then + PFX="${PFX} --build ${B}" +fi + TOP=$(pwd) echo ">>> TOPDIR=${TOP}" @@ -21,9 +26,10 @@ case $CMD in sudo) cd sudo # [ ! -r config.log ] && \ - ./configure --sysconfdir=/etc --with-ignore-dot --with-tty-tickets \ - --with-env-editor --with-logincap \ - --with-long-otp-prompt --with-pam --with-logfac=local2 ${PFX} + ./configure --sysconfdir=/etc --libexecdir=/usr/libexec --with-ignore-dot \ + --with-tty-tickets --with-env-editor --with-logincap \ + --with-long-otp-prompt --with-pam --with-logfac=local2 \ + ${PFX} ${MK} clean ${MK} ${MK} install @@ -121,7 +127,9 @@ case $CMD in --enable-dhcpv6 ${PFX} ${MK} clean ${MK} - ${MK} install + install server/dhcpd ${P}/sbin + install relay/dhcrelay ${P}/sbin + install dhcpctl/omshell ${P}/bin echo ">>> Now rebuild elwix firmware image ..." ;; dhcping) @@ -196,8 +204,8 @@ case $CMD in ${MK} install echo ">>> Now rebuild elwix firmware image ..." ;; - hping2) - cd hping2 + hping) + cd hping # [ ! -r config.log ] && \ ./configure ${PFX} ${MK} clean