version 1.1.2.2, 2014/01/07 08:48:01
|
version 1.3.2.2, 2017/06/14 14:56:24
|
Line 20 CMD=$1
|
Line 20 CMD=$1
|
MK=${2:-make} |
MK=${2:-make} |
P=${3:-/tmp/elwix} |
P=${3:-/tmp/elwix} |
B=$4 |
B=$4 |
PFX="--prefix ${P}" | PFX="--prefix=${P}" |
shift; shift; shift; shift; |
shift; shift; shift; shift; |
echo ">>> Working script ${MK} into ${PFX}" |
echo ">>> Working script ${MK} into ${PFX}" |
|
|
if [ -n "${B}" ]; then |
if [ -n "${B}" ]; then |
PFX="${PFX} --build ${B}" | PFX="${PFX} --host=${B}" |
fi |
fi |
|
|
TOP=$(pwd) |
TOP=$(pwd) |
Line 52 if [ $P = "/tmp/elwix" ]; then
|
Line 52 if [ $P = "/tmp/elwix" ]; then
|
install -d /tmp/elwix/share |
install -d /tmp/elwix/share |
fi |
fi |
|
|
find . -name .deps -type d -exec rm -rf {} \; | find ${ADDSRC} -name .deps -type d -exec rm -rf {} \; |
|
|
case $CMD in |
case $CMD in |
|
automake) |
|
cd ${ADDSRC}/automake |
|
echo ">>> Now rebuild elwix $CMD program ..." |
|
;; |
sudo) |
sudo) |
cd ${ADDSRC}/sudo |
cd ${ADDSRC}/sudo |
./configure --sysconfdir=/etc --libexecdir=/usr/local/libexec --with-ignore-dot \ |
./configure --sysconfdir=/etc --libexecdir=/usr/local/libexec --with-ignore-dot \ |
Line 79 case $CMD in
|
Line 83 case $CMD in
|
${MK} install || exit 1 |
${MK} install || exit 1 |
echo ">>> Now rebuild elwix $CMD program ..." |
echo ">>> Now rebuild elwix $CMD program ..." |
;; |
;; |
mpd) | readline) |
cd ${ADDSRC}/libpdel | cd ${ADDSRC}/readline |
| ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 |
${MK} || exit 1 |
find . -name \*.so\* -type f -exec install {} ${P}/lib \; | ${MK} install || exit 1 |
cd .. | echo ">>> Now rebuild elwix $CMD program ..." |
cd ${ADDSRC}/mpd/src | ;; |
| confuse) |
| cd ${ADDSRC}/confuse |
| ${CEXEC} INSTALL="/usr/bin/install" ./configure --disable-nls --enable-shared ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 |
${MK} || exit 1 |
|
${MK} install || exit 1 |
|
echo ">>> Now rebuild elwix $CMD program ..." |
|
;; |
|
mpd) |
|
# cd ${ADDSRC}/libpdel |
|
# ${MK} clean || exit 1 |
|
# ${MK} || exit 1 |
|
# find . -name \*.so\* -type f -exec install {} ${P}/lib \; |
|
# cd .. |
|
cd ${ADDSRC}/mpd/src |
|
${CEXEC} INSTALL="/usr/bin/install" DESTDIR=${WORLD} ./configure |
|
${MK} DESTDIR=${WORLD} clean || exit 1 |
|
${MK} DESTDIR=${WORLD} || exit 1 |
install mpd5 ${P}/sbin || exit 1 |
install mpd5 ${P}/sbin || exit 1 |
echo ">>> Now rebuild elwix $CMD program ..." |
echo ">>> Now rebuild elwix $CMD program ..." |
;; |
;; |
Line 120 case $CMD in
|
Line 141 case $CMD in
|
install ttcp ${P}/bin || exit 1 |
install ttcp ${P}/bin || exit 1 |
echo ">>> Now rebuild elwix $CMD program ..." |
echo ">>> Now rebuild elwix $CMD program ..." |
;; |
;; |
|
iperf) |
|
cd ${ADDSRC}/iperf |
|
./configure --disable-silent-rules ${PFX} || exit 1 |
|
${MK} clean || exit 1 |
|
${MK} || exit 1 |
|
${MK} install || exit 1 |
|
echo ">>> Now rebuild elwix $CMD program ..." |
|
;; |
trafshow) |
trafshow) |
cd ${ADDSRC}/trafshow |
cd ${ADDSRC}/trafshow |
./configure --sysconfdir=/etc ${PFX} || exit 1 |
./configure --sysconfdir=/etc ${PFX} || exit 1 |
Line 130 case $CMD in
|
Line 159 case $CMD in
|
;; |
;; |
ipsec-tools) |
ipsec-tools) |
cd ${ADDSRC}/ipsec-tools |
cd ${ADDSRC}/ipsec-tools |
./configure --enable-shared --sysconfdir=/etc/racoon --localstatedir=/var/run \ | ./configure --enable-shared --sysconfdir=/etc/racoon --localstatedir=/var/run --with-pkgversion=elwix-0.8.2 \ |
--enable-debug --enable-ipv6 --enable-adminport --enable-stats \ |
--enable-debug --enable-ipv6 --enable-adminport --enable-stats \ |
--enable-dpd --enable-natt=yes --enable-frag --enable-hybrid \ |
--enable-dpd --enable-natt=yes --enable-frag --enable-hybrid \ |
--without-libpam --disable-gssapi --with-libradius --without-libldap \ |
--without-libpam --disable-gssapi --with-libradius --without-libldap \ |
Line 171 case $CMD in
|
Line 200 case $CMD in
|
;; |
;; |
igmpproxy) |
igmpproxy) |
cd ${ADDSRC}/igmpproxy |
cd ${ADDSRC}/igmpproxy |
./configure ${PFX} || exit 1 | ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 |
${MK} || exit 1 |
${MK} install || exit 1 |
${MK} install || exit 1 |
Line 179 case $CMD in
|
Line 208 case $CMD in
|
;; |
;; |
bmon) |
bmon) |
cd ${ADDSRC}/bmon |
cd ${ADDSRC}/bmon |
./configure --disable-rrd --disable-asound --disable-dbi ${PFX} || exit 1 | LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 |
${MK} || exit 1 |
${MK} install || exit 1 |
${MK} install || exit 1 |
Line 193 case $CMD in
|
Line 222 case $CMD in
|
${MK} install || exit 1 |
${MK} install || exit 1 |
echo ">>> Now rebuild elwix $CMD program ..." |
echo ">>> Now rebuild elwix $CMD program ..." |
;; |
;; |
arping) | libnet) |
echo ">>> Building libnet ..." | |
cd ${ADDSRC}/libnet |
cd ${ADDSRC}/libnet |
./configure ${PFX} || exit 1 | ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 |
${MK} || exit 1 |
${MK} install || exit 1 |
${MK} install || exit 1 |
echo ">>> Building arping ..." | echo ">>> Now rebuild elwix $CMD program ..." |
| ;; |
| arping) |
cd ${ADDSRC}/arping |
cd ${ADDSRC}/arping |
env LDFLAGS=-L${TOP}/libnet/src CFLAGS=-I${TOP}/libnet/include ./configure ${PFX} || exit 1 | # ${CEXEC} LDFLAGS=-L${ADDSRC}/libnet/src CFLAGS=-I${ADDSRC}/libnet/include \ |
| LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 |
${MK} || exit 1 |
${MK} install || exit 1 |
${MK} install || exit 1 |
Line 210 case $CMD in
|
Line 241 case $CMD in
|
;; |
;; |
hping2) |
hping2) |
cd ${ADDSRC}/hping2 |
cd ${ADDSRC}/hping2 |
./configure ${PFX} || exit 1 | ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 | case ${TARGET_ARCH} in |
| i386|amd64) |
| CROSSCOMPILE="-D__LITTLE_ENDIAN_BITFIELD" ${MK} || exit 1 |
| ;; |
| *) |
| CROSSCOMPILE="-D__BIG_ENDIAN_BITFIELD" ${MK} || exit 1 |
| ;; |
| esac |
| ${MK} strip |
install hping2 ${P}/sbin || exit 1 |
install hping2 ${P}/sbin || exit 1 |
echo ">>> Now rebuild elwix $CMD program ..." |
echo ">>> Now rebuild elwix $CMD program ..." |
;; |
;; |
mtr) |
mtr) |
cd ${ADDSRC}/mtr |
cd ${ADDSRC}/mtr |
./configure --enable-ipv6 --without-gtk --without-glib ${PFX} || exit 1 | ${CEXEC} INSTALL="/usr/bin/install" ./configure --enable-ipv6 --without-gtk ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 |
${MK} || exit 1 |
${MK} install || exit 1 |
${MK} install || exit 1 |
Line 227 case $CMD in
|
Line 266 case $CMD in
|
ipguard) |
ipguard) |
cd ${ADDSRC}/ipguard |
cd ${ADDSRC}/ipguard |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 | ${MK} PREFIX="${PKG}" LOCALBASE="${PKG}" || exit 1 |
install ipguard ${P}/sbin || exit 1 |
install ipguard ${P}/sbin || exit 1 |
echo ">>> Now rebuild elwix $CMD program ..." |
echo ">>> Now rebuild elwix $CMD program ..." |
;; |
;; |
Line 248 case $CMD in
|
Line 287 case $CMD in
|
install upnpc-shared ${P}/bin/upnpc || exit 1 |
install upnpc-shared ${P}/bin/upnpc || exit 1 |
echo ">>> Now rebuild elwix $CMD program ..." |
echo ">>> Now rebuild elwix $CMD program ..." |
;; |
;; |
|
pimd) |
|
cd ${ADDSRC}/pimd |
|
${CEXEC} echo ./configure ${PFX} || exit 1 |
|
${MK} clean || exit 1 |
|
${MK} || exit 1 |
|
install pimd ${P}/sbin || exit 1 |
|
echo ">>> Now rebuild elwix $CMD program ..." |
|
;; |
|
pimdd) |
|
cd ${ADDSRC}/pimdd |
|
${MK} clean || exit 1 |
|
${MK} || exit 1 |
|
install pimdd ${P}/sbin || exit 1 |
|
echo ">>> Now rebuild elwix $CMD program ..." |
|
;; |
|
freevrrpd) |
|
cd ${ADDSRC}/freevrrpd |
|
${MK} clean || exit 1 |
|
${MK} || exit 1 |
|
install freevrrpd ${P}/sbin || exit 1 |
|
echo ">>> Now rebuild elwix $CMD program ..." |
|
;; |
smartmontools) |
smartmontools) |
cd ${ADDSRC}/smartmontools |
cd ${ADDSRC}/smartmontools |
./configure --enable-sample --disable-dependency-tracking --enable-drivedb ${PFX} || exit 1 |
./configure --enable-sample --disable-dependency-tracking --enable-drivedb ${PFX} || exit 1 |
Line 266 case $CMD in
|
Line 327 case $CMD in
|
;; |
;; |
quagga) |
quagga) |
cd ${ADDSRC}/quagga |
cd ${ADDSRC}/quagga |
./configure --enable-user=quagga --enable-group=quagga \ | ${CEXEC} INSTALL="/usr/bin/install" ./configure --enable-user=quagga --enable-group=quagga --disable-snmp \ |
--sysconfdir=/etc/quagga --localstatedir=/var/run/quagga \ |
--sysconfdir=/etc/quagga --localstatedir=/var/run/quagga \ |
--enable-vtysh --enable-opaque-lsa --enable-rtadv ${PFX} || exit 1 |
--enable-vtysh --enable-opaque-lsa --enable-rtadv ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
Line 274 case $CMD in
|
Line 335 case $CMD in
|
${MK} install || exit 1 |
${MK} install || exit 1 |
echo ">>> Now rebuild elwix $CMD program ..." |
echo ">>> Now rebuild elwix $CMD program ..." |
;; |
;; |
|
tmux) |
|
cd ${ADDSRC}/tmux |
|
${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1 |
|
${MK} clean || exit 1 |
|
${MK} || exit 1 |
|
${MK} install || exit 1 |
|
echo ">>> Now rebuild elwix $CMD program ..." |
|
;; |
pcre) |
pcre) |
cd ${ADDSRC}/pcre |
cd ${ADDSRC}/pcre |
./configure --enable-utf --enable-unicode-properties --enable-pcre8 \ |
./configure --enable-utf --enable-unicode-properties --enable-pcre8 \ |
Line 319 case $CMD in
|
Line 388 case $CMD in
|
;; |
;; |
rsync) |
rsync) |
cd ${ADDSRC}/rsync |
cd ${ADDSRC}/rsync |
./configure.sh --disable-debug --enable-ipv6 --with-rsyncd-conf=/etc/rsyncd.conf \ | ${CEXEC} INSTALL="/usr/bin/install" ./configure.sh --disable-debug --enable-ipv6 --with-rsyncd-conf=/etc/rsyncd.conf \ |
--disable-iconv --with-included-popt ${PFX} || exit 1 |
--disable-iconv --with-included-popt ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 |
${MK} || exit 1 |
Line 378 case $CMD in
|
Line 447 case $CMD in
|
;; |
;; |
lighttpd) |
lighttpd) |
cd ${ADDSRC}/lighttpd |
cd ${ADDSRC}/lighttpd |
./configure --enable-static --with-openssl ${PFX} || exit 1 | ./configure --libdir=/usr/local/lib/lighttpd --without-attr --without-bzip2 \ |
| --without-gdbm --without-libev --without-lua --without-memcached --with-openssl \ |
| --without-valgrind --enable-static ${PFX} || exit 1 |
${MK} clean || exit 1 |
${MK} clean || exit 1 |
${MK} || exit 1 |
${MK} || exit 1 |
${MK} install || exit 1 |
${MK} install || exit 1 |