mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
38 lines
524 B
Bash
38 lines
524 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
source versions.sh
|
||
|
|
||
|
GLSOURCES="/sources"
|
||
|
|
||
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||
|
|
||
|
[ -d wget-${wget_version} ] && rm -rf wget-${wget_version}
|
||
|
|
||
|
tar -zxf ${wget_tarball}
|
||
|
|
||
|
cd wget-${wget_version}
|
||
|
|
||
|
./configure --prefix=/usr \
|
||
|
--sysconfdir=/etc \
|
||
|
--with-ssl=openssl
|
||
|
|
||
|
make
|
||
|
if [ $? -ne 0 ]; then
|
||
|
myfail "Failed building wget"
|
||
|
fi
|
||
|
|
||
|
make install
|
||
|
if [ $? -ne 0 ]; then
|
||
|
myfail "Failed installing wget"
|
||
|
fi
|
||
|
|
||
|
popd
|
||
|
|
||
|
# cleanup
|
||
|
|
||
|
pushd $GLSOURCES
|
||
|
|
||
|
rm -rf wget-${wget_version}
|
||
|
|
||
|
popd
|