summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-11-19 10:23:14 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-11-19 10:23:14 +0000
commitd85655732a25b1611e1d5acfe2bc7fc7ccdd7428 (patch)
treeefe4107d6cb4a077858afa6f192b02c4be42dcac /sys-apps
parentUpdate ChangeLog for the e2fsprogs -> util-linux dep change too. Pulling in t... (diff)
downloadhistorical-d85655732a25b1611e1d5acfe2bc7fc7ccdd7428.tar.gz
historical-d85655732a25b1611e1d5acfe2bc7fc7ccdd7428.tar.bz2
historical-d85655732a25b1611e1d5acfe2bc7fc7ccdd7428.zip
Merge changes from net-misc/usbip-3.6 that just came out when I was not looking.
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/linux-misc-apps/ChangeLog9
-rw-r--r--sys-apps/linux-misc-apps/Manifest3
-rw-r--r--sys-apps/linux-misc-apps/linux-misc-apps-3.6-r1.ebuild216
3 files changed, 226 insertions, 2 deletions
diff --git a/sys-apps/linux-misc-apps/ChangeLog b/sys-apps/linux-misc-apps/ChangeLog
index 0f72d29c7aab..c31a2705673c 100644
--- a/sys-apps/linux-misc-apps/ChangeLog
+++ b/sys-apps/linux-misc-apps/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/linux-misc-apps
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/linux-misc-apps/ChangeLog,v 1.2 2012/11/19 10:02:22 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/linux-misc-apps/ChangeLog,v 1.3 2012/11/19 10:23:08 robbat2 Exp $
+
+*linux-misc-apps-3.6-r1 (19 Nov 2012)
+
+ 19 Nov 2012; Robin H. Johnson <robbat2@gentoo.org>
+ +linux-misc-apps-3.6-r1.ebuild:
+ Merge changes from net-misc/usbip-3.6 that just came out when I was not
+ looking.
*linux-misc-apps-3.6 (19 Nov 2012)
diff --git a/sys-apps/linux-misc-apps/Manifest b/sys-apps/linux-misc-apps/Manifest
index 4df17b4f201c..beb912a2ef80 100644
--- a/sys-apps/linux-misc-apps/Manifest
+++ b/sys-apps/linux-misc-apps/Manifest
@@ -3,6 +3,7 @@ AUX hpfall.initd 1216 SHA256 aa285384720c5e1be7265f45e1845b00f8450c1fb137349936c
DIST linux-3.1.tar.bz2 77190238 SHA256 2573d2378c754b0c602b57586e9311e5b38c5d1e6c137f02873833633a4b9359 SHA512 131b814325d888bb11ba552bc5bdd91ee2d8e139b06ac7ba94e716bcbbcc99ba30867eeea4aab580907916203bc526ae0bccda688151b250ba7943e193e50252 WHIRLPOOL d224dd52c7133e9768817319d0ad0d3797d426180b4d3d936d5189b500521ac4abe4abae7cc71f055d7e5194171f549b6fdb0221ae023cb35b16993741ad1e61
DIST linux-3.6.tar.bz2 82296001 SHA256 88ae0a20fd39ecae79db0ce8f9397922fae33c8b06a54ed2c883c861126c9771 SHA512 cbaefc2c4c8ab2251c3345b7b2c88d55a49e3468d8b177b05dd6d96a802efa9a052b1a1ecab8b71298bac97f45259516d88253838332b4fdb4307780ebcddce9 WHIRLPOOL e17e3800951f0c3af21015d1a1c99698d0ef70815bd4f131dd60b30baef70d4c255988857533a9a7c058388c2febfcf02d12cde2a7ed46b24fa85aeb260c0251
EBUILD linux-misc-apps-3.1.ebuild 4687 SHA256 8a511cda2faa29d215251c635a92da767ce199637ec833bf5ddad2303752622e SHA512 d00c684bebe512ef327166ab23b9433423ec9c70568165b340da8760814a6dcd106672ff6e0fbd438d55203908885017fd9c47a37d169818c92d9395957ba2cb WHIRLPOOL 015ad77eedf44e4e7dc38de2bca6261c1a9761a2de88a72c6f8c9eb980a1c6348b47f5eda7e340026aa6a16330c56936c0afe648020861ec0a62c0a0deebd7b4
+EBUILD linux-misc-apps-3.6-r1.ebuild 6069 SHA256 71bf60fcb29216d5e643332d222c148afd3a36f6605f8683a672e399d0282032 SHA512 4fd0f3336c94b8c40bba5da9830ea1617999d2bca4249481931659a96bcddd472ef5043e009c7f13580d619ec7f9699ee44dde4a3e3e77ed52228aaa1e0ca403 WHIRLPOOL ce56d418f05b69fbca58f87978e3818673888b9812878fa96e85f233d583d7307b65cc02a5509d33ceb92128cb42b3c6ceba152c582a4358fb6979eaf3c45557
EBUILD linux-misc-apps-3.6.ebuild 5559 SHA256 f49058eb29062fd7ae5afa8ccf67670f0b8ec952f1e9bf49d1a1c288a80e68dc SHA512 5257ddab330fbc3534da70807f44ead5476aa7478c360fa0c7c34c1893b835b5fe71f388e04bcc6ba55c64eff75c9b7d2b26278b4b24a87c3cf899d8070da974 WHIRLPOOL 1e5c78dc6cc712dcc3e0815803af13d31d6a5f87078e52c2893c58a06ed0c78d2fec5c1e373bed6d41b81baf3f12afd93455cfd5794f88c9537aaa2deea59528
-MISC ChangeLog 712 SHA256 afba276870e0d54596e01c7e2a55b554f10e7ebdcfb1eda81e0200c3c37ab322 SHA512 665bd946e847012df937b91558a0153a0e7cb61ce17081da2e0fd801f675e613bea438410c4bf8a95cedf3a9b1c679109ba47676d7bd0a1d30790263e93eb7a2 WHIRLPOOL a6641654dabad3bdb0b90bad9a7f0a91173c70245cb2e9173f167932f4600b5a6c62bc32a33551cdc9333b4df7ced2e2e1b92d07db19983a77b3beb3a4669b48
+MISC ChangeLog 924 SHA256 ef2cdadc69c777253cf03f5c5ce340f4dea8458f49932fb48e4ff01cef9680b1 SHA512 b72814a0ff35a4a198ac7062b2a6b388e9b982ddc0ffcc4ce62cd3b068c69620d7fac2b7f90da4699db9dd9d74920ca8ff6ff218a9d97c83fc7ddef544f1ec24 WHIRLPOOL 6cbf84fd411ddaa5cdedfd97696688ef0b158d2425928208eb77986693323b8ca8e15356ea69874433ffe01d8d8290b8806c958269d1fd1cef60a1e134a366a1
MISC metadata.xml 202 SHA256 76dbb4a720140d78f0ddfb2b2782c03852169c201c1f507eb17ef4d2a82f212a SHA512 bd1c14da72bdd52e3bea3056f5b9f908c31d6915b651d15d80a0a7d26778c97cde493ae9ca4352bd313eb16ddbed9b169c6b620c7f4a9b77973f7077fa8d997c WHIRLPOOL c073cc4c903e3377c7aee652c5661a1657cc5ba70c3deb4b2d7b2d0e31a78fb8b362b2f255de3faddbf4c46250d14d2d5d39a6a13b910ad18f8d53df362163a0
diff --git a/sys-apps/linux-misc-apps/linux-misc-apps-3.6-r1.ebuild b/sys-apps/linux-misc-apps/linux-misc-apps-3.6-r1.ebuild
new file mode 100644
index 000000000000..0eebbe540805
--- /dev/null
+++ b/sys-apps/linux-misc-apps/linux-misc-apps-3.6-r1.ebuild
@@ -0,0 +1,216 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/linux-misc-apps/linux-misc-apps-3.6-r1.ebuild,v 1.1 2012/11/19 10:23:08 robbat2 Exp $
+
+EAPI=4
+
+inherit versionator eutils toolchain-funcs linux-info autotools flag-o-matic
+
+DESCRIPTION="Misc tools bundled with kernel sources"
+HOMEPAGE="http://kernel.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc"
+IUSE="static-libs tcpd"
+
+MY_PV="${PV/_/-}"
+MY_PV="${MY_PV/-pre/-git}"
+
+LINUX_V=$(get_version_component_range 1-2)
+
+if [ ${PV/_rc} != ${PV} ]; then
+ LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1))
+ PATCH_VERSION=$(get_version_component_range 1-3)
+ LINUX_PATCH=patch-${PV//_/-}.bz2
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+ mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}"
+elif [ $(get_version_component_count) == 4 ]; then
+ # stable-release series
+ LINUX_VER=$(get_version_component_range 1-3)
+ LINUX_PATCH=patch-${PV}.bz2
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}"
+else
+ LINUX_VER=${PV}
+fi
+
+LINUX_SOURCES=linux-${LINUX_VER}.tar.bz2
+SRC_URI="${SRC_URI} mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
+
+# pciutils for cpupower
+# pmtools also provides turbostat
+# sysfsutils and glib for usbip - remove sysfsutils in 3.7 or 3.8
+RDEPEND="sys-apps/pciutils
+ sys-apps/hwids
+ >=sys-fs/sysfsutils-2
+ >=dev-libs/glib-2.6
+ tcpd? ( sys-apps/tcp-wrappers )
+ !sys-power/pmtools
+ !net-misc/usbip"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/linux-${LINUX_VER}"
+
+# All of these are integrated with the kernel build system,
+# No make install, and ideally build with with the root Makefile
+TARGETS_SIMPLE=(
+ Documentation/accounting/getdelays.c
+ Documentation/cgroups/cgroup_event_listener.c
+ Documentation/laptops/dslm.c
+ Documentation/laptops/hpfall.c
+ Documentation/networking/timestamping/timestamping.c
+ Documentation/watchdog/src/watchdog-simple.c
+ tools/lguest/lguest.c
+ tools/vm/page-types.c
+ tools/vm/slabinfo.c
+ usr/gen_init_cpio.c
+)
+# tools/hv/hv_kvp_daemon.c - broken in 3.7 by missing linux/hyperv.h userspace
+# Documentation/networking/ifenslave.c - obsolete
+# Documentation/ptp/testptp.c - pending linux-headers-3.0
+
+# These have a broken make install, no DESTDIR
+TARGET_MAKE_SIMPLE=(
+ tools/firewire:nosy-dump
+ tools/power/x86/turbostat:turbostat
+ tools/power/x86/x86_energy_perf_policy:x86_energy_perf_policy
+ Documentation/misc-devices/mei:mei-amt-version
+ tools/power/cpupower:cpupower
+)
+# tools/perf - covered by dev-utils/perf
+# tools/usb - testcases only
+# tools/virtio - testcaes only
+
+ #for _pattern in {Documentation,scripts,tools,usr,include,lib,"arch/*/include",Makefile,Kbuild,Kconfig}; do
+src_unpack() {
+ unpack ${LINUX_SOURCES}
+
+ MY_A=
+ for _AFILE in ${A}; do
+ [[ ${_AFILE} == ${LINUX_SOURCES} ]] && continue
+ [[ ${_AFILE} == ${LINUX_PATCH} ]] && continue
+ MY_A="${MY_A} ${_AFILE}"
+ done
+ [[ -n ${MY_A} ]] && unpack ${MY_A}
+}
+
+src_prepare() {
+ if [[ -n ${LINUX_PATCH} ]]; then
+ epatch "${DISTDIR}"/${LINUX_PATCH}
+ fi
+
+ pushd drivers/staging/usbip/userspace >/dev/null &&
+ eautoreconf -i -f -v &&
+ popd >/dev/null || die "usbip"
+
+ libs="-lcpupower -lrt -lpci"
+ sed -i \
+ -e "/$libs/{ s,${libs},,g; s,\$, ${libs},g;}" \
+ "${S}"/tools/power/cpupower/Makefile
+
+ sed -i \
+ -e '/^nosy-dump.*LDFLAGS/d' \
+ -e '/^nosy-dump.*CFLAGS/d' \
+ -e '/^nosy-dump.*CPPFLAGS/s,CPPFLAGS =,CPPFLAGS +=,g' \
+ "${S}"/tools/firewire/Makefile
+}
+
+cpupower_make() {
+ emake ${makeargs} \
+ CC="$(tc-getCC)" AR="$(tc-getAR)" \
+ docdir="/usr/share/doc/${PF}/cpupower" \
+ mandir="/usr/share/man" \
+ libdir="/usr/$(get_libdir)" \
+ OPTIMIZATION="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ CPUFREQ_BENCH=/bin/false \
+ DEBUG=/bin/false \
+ STRIP=/bin/true \
+ "$@" || die
+}
+
+kernel_asm_arch() {
+ a="${1:${ARCH}}"
+ case ${a} in
+ # Merged arches
+ x86|amd64) echo x86 ;;
+ ppc*) echo powerpc ;;
+ # Non-merged
+ alpha|arm|ia64|m68k|mips|sh|sparc*) echo ${1} ;;
+ *) die "TODO: Update the code for your asm-ARCH symlink" ;;
+ esac
+}
+
+src_configure() {
+ cd drivers/staging/usbip/userspace && \
+ econf \
+ $(use_enable static-libs static) \
+ $(use tcpd || echo --without-tcp-wrappers) \
+ --with-usbids-dir=/usr/share/misc
+}
+
+src_compile() {
+ local karch=$(kernel_asm_arch "${ARCH}")
+ # This is the minimal amount needed to start building host binaries.
+ #emake allmodconfig ARCH=${karch} || die
+ #emake prepare modules_prepare ARCH=${karch} || die
+ #touch Module.symvers
+
+ # Now we can start building
+ for s in ${TARGETS_SIMPLE[@]} ; do
+ dir=$(dirname $s) src=$(basename $s) bin=${src%.c}
+ einfo "Building $s => $bin"
+ emake -f /dev/null M=${dir} ARCH=${karch} ${s%.c} || die
+ done
+
+ for t in ${TARGET_MAKE_SIMPLE[@]} ; do
+ dir=${t/:*} target=${t/*:}
+ einfo "Building $dir => $target"
+ emake -C $dir ARCH=${karch} $target || die
+ done
+
+ emake -C drivers/staging/usbip/userspace
+
+ # cpupower is special
+ einfo "Buildling cpupower"
+ cd "${S}"/tools/power/cpupower
+ cpupower_make ARCH=${karch} all || die
+}
+
+src_install() {
+ into /usr
+ for s in ${TARGETS_SIMPLE[@]} ; do
+ dir=$(dirname $s) src=$(basename $s) bin=${src%.c}
+ einfo "Installing $s => $bin"
+ dosbin ${dir}/${bin} || die "Failed to install ${bin}"
+ done
+
+ for t in ${TARGET_MAKE_SIMPLE[@]} ; do
+ dir=${t/:*} target=${t/*:}
+ einfo "Installing $dir => $target"
+ dosbin ${dir}/${target} || die
+ done
+
+ pushd drivers/staging/usbip/userspace >/dev/null \
+ || die "Missing usbip/userspace"
+ emake DESTDIR="${D}" install
+
+ newdoc README README.usbip
+ newdoc AUTHORS AUTHORS.usbip
+ dodoc ../usbip_protocol.txt
+ popd >/dev/null
+
+ local karch=$(kernel_asm_arch "${ARCH}")
+ pushd "${S}"/tools/power/cpupower >/dev/null \
+ || die "Missing tools/power/cpupower"
+ cpupower_make ARCH=${karch} DESTDIR="${D}" install || die
+ popd >/dev/null
+
+ # Avoid conflict
+ rm -f "${D}"/usr/include/cpufreq.h
+
+ newconfd "${FILESDIR}"/hpfall.confd hpfall
+ newinitd "${FILESDIR}"/hpfall.initd hpfall
+ prune_libtool_files
+}