Use XBPS_FETCH_CMD in packages that need to fetch something.

--HG--
extra : convert_revision : 9f7742da201cd3a2fee82c2bf6085d8cef7b00f2
This commit is contained in:
Juan RP 2009-10-17 03:16:09 +02:00
parent d99940c468
commit 2a8278bd06
4 changed files with 9 additions and 6 deletions

View File

@ -39,7 +39,7 @@ do_install()
set -e
( cd ${wrksrc}; \
msg_normal "Fetching License..."
wget http://www.adobe.com/products/eulas/pdfs/${license} ; \
$XBPS_FETCH_CMD http://www.adobe.com/products/eulas/pdfs/${license} ; \
install -d ${DESTDIR}/usr/lib/mozilla/plugins \
${DESTDIR}/usr/share/doc/${pkgname}; \
tar xfz "${XBPS_SRCDISTDIR}/$(basename ${distfiles})" \

View File

@ -42,10 +42,12 @@ Add_dependency run coreutils
pre_configure()
{
local url="http://ftp.gnu.org/gnu/bash/bash-4.0-patches"
if [ "${bash_patchlevel}" -gt 000 ]; then
for p in $(seq -w 001 ${bash_patchlevel}); do
[ -f ${XBPS_SRCDISTDIR}/bash40-${p} ] && continue
wget http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-$p
$XBPS_FETCH_CMD ${url}/bash40-$p
done
fi
cd ${wrksrc}

View File

@ -27,10 +27,12 @@ Add_dependency run ncurses-libs
pre_configure()
{
local url="http://ftp.gnu.org/gnu/$pkgname/$pkgname-6.0-patches"
if [ "${_patch_ver}" -gt 000 ]; then
for p in $(seq -w 001 ${_patch_ver}); do
[ -f ${XBPS_SRCDISTDIR}/readline60-${p} ] && continue
wget http://ftp.gnu.org/gnu/$pkgname/$pkgname-6.0-patches/readline60-$p
$XBPS_FETCH_CMD ${url}/readline60-$p
done
fi
cd ${wrksrc}

View File

@ -1,7 +1,7 @@
# Template file for 'usbutils'
pkgname=usbutils
version=0.86
revision=1
revision=2
distfiles="${SOURCEFORGE_SITE}/linux-usb/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--datadir=/usr/share/hwdata --disable-zlib"
@ -16,13 +16,12 @@ Add_dependency full glibc
Add_dependency full libusb
Add_dependency full libusb-compat
Add_dependency build which
Add_dependency build wget
pre_configure()
{
cd $wrksrc
rm usb.ids
wget http://www.linux-usb.org/usb.ids
$XBPS_FETCH_CMD http://www.linux-usb.org/usb.ids
}
post_install()