From e830dbcac375b2bc7f99f651065d5c0bac3100af Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 13 Apr 2010 21:50:33 +0200 Subject: [PATCH] Added cpufrequtils-007 build template. --HG-- extra : convert_revision : d2fc9512e2e2c55d1fb5b2f2d2b75438aec6c85d --- srcpkgs/cpufrequtils/depends | 2 ++ .../cpufrequtils/libcpufreq-devel.template | 15 +++++++++++++ srcpkgs/cpufrequtils/libcpufreq.template | 13 +++++++++++ srcpkgs/cpufrequtils/template | 22 +++++++++++++++++++ srcpkgs/libcpufreq | 1 + srcpkgs/libcpufreq-devel | 1 + xbps-src/common/mapping_shlib_binpkg.txt | 1 + 7 files changed, 55 insertions(+) create mode 100644 srcpkgs/cpufrequtils/depends create mode 100644 srcpkgs/cpufrequtils/libcpufreq-devel.template create mode 100644 srcpkgs/cpufrequtils/libcpufreq.template create mode 100644 srcpkgs/cpufrequtils/template create mode 120000 srcpkgs/libcpufreq create mode 120000 srcpkgs/libcpufreq-devel diff --git a/srcpkgs/cpufrequtils/depends b/srcpkgs/cpufrequtils/depends new file mode 100644 index 0000000000..54c3e3211f --- /dev/null +++ b/srcpkgs/cpufrequtils/depends @@ -0,0 +1,2 @@ +abi_depends=">=007" +api_depends="${abi_depends}" diff --git a/srcpkgs/cpufrequtils/libcpufreq-devel.template b/srcpkgs/cpufrequtils/libcpufreq-devel.template new file mode 100644 index 0000000000..951d138dfa --- /dev/null +++ b/srcpkgs/cpufrequtils/libcpufreq-devel.template @@ -0,0 +1,15 @@ +# Template file for 'libcpufreq-devel'. +# +short_desc="libcpufreq - development tools" +long_desc=" + This package provides everything that is needed for developing own + programs using libcpufreq." + +Add_dependency run glibc-devel +Add_dependency run libcpufreq + +do_install() +{ + mkdir -p ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/{lib,include} ${DESTDIR}/usr +} diff --git a/srcpkgs/cpufrequtils/libcpufreq.template b/srcpkgs/cpufrequtils/libcpufreq.template new file mode 100644 index 0000000000..e1a1549087 --- /dev/null +++ b/srcpkgs/cpufrequtils/libcpufreq.template @@ -0,0 +1,13 @@ +# Template file for 'libcpufreq'. +# +short_desc="Library for the kernel cpufreq subsystem" +long_desc=" + This library provide an unified method to access the CPUFreq kernel interface." + +Add_dependency run glibc + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so.* ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/cpufrequtils/template b/srcpkgs/cpufrequtils/template new file mode 100644 index 0000000000..418cb23e43 --- /dev/null +++ b/srcpkgs/cpufrequtils/template @@ -0,0 +1,22 @@ +# Template file for 'cpufrequtils' +pkgname=cpufrequtils +version=007 +distfiles="${KERNEL_SITE}/utils/kernel/cpufreq/$pkgname-$version.tar.bz2" +build_style=gnu_makefile +make_build_args="V=1" +make_install_args="mandir=/usr/share/man" +short_desc="Userspace tools for the kernel cpufreq subsystem" +maintainer="Juan RP " +checksum=8af517369ad8a8ac40a9e47abe2e1970a9249932ab336367aaf8f68cd979dbad +long_desc=" + Userspace tools for the kernel cpufreq subsystem." + +subpackages="libcpufreq libcpufreq-devel" +Add_dependency run glibc +Add_dependency run libcpufreq +Add_dependency build gettext + +pre_install() +{ + sed -i "s|/usr/bin/install|/bin/install|g" ${wrksrc}/Makefile +} diff --git a/srcpkgs/libcpufreq b/srcpkgs/libcpufreq new file mode 120000 index 0000000000..2f6de1e957 --- /dev/null +++ b/srcpkgs/libcpufreq @@ -0,0 +1 @@ +cpufrequtils \ No newline at end of file diff --git a/srcpkgs/libcpufreq-devel b/srcpkgs/libcpufreq-devel new file mode 120000 index 0000000000..2f6de1e957 --- /dev/null +++ b/srcpkgs/libcpufreq-devel @@ -0,0 +1 @@ +cpufrequtils \ No newline at end of file diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index e2a11c3b10..b1ec31d05e 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -593,3 +593,4 @@ libsgutils2.so sg3_utils sg3_utils-devel liblvm2app.so.2 liblvm2app liblvm2app-devel libgdu.so gnome-disk-utility gnome-disk-utility-devel libgdu-gtk.so gnome-disk-utility gnome-disk-utility-devel +libcpufreq.so libcpufreq libcpufreq-devel