From 66d275cec74ecf0eab3ce03cf07bb653bb36b2f5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 21 Apr 2010 15:50:05 +0200 Subject: [PATCH] Share some vars in kernel and kernel-libc-headers. --HG-- extra : convert_revision : 0e175135911c93e2e6d0a0a73fa0ad13cfa7fd36 --- srcpkgs/kernel-libc-headers/template | 10 ++-------- srcpkgs/kernel/common-vars | 10 ++++++++++ srcpkgs/kernel/template | 9 +-------- 3 files changed, 13 insertions(+), 16 deletions(-) create mode 100644 srcpkgs/kernel/common-vars diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template index 04cf8ed1c8..e7bc15c7c3 100644 --- a/srcpkgs/kernel-libc-headers/template +++ b/srcpkgs/kernel-libc-headers/template @@ -1,18 +1,12 @@ # Template file for 'kernel-libc-headers' +. ${XBPS_SRCPKGDIR}/kernel/common-vars + pkgname=kernel-libc-headers -_kernel_ver=2.6.33 -#version=${_kernel_ver} -_kernel_patch_ver=2 -version=${_kernel_ver}.${_kernel_patch_ver} -wrksrc="linux-$version" -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 headers_install" short_desc="The Linux kernel headers for development" -maintainer="Juan RP " -checksum=6a739ce474513149c395bee5e49e64065932b35ddcae874ff21937d51093bd80 long_desc=" This package provides the linux kernel headers for use in userspace." diff --git a/srcpkgs/kernel/common-vars b/srcpkgs/kernel/common-vars new file mode 100644 index 0000000000..bdde9745fd --- /dev/null +++ b/srcpkgs/kernel/common-vars @@ -0,0 +1,10 @@ +# Common vars shared by the 'kernel' and 'kernel-libc-headers' +# build templates. +_kernel_ver=2.6.33 +#version=${_kernel_ver} +_kernel_patch_ver=2 +version=${_kernel_ver}.${_kernel_patch_ver} +wrksrc="linux-$version" +distfiles="${KERNEL_SITE}/kernel/v2.6/linux-$version.tar.bz2" +maintainer="Juan RP " +checksum=6a739ce474513149c395bee5e49e64065932b35ddcae874ff21937d51093bd80 diff --git a/srcpkgs/kernel/template b/srcpkgs/kernel/template index 3766060cfb..23b3dbf02c 100644 --- a/srcpkgs/kernel/template +++ b/srcpkgs/kernel/template @@ -1,17 +1,10 @@ # Template file for 'kernel' +. ${XBPS_SRCPKGDIR}/kernel/common-vars pkgname=kernel -_kernel_ver=2.6.33 -#version=${_kernel_ver} -_kernel_patch_ver=2 # Don't forget to set same revision in kernel-headers! #revision=1 -version=${_kernel_ver}.${_kernel_patch_ver} -wrksrc="linux-$version" -distfiles="${KERNEL_SITE}/kernel/v2.6/linux-$version.tar.bz2" build_style=custom-install short_desc="The Linux kernel and associated stuff (2.6 branch)" -maintainer="Juan RP " -checksum=6a739ce474513149c395bee5e49e64065932b35ddcae874ff21937d51093bd80 long_desc=" This package provides the linux kernel image and associated modules."