Skip to content

Commit

Permalink
sys-apps/idle3-tools: bump to version 0.9.3_pre20120123
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Closes: gentoo#9163
  • Loading branch information
ConiKost authored and tonyvroon committed Jul 11, 2018
1 parent 60bec5e commit 9dd2040
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 7 deletions.
1 change: 1 addition & 0 deletions sys-apps/idle3-tools/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST idle3-tools-0.9.1.tgz 21201 BLAKE2B 07f8f5971e8ce48d7dbf793011ae3a9697b8d9abebeca430724d241991e0b3605790eee3b50ea035e699e955557b8225ec9b66eac74a435a106e09a768c6e610 SHA512 512991fad786684bd127f7ad3af94dcea4e28cd88d52221007436172725b8d2c0c2edd578c4c95bbcd425339ed664b9d81adbabbc2bb8a4a3ea71500e21db01e
DIST idle3-tools-0.9.3_pre20120123.tar.bz2 19842 BLAKE2B 09095a1382e116c6171cf38c2d9cbdba32e38b3890f5169ed966b707bcd27f70e78efaef8c3500499fc261347c1cc228a8b39d910d719451cc11cc40fcb71b1a SHA512 309a6e500b71d64d569729f44b597fd218f983b9018373a4871a62137b32bd540524b757648fe9e873d949de772f26428cb82d16b367212e6d1fb592aa7bfbf1
22 changes: 22 additions & 0 deletions sys-apps/idle3-tools/files/makefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- a/Makefile 2012-01-11 17:18:57.000000000 +0100
+++ b/Makefile 2018-07-09 23:00:04.111252307 +0200
@@ -6,16 +6,15 @@
binprefix =
manprefix = /usr
exec_prefix = $(binprefix)/
-sbindir = $(exec_prefix)sbin
+sbindir = $(exec_prefix)usr/sbin
mandir = $(manprefix)/share/man
oldmandir = $(manprefix)/man

-CC = gcc
+CC ?= gcc
STRIP = strip

-CFLAGS := -g -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)
+CFLAGS := -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)

-LDFLAGS = -s
#LDFLAGS = -s -static
INSTALL = install
INSTALL_DATA = $(INSTALL) -m 644
20 changes: 20 additions & 0 deletions sys-apps/idle3-tools/idle3-tools-0.9.3_pre20120123.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="6"

inherit toolchain-funcs

DESCRIPTION="Set, get or disable the value of the idle3 timer found on WD HDDs"
HOMEPAGE="http://idle3-tools.sourceforge.net/"
SRC_URI="https://www.bl4ckb0x.de/files/${P}.tar.bz2"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"

PATCHES=( "${FILESDIR}"/makefile.patch )

src_compile() {
CC="$(tc-getCC)" emake
}
22 changes: 15 additions & 7 deletions sys-apps/idle3-tools/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<longdescription lang="en">
Idle3-tools provides a linux/unix utility that can disable, get and set the value
of the infamous idle3 timer found on recent Western Digital Hard Disk Drives. It
can be used as an alternative to the official wdidle3.exe proprietary utility,
without the need to reboot in a DOS environement. A power off/on cycle of the
drive will still be mandatory for new settings to be taken into account.
<maintainer type="person">
<email>[email protected]</email>
<name>Conrad Kostecki</name>
</maintainer>
<maintainer type="project">
<email>[email protected]</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription>
Idle3-tools provides a utility, that can disable, get and set the value
of the infamous idle3 timer, found on recent Western Digital Hard Disk Drives.
It can be used as an alternative to the official wdidle3.exe proprietary utility,
without the need to reboot into a DOS environement. A full power up cycle of the
drive will be still mandatory, for new settings to be taken into account.
</longdescription>
<upstream>
<bugs-to>https://sourceforge.net/p/idle3-tools/bugs/</bugs-to>
<remote-id type="sourceforge">idle3-tools</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 9dd2040

Please sign in to comment.