diff options
author | 2015-06-07 20:52:11 +0200 | |
---|---|---|
committer | 2015-06-08 08:27:27 -0400 | |
commit | 7898fcc9ea4390b949182a968176d252b9392738 (patch) | |
tree | 0c18b1092c042ed24913b5a84b8c9b9241e46908 | |
parent | app-misc/pax-utils: tree version works, bug #550300. (diff) | |
download | hardened-dev-7898fcc9ea4390b949182a968176d252b9392738.tar.gz hardened-dev-7898fcc9ea4390b949182a968176d252b9392738.tar.bz2 hardened-dev-7898fcc9ea4390b949182a968176d252b9392738.zip |
sys-apps/hdparm: Bump to 9.45
-rw-r--r-- | sys-apps/hdparm/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/hdparm/files/hdparm-9.45-musl.patch | 35 | ||||
-rw-r--r-- | sys-apps/hdparm/hdparm-9.45-r99.ebuild | 42 |
3 files changed, 80 insertions, 0 deletions
diff --git a/sys-apps/hdparm/Manifest b/sys-apps/hdparm/Manifest index dce2cb38..dff69752 100644 --- a/sys-apps/hdparm/Manifest +++ b/sys-apps/hdparm/Manifest @@ -1,6 +1,9 @@ AUX hdparm-9.39-musl.patch 1616 SHA256 c7033556b993570d3c326cd47e5fcfc1dd39e6b9b225c9527fd4bf339be76b75 SHA512 3310b600443e53ac9320e537b6b053c580d3a940619953ae7fc68aecd8e1e6b041988199bdd90ebacd174771eb92cf15be7caa2285b379cec48cd7aca7ea3051 WHIRLPOOL 5037ced4431880c61a0d97164517e5842c743d73fe7470722e39d38cd0d4690b7588d0e544b49d87c05d9980c431589afcc68e32d9814dd7edba3398e4f0458d +AUX hdparm-9.45-musl.patch 1096 SHA256 8fc853886d40814cfcd21669cf261d122ed8f1903a2405c36f13943a3bb97da8 SHA512 2518f3e447bb16ff02e8bc0d0d219ce88be6c48ea26f86c5fad3848377867a3bb8421bd3e349dc03716a6d28c4d18d6e05586c4e1b2f82bd9288af24af746631 WHIRLPOOL c780dac1557c1147bbac4443191488a9fbcee03441f8d38570575ffda9ebdc3b40056a2de2595c3a7035f4ad6495f39f3929b4b0c3cdfdbdef23ccd533bc70a6 AUX hdparm-conf.d.3 872 SHA256 37c95ff723fa578e9039613d09dbf790d99113a318c065422986c744519214e9 SHA512 968c6b9d26a71bf724728c259d35a499a644496875eac255dcac3cb4a7e5cadb677a4f6e5e0f8bbd7e1826b6fb77cb39af15b11d1e59b3e9daf9ba442b9e6f02 WHIRLPOOL 110d330860c4f5e3b1626b85ab369a02e5c092acf656edc845a2f311b5349644317ec2021063a0fb977d3b9851e0bb9c54fd66e814a080d6af3aa0f05fbd658b AUX hdparm-init-8 1469 SHA256 434beee81ba04c96fcd03e6b37a4578c2c25af2c1007368469c48dd37523d56e SHA512 f81100a4f06670639ac8c079a72028dbb0c1b6e5436e6c745c339612ad3287223d3307a40609625dd6904f737816e162af82ecc428d4405678ff0130d0f9752b WHIRLPOOL f0bb17c90466727a0a179928275a1abcfe6f669703a98a803395fe61de90aa7cc4c83b7f510cd1bdf8f44235cfcffe3c6b6a4182d7cfb6594be1b0f8936bab51 DIST hdparm-9.39.tar.gz 126989 SHA256 72d550af4526aa96f0841c79321a0ee39d636cbaf1f294e52193e90c054b3cea SHA512 7332fb1c03faa9b916864640959d31a355d4c8daebdb97dc941375a2fb2499827546fd1f1cc1435b403da399e5f5a70a30e9384b4499bec8f45c9408ad074b3c WHIRLPOOL cb3ccbab588cf349a39f2df5844444bc0db51f8b3c75fa9068507382b46a92cc32dc3132e325820ea158182de5b65f46de2913bd58fd737a3242b33729d9c7df +DIST hdparm-9.45.tar.gz 129410 SHA256 23b01caa56a995cf0897877b6aff98ea622a5df255bc2894b1a7693387f38669 SHA512 2692382f16fe9a87b7c9673bea44b8a9512b2449aaf18090f09c9e761fadc153f71d9779d063218f6951797649c0758f97242b7327da6653ea53991bf3da9eb8 WHIRLPOOL 6c424e265b7845afeff26f87654fbefe7d563404f2dee59f976594a87b375124262864305a14655bf5379e77e21bea0d8fb179e099374d7e8f952199f569ee58 EBUILD hdparm-9.39-r99.ebuild 1002 SHA256 1856e129df57d01bef8b168fe55a038fdc4a253f161e235e8065ef59dacddc62 SHA512 0a948b0a02f171dc4f0f3c6f088b72aeca47b6d7f8af27b5a06b73e596d9ee7ce48071aedc0bb37e42d09e77088577471c4d41f5694e6a49f803deeb572f1ee4 WHIRLPOOL f41d0f15bf88d29fb112e38d95bec5de115749adb2493f62949bbb9271ef7a84ef8ea8eaf9f1ebf505a21862673b463c8d180ebf363967aae3e1fd7c674e499a +EBUILD hdparm-9.45-r99.ebuild 1059 SHA256 610efd5b18638e667c955e064d896b2a76f7a354996cab3f9ce39371525f3c10 SHA512 836667acc79f9b7bd25867ac222f6565f9e2b55b0dfe20e57e06cb19fbed04523ee56a69cdd68c44924e99f5be6d55f33065a5c41f9a0deee19aa95653e99d7e WHIRLPOOL 362a12083b9d8088805bb205d2b359e01e9fc421904033f145f71f0cd7393007d6cfa5b665c72e77193ffcabfef7c4d8ac7e2cfe335691a4bc4212e105cad812 MISC metadata.xml 164 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 SHA512 8eb0d5153d388f6ea069c64b93882244816a0a09aecc0d73cb872121ce0eb24c5ccafa96aad0b620b2300f319e1af101fa7fa6c5d0d561719d49bb07da0a2eca WHIRLPOOL 11a1441bddb7a6c69653c663902b7da5767ae6ad515ac2aabfc42fe37927a1ccc21472deeee454009ff720201a41c3e4a912df42661a0a87150fb46126da2d52 diff --git a/sys-apps/hdparm/files/hdparm-9.45-musl.patch b/sys-apps/hdparm/files/hdparm-9.45-musl.patch new file mode 100644 index 00000000..a9fe0aa1 --- /dev/null +++ b/sys-apps/hdparm/files/hdparm-9.45-musl.patch @@ -0,0 +1,35 @@ +diff -ur a/hdparm-9.45/fallocate.c b/hdparm-9.45/fallocate.c +--- a/hdparm-9.45/fallocate.c 2010-10-04 20:38:39.000000000 -0100 ++++ b/hdparm-9.45/fallocate.c 2015-01-28 21:19:59.201795557 -0100 +@@ -27,7 +27,7 @@ + err = EINVAL; + #else + int fd; +- loff_t offset = 0, len; ++ off_t offset = 0, len; + int mode = 0; + + fd = open(path, O_WRONLY|O_CREAT|O_EXCL, 0600); +diff -ur a/hdparm-9.45/hdparm.h b/hdparm-9.45/hdparm.h +--- a/hdparm-9.45/hdparm.h 2014-09-27 14:31:18.000000000 -0100 ++++ b/hdparm-9.45/hdparm.h 2015-01-28 21:19:08.662427386 -0100 +@@ -1,7 +1,7 @@ + /* Some prototypes for extern functions. */ + + //#undef __KERNEL_STRICT_NAMES +-#include <linux/types.h> ++#include <sys/types.h> + + #if !defined(__GNUC__) && !defined(__attribute__) + #define __attribute__(x) +diff -ur a/hdparm-9.45/sysfs.c b/hdparm-9.45/sysfs.c +--- a/hdparm-9.45/sysfs.c 2010-10-04 20:39:20.000000000 -0100 ++++ b/hdparm-9.45/sysfs.c 2015-01-28 21:19:25.692214485 -0100 +@@ -13,6 +13,7 @@ + #include <fcntl.h> + #include <errno.h> + #include <dirent.h> ++#include <limits.h> + #include <sys/stat.h> + #include <linux/types.h> + diff --git a/sys-apps/hdparm/hdparm-9.45-r99.ebuild b/sys-apps/hdparm/hdparm-9.45-r99.ebuild new file mode 100644 index 00000000..d0826b09 --- /dev/null +++ b/sys-apps/hdparm/hdparm-9.45-r99.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-9.45.ebuild,v 1.2 2015/06/02 11:38:26 zlogene Exp $ + +EAPI="4" + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Utility to change hard drive performance parameters" +HOMEPAGE="http://sourceforge.net/projects/hdparm/" +SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" + +LICENSE="BSD GPL-2" # GPL-2 only +SLOT="0" +KEYWORDS="amd64 ~arm ~mips ~ppc ~x86" +IUSE="static" + +src_prepare() { + use static && append-ldflags -static + sed -i \ + -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \ + -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \ + Makefile || die "sed" + epatch "${FILESDIR}"/${P}-musl.patch +} + +src_compile() { + emake STRIP=: CC="$(tc-getCC)" +} + +src_install() { + into / + dosbin hdparm contrib/idectl + + newinitd "${FILESDIR}"/hdparm-init-8 hdparm + newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm + + doman hdparm.8 + dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig + docinto wiper + dodoc wiper/{README.txt,wiper.sh} +} |