--- embedaddon/build.sh 2012/05/29 13:01:25 1.6.2.4 +++ embedaddon/build.sh 2013/01/28 01:49:49 1.8 @@ -4,7 +4,7 @@ # # ./build.sh [package] [make_tool] [prefix_dir] [build_arch_str] # -# $Id: build.sh,v 1.6.2.4 2012/05/29 13:01:25 misho Exp $ +# $Id: build.sh,v 1.8 2013/01/28 01:49:49 misho Exp $ # CMD=$1 @@ -43,10 +43,12 @@ if [ $P = "/tmp/elwix" ]; then install -d /tmp/elwix/share fi +find . -name .deps -type d -exec rm -rf {} \; + case $CMD in sudo) cd sudo - ./configure --sysconfdir=/etc --libexecdir=/usr/libexec --with-ignore-dot \ + ./configure --sysconfdir=/etc --libexecdir=/usr/local/libexec --with-ignore-dot \ --with-tty-tickets --with-env-editor --with-logincap \ --with-long-otp-prompt --with-pam --with-logfac=local2 \ ${PFX} @@ -119,7 +121,7 @@ case $CMD in ;; ipsec-tools) cd ipsec-tools - ./configure --enable-shared --sysconfdir=/etc/racoon --localstatedir=/var/db \ + ./configure --enable-shared --sysconfdir=/etc/racoon --localstatedir=/var/run \ --enable-debug --enable-ipv6 --enable-adminport --enable-stats \ --enable-dpd --enable-natt=yes --enable-frag --enable-hybrid \ --without-libpam --disable-gssapi --with-libradius --without-libldap \ @@ -307,7 +309,8 @@ case $CMD in ${MK} clean ${MK} ${MK} install - strip -s ${P}/bin/php +# strip -s ${P}/bin/php + rm -f ${P}/bin/php strip -s ${P}/bin/php-cgi echo ">>> Now rebuild elwix $CMD program ..." ;; @@ -337,19 +340,11 @@ case $CMD in ;; istgt) cd istgt - ./configure ${PFX} + ./configure --enable-symlink-device ${PFX} ${MK} clean ${MK} install src/istgt ${P}/bin install src/istgtcontrol ${P}/bin - echo ">>> Now rebuild elwix $CMD program ..." - ;; - thttpd) - cd thttpd - ./configure ${PFX} - ${MK} clean - ${MK} - ${MK} install echo ">>> Now rebuild elwix $CMD program ..." ;; ntp)