diff --git a/shutils/tmpl_vars.sh b/shutils/tmpl_vars.sh index 79abdeda83..978ae03deb 100644 --- a/shutils/tmpl_vars.sh +++ b/shutils/tmpl_vars.sh @@ -8,3 +8,4 @@ UBUNTU_SITE="http://archive.ubuntu.com/ubuntu/pool" XORG_SITE="http://xorg.freedesktop.org/releases/individual" DEBIAN_SITE="http://ftp.debian.org/debian/pool" GNOME_SITE="http://ftp.gnome.org/pub/GNOME/sources" +KERNEL_SITE="http://www.kernel.org/pub/linux" diff --git a/templates/kbd/template b/templates/kbd/template index b2a0c286e0..360e3fbe8b 100644 --- a/templates/kbd/template +++ b/templates/kbd/template @@ -1,7 +1,7 @@ # Template file for 'kbd' pkgname=kbd version=1.15 -distfiles="http://www.kernel.org/pub/linux/utils/kbd/kbd-$version.tar.bz2" +distfiles="${KERNEL_SITE}/utils/kbd/kbd-$version.tar.bz2" build_style=configure configure_args="--datadir=/lib/kbd --bindir=/sbin --localedir=/usr/share/locale --mandir=/usr/share/man" diff --git a/templates/kernel-headers/template b/templates/kernel-headers/template index 611d81fa8b..2442f38147 100644 --- a/templates/kernel-headers/template +++ b/templates/kernel-headers/template @@ -2,7 +2,7 @@ pkgname=kernel-headers version=2.6.29.1 wrksrc="linux-$version" -distfiles="http://www.kernel.org/pub/linux/kernel/v2.6/linux-$version.tar.bz2" +distfiles="${KERNEL_SITE}/kernel/v2.6/linux-$version.tar.bz2" build_style=custom-install short_desc="The Linux kernel headers" maintainer="Juan RP " diff --git a/templates/kernel-libc-headers/template b/templates/kernel-libc-headers/template index ff029786f4..d251058b98 100644 --- a/templates/kernel-libc-headers/template +++ b/templates/kernel-libc-headers/template @@ -2,7 +2,7 @@ pkgname=kernel-libc-headers version=2.6.29.1 wrksrc="linux-$version" -distfiles="http://www.kernel.org/pub/linux/kernel/v2.6/linux-$version.tar.bz2" +distfiles="${KERNEL_SITE}/kernel/v2.6/linux-$version.tar.bz2" build_style=only-install make_install_target=" INSTALL_HDR_PATH=$XBPS_DESTDIR/$pkgname-$version/usr diff --git a/templates/kernel/template b/templates/kernel/template index e544942b96..033bf23c24 100644 --- a/templates/kernel/template +++ b/templates/kernel/template @@ -5,7 +5,7 @@ version=2.6.29.1 #patch_files="unionfs-2.5.1_for_2.6.29-rc2.diff.gz" #patch_args="-p1" wrksrc="linux-$version" -distfiles="http://www.kernel.org/pub/linux/kernel/v2.6/linux-$version.tar.bz2" +distfiles="${KERNEL_SITE}/kernel/v2.6/linux-$version.tar.bz2" build_style=gnu_makefile make_build_target="bzImage modules" make_install_target="modules_install diff --git a/templates/klibc-module-init-tools/template b/templates/klibc-module-init-tools/template index 01267dd397..ec94f9c9fe 100644 --- a/templates/klibc-module-init-tools/template +++ b/templates/klibc-module-init-tools/template @@ -2,8 +2,7 @@ pkgname=klibc-module-init-tools version=3.6 wrksrc="module-init-tools-${version}" -distfiles=" -http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-$version.tar.bz2" +distfiles="${KERNEL_SITE}/utils/kernel/module-init-tools/module-init-tools-$version.tar.bz2" build_style=custom-install short_desc="Tools for managing kernel modules for initramfs" maintainer="Juan RP " diff --git a/templates/klibc-udev/template b/templates/klibc-udev/template index 9358b1bea7..c38b535fbb 100644 --- a/templates/klibc-udev/template +++ b/templates/klibc-udev/template @@ -3,8 +3,7 @@ pkgname=klibc-udev version=141 revision=1 wrksrc="udev-${version}" -distfiles=" -http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-$version.tar.bz2" +distfiles="${KERNEL_SITE}//utils/kernel/hotplug/udev-$version.tar.bz2" build_style=custom-install short_desc="A Userspace implementation of devfs (for initramfs)" maintainer="Juan RP " diff --git a/templates/klibc/template b/templates/klibc/template index 6d5100723a..41def28169 100644 --- a/templates/klibc/template +++ b/templates/klibc/template @@ -2,8 +2,7 @@ pkgname=klibc sourcepkg=klibc version=1.5.15 -distfiles=" -http://www.kernel.org/pub/linux/libs/klibc/Testing/klibc-$version.tar.bz2" +distfiles="${KERNEL_SITE}/libs/klibc/Testing/klibc-$version.tar.bz2" build_style=gnu_makefile make_install_target="INSTALLROOT=$XBPS_DESTDIR/$pkgname-$version install" short_desc="Minimal libc subset for use with initramfs" diff --git a/templates/man-pages/template b/templates/man-pages/template index f9fce00a35..335ca2ed4e 100644 --- a/templates/man-pages/template +++ b/templates/man-pages/template @@ -1,8 +1,7 @@ # Template file for 'man-pages' pkgname=man-pages version=3.20 -distfiles=" -http://www.kernel.org/pub/linux/docs/manpages/Archive/$pkgname-$version.tar.bz2" +distfiles="${KERNEL_SITE}/docs/manpages/Archive/$pkgname-$version.tar.bz2" build_style=only-install make_install_target="all prefix=$XBPS_DESTDIR/$pkgname-$version/usr" short_desc="Linux Documentation Project manual pages" diff --git a/templates/module-init-tools/template b/templates/module-init-tools/template index 7b1812a12b..bf8d7ad89e 100644 --- a/templates/module-init-tools/template +++ b/templates/module-init-tools/template @@ -3,8 +3,7 @@ pkgname=module-init-tools version=3.6 patch_files="LFS-man_pages-1.diff.bz2" patch_args="-Np1" -distfiles=" -http://www.kernel.org/pub/linux/utils/kernel/$pkgname/$pkgname-$version.tar.bz2" +distfiles="${KERNEL_SITE}//utils/kernel/$pkgname/$pkgname-$version.tar.bz2" build_style=gnu_configure configure_args="--enable-zlib --prefix=" short_desc="Tools for managing kernel modules" diff --git a/templates/pam/template b/templates/pam/template index 9164b3e20d..7a73be6d59 100644 --- a/templates/pam/template +++ b/templates/pam/template @@ -3,8 +3,7 @@ pkgname=pam sourcepkg=pam version=1.0.4 wrksrc="Linux-PAM-$version" -distfiles=" -http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-$version.tar.bz2" +distfiles="${KERNEL_SITE}/libs/pam/library/Linux-PAM-$version.tar.bz2" build_style=gnu_configure configure_args="--disable-selinux --libdir=/lib --disable-rpath --docdir=/usr/share/doc/pam --enable-securedir=/lib/security diff --git a/templates/syslinux/template b/templates/syslinux/template index 27cb9c3fdc..d3d72616bb 100644 --- a/templates/syslinux/template +++ b/templates/syslinux/template @@ -1,8 +1,7 @@ # Template file for 'syslinux' pkgname=syslinux version=3.73 -distfiles=" -http://www.kernel.org/pub/linux/utils/boot/syslinux/$pkgname-$version.tar.bz2" +distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.bz2" build_style=gnu_makefile make_install_args="INSTALLROOT=$XBPS_DESTDIR/$pkgname-$version" short_desc="A boot loader for the Linux operating system" diff --git a/templates/udev/template b/templates/udev/template index 50d5ac063b..c8c270d3b8 100644 --- a/templates/udev/template +++ b/templates/udev/template @@ -2,8 +2,7 @@ pkgname=udev version=141 patch_files="arch-udev-rules.diff" -distfiles=" -http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-${version}.tar.bz2" +distfiles="${KERNEL_SITE}/utils/kernel/hotplug/udev-${version}.tar.bz2" build_style=gnu_configure configure_args="--exec-prefix= --without-selinux" short_desc="A userspace implementation of devfs" diff --git a/templates/util-linux-ng/template b/templates/util-linux-ng/template index ed21e150cd..5d38067a54 100644 --- a/templates/util-linux-ng/template +++ b/templates/util-linux-ng/template @@ -2,7 +2,7 @@ pkgname=util-linux-ng version=2.14.2 revision=1 -distfiles="http://www.kernel.org/pub/linux/utils/$pkgname/v2.14/$pkgname-$version.tar.bz2" +distfiles="${KERNEL_SITE}/utils/$pkgname/v2.14/$pkgname-$version.tar.bz2" build_style=gnu_configure configure_args="--enable-partx --enable-write" short_desc="Miscellaneous linux utilities" diff --git a/templates/util-linux/template b/templates/util-linux/template index f5b7497e56..e27b2c98b7 100644 --- a/templates/util-linux/template +++ b/templates/util-linux/template @@ -1,7 +1,7 @@ # Template file for 'util-linux' pkgname=util-linux version=2.12r -distfiles="http://www.kernel.org/pub/linux/utils/util-linux/$pkgname-$version.tar.bz2" +distfiles="${KERNEL_SITE}/utils/util-linux/$pkgname-$version.tar.bz2" build_style=gnu_configure CFLAGS="-I/usr/include" make_install_args="ETC_DIR=$XBPS_DESTDIR/$pkgname-$version/etc diff --git a/templates/zisofs-tools/template b/templates/zisofs-tools/template index 322682a6df..f2692d8d67 100644 --- a/templates/zisofs-tools/template +++ b/templates/zisofs-tools/template @@ -1,7 +1,7 @@ # Template file for 'zisofs-tools' pkgname=zisofs-tools version=1.0.8 -distfiles="http://www.kernel.org/pub/linux/utils/fs/zisofs/$pkgname-$version.tar.bz2" +distfiles="${KERNEL_SITE}/utils/fs/zisofs/$pkgname-$version.tar.bz2" build_style=gnu_configure make_install_args="INSTALLROOT=$XBPS_DESTDIR/$pkgname-$version" short_desc="ISO9660 transparent compression tool"