Compare commits

...

4 Commits

Author SHA1 Message Date
Alexandre Mestiashvili
b057b317c7 Import Debian changes 1.21+ds-1
hd-idle (1.21+ds-1) unstable; urgency=medium
.
  [ Debian Janitor ]
  * Bump debhelper from old 12 to 13.
  * Set debhelper-compat version in Build-Depends.
  * Update standards version to 4.4.1, no changes needed.
.
  [ Alexandre Mestiashvili ]
  * d/watch, track new upstream
  * d/copyright:
    + new upstream source
    + switch to GPL-3+
    + add upstream to debian/* section
  * New upstream version 1.21+ds, Closes: #1026327
  * d/control
    + update build deps
    + update Homepage and Description
    + Rules-Requires-Root: no
    + bump Policy to 4.6.2
    + introduce XS-Go-Import-Path and Built-Using headers
  * d/rules, new build rules
  * d/docs, install only README.md
  * d/NEWS, new codebase
  * add d/lintian-overrides, hd-idle is statically linked
2025-08-06 15:51:53 +02:00
geos_one
aab8caab26 Import Upstream version 1.21+ds 2025-08-06 15:51:53 +02:00
Alexandre Mestiashvili
05b82773a0 Import Debian changes 1.05+ds-2
hd-idle (1.05+ds-2) unstable; urgency=medium
.
  * No-change, Source-only upload
.
hd-idle (1.05+ds-1) unstable; urgency=medium
.
  * Initial release. Closes: #924749
2025-08-06 15:48:19 +02:00
geos_one
7527bfa483 Import Upstream version 1.05+ds 2025-08-06 15:48:18 +02:00
11 changed files with 95 additions and 227 deletions

8
debian/NEWS vendored Normal file
View File

@ -0,0 +1,8 @@
hd-idle (1.21+ds-1) unstable; urgency=medium
Starting from the version 1.21, hd-idle is using a new codebase:
https://github.com/adelolmo/hd-idle - a reimplementation of
Christian Mueller's hd-idle with some extra features.
You might want to check the options and update your configs.
-- Alexandre Mestiashvili <mestia@debian.org> Fri, 22 Mar 2024 15:58:22 +0100

234
debian/changelog vendored
View File

@ -1,214 +1,38 @@
hd-idle (1.21) unstable; urgency=medium
hd-idle (1.21+ds-1) unstable; urgency=medium
[ Gray Xu ]
* Use GivenName instead of Name in the log
[ Debian Janitor ]
* Bump debhelper from old 12 to 13.
* Set debhelper-compat version in Build-Depends.
* Update standards version to 4.4.1, no changes needed.
[ Andoni del Olmo ]
* Support Jmicron USB Bridge Controller for ATA command
[ Alexandre Mestiashvili ]
* d/watch, track new upstream
* d/copyright:
+ new upstream source
+ switch to GPL-3+
+ add upstream to debian/* section
* New upstream version 1.21+ds, Closes: #1026327
* d/control
+ update build deps
+ update Homepage and Description
+ Rules-Requires-Root: no
+ bump Policy to 4.6.2
+ introduce XS-Go-Import-Path and Built-Using headers
* d/rules, new build rules
* d/docs, install only README.md
* d/NEWS, new codebase
* add d/lintian-overrides, hd-idle is statically linked
-- root <mario.fetka@disconnected-by-peer.at> Wed, 06 Aug 2025 15:39:11 +0200
-- Alexandre Mestiashvili <mestia@debian.org> Sun, 21 Apr 2024 17:21:11 +0200
hd-idle (1.20) unstable; urgency=medium
hd-idle (1.05+ds-2) unstable; urgency=medium
* Fix force hd-idle into background in init script
* Fix missing man page
* No-change, Source-only upload
-- Andoni del Olmo <andoni.delolmo@gmail.com> Fri, 17 Feb 2023 16:54:38 +0100
-- Alexandre Mestiashvili <mestia@debian.org> Thu, 19 Sep 2019 10:13:38 +0200
hd-idle (1.19) unstable; urgency=medium
hd-idle (1.05+ds-1) unstable; urgency=medium
[ Benjamin Engele ]
* Support more than 26 disks.
* Initial release. Closes: #924749
[ Paul Webster ]
* Use explicit uint64
[ Benjamin Engele ]
* Use standby instead of stop command.
* Support configuring power condition.
* Add and describe -p parameter usage.
* Adjusted documentation of power condition.
[ Martin Oemus ]
* fixed poolInterval calculation when using idle intervals of 0
[ Andoni del Olmo ]
* fixed Use UNIX time to calculate skew interval
-- Andoni del Olmo <andoni.delolmo@gmail.com> Thu, 09 Feb 2023 11:55:12 +0100
hd-idle (1.18) unstable; urgency=medium
* fix cross platform compilation
* simplify package generation in rules file
* Complete the list of targets for the service restart
-- Andoni del Olmo <andoni.delolmo@gmail.com> Wed, 17 Aug 2022 13:02:42 +0200
hd-idle (1.17) unstable; urgency=medium
[ Alexander Raab ]
* Readme cosmetics
[ Andoni del Olmo ]
* restart service after suspend
* go mod tidy
* Update readme with instructions to build with golang 17 or higher
* Add Makefile
* build debian package compiling with Makefile
* document usage of LUKS encrypted devices
* Redo explanation of how the log file works. Thanks to rabelux.
* restart service after hibernate
[ Sylvain Pasche ]
* Get statistics from device mapper devices
[ Andoni del Olmo ]
* use /sys/class/block/%s/holders for holderGetter + add test
* add test for statsForDisk
-- Andoni del Olmo <andoni.delolmo@gmail.com> Thu, 28 Jul 2022 18:12:46 +0200
hd-idle (1.16) unstable; urgency=medium
[ Maximilian Bichel ]
* Update help and man page to inform that "i" parameter with value zero never spins down disks.
[ Zhenyu Wu ]
* Try both ATA standby commands before fail.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 05 Sep 2021 19:45:17 +0200
hd-idle (1.15) unstable; urgency=medium
* Handle disks with no partitions.
Encrypted disks do not have any partitions. In this case, the disk level activity has to be taken into
consideration.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Mon, 05 Apr 2021 09:39:11 +0200
hd-idle (1.14) unstable; urgency=medium
* Add logrotate for log file /var/log/hd-idle.log
* Use partitions read/write to calculate disk activity:
It changes the method to calculate disk activity. Now the disk activity is calculated by watching read/write
changes on partition level instead of disk level.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 28 Mar 2021 14:34:51 +0200
hd-idle (1.13) unstable; urgency=medium
* Fix crash when required arguments are not given. Now it will fail
gracefully when required arguments are missing.
* Add SystemV init script.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Thu, 04 Mar 2021 20:33:26 +0100
hd-idle (1.12) unstable; urgency=medium
* Fix inconsistent spin down log. The release v1.11 changed the log output on spin down to
"/dev/sda spindown". Now is back to the format "sda spindown".
* Fix typo in help -h flag. This bug prevented showing the help on cli.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sat, 05 Dec 2020 15:43:05 +0100
hd-idle (1.11) unstable; urgency=medium
* Ignore sense response data for ata command to prevent error on arm64.
* Allow set command type in combination with -t option.
* Remove go-co-op dependency.
* Clean control and man page.
* Add copyright.
* Update readme. No need for GOPATH anymore.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sat, 31 Oct 2020 21:43:04 +0100
hd-idle (1.10) unstable; urgency=medium
* Check sectors read/write to determine disk activity
* Package. Move debian files to debian dir
* Package. Simplify rules and delete config handle system
* Update readme. Explain logs
* Update readme. Entry to response not ok error
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 09 Aug 2020 10:26:32 +0200
hd-idle (1.9) unstable; urgency=medium
* Improve log on start up and ATA error reporting.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Wed, 11 Mar 2020 10:25:00 +0200
hd-idle (1.8) unstable; urgency=medium
* Allow usage of symlinks that point to partitions. Like: by-label, by-partlabel,
by-partuuid and by-uuid.
* Improve error handling when spin down fails.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Wed, 23 Oct 2019 21:15:00 +0200
hd-idle (1.7) unstable; urgency=medium
* Change package section to admin and priority to optional.
* Fix man page format error.
* Move man page to section 8 (System administration commands and daemons).
* Sign package.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 8 Sep 2019 08:47:00 +0200
hd-idle (1.6) unstable; urgency=low
* The parameter "-s" allows to resolve symlinks for disk names also in runtime.
It is disable by default, because resolving symlinks causes an overhead.
That means that disk symlinks only get resolved on start up by default.
If the parameter "-s" is set to 1, disk symlinks will be also resolve during
execution until the symlink is resolved.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Wed, 28 Aug 2019 19:33:00 +0100
hd-idle (1.5) unstable; urgency=low
* Monitor the skew between monitoring cycles, on discovery of clock skew
reset the drive spin_down status to "spun up" and reset the time to current
in order to capture potential high loading or (more likely) recovery from
suspend or sleep
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sat, 13 Aug 2019 21:15:00 +0100
hd-idle (1.4) unstable; urgency=low
* The parameter "-a" now also supports symlinks for disk names. Thus, disks
can be specified using something like /dev/disk/by-uuid/... Use "-d" to
verify that the resulting disk name is what you want.
Please note that disk names are resolved to device nodes at startup. Also,
since many entries in /dev/disk/by-xxx are actually partitions, partition
numbers are automatically removed from the resulting device node.
* Simply log spinup.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sat, 5 Jan 2019 18:42:00 +0100
hd-idle (1.3) unstable; urgency=low
* Set sleep time to 1/10th of the shortest idle time.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Fri, 5 Oct 2018 20:47:10 +0100
hd-idle (1.2) unstable; urgency=low
* Persist user's config across package upgrades.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Mon, 17 Sep 2018 22:03:10 +0100
hd-idle (1.1) unstable; urgency=low
* Add missing feature to spin-down the specified disk immediately.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 16 Sep 2018 18:13:10 +0100
hd-idle (1.0) unstable; urgency=low
* Add "ata" api call to stop devices on top of the original functionality.
-- Andoni del Olmo <andoni.delolmo@gmail.com> Sun, 16 Sep 2018 10:01:10 +0100
-- Alexandre Mestiashvili <mestia@debian.org> Sun, 17 Mar 2019 16:37:34 +0100

1
debian/compat vendored
View File

@ -1 +0,0 @@
9

20
debian/control vendored
View File

@ -1,16 +1,24 @@
Source: hd-idle
Maintainer: Alexandre Mestiashvili <mestia@debian.org>
Section: admin
Priority: optional
Maintainer: Andoni del Olmo <andoni.delolmo@gmail.com>
Build-Depends: debhelper (>=9), golang-go:native (>= 1.3.3), dh-golang
Standards-Version: 4.3.0
Vcs-Browser: https://github.com/adelolmo/hd-idle
Vcs-Git: https://github.com/adelolmo/hd-idle.git
Build-Depends: debhelper-compat (= 13), golang-any, dh-golang
Standards-Version: 4.6.2
Vcs-Browser: https://salsa.debian.org/debian/hd-idle
Vcs-Git: https://salsa.debian.org/debian/hd-idle.git
Rules-Requires-Root: no
Homepage: https://github.com/adelolmo/hd-idle
XS-Go-Import-Path: github.com/adelolmo/hd-idle
Package: hd-idle
Architecture: any
Description: Spin down idle hard disks
Pre-Depends: ${misc:Pre-Depends}
Depends: ${misc:Depends},
${shlibs:Depends},
Built-Using:
${misc:Built-Using},
Description: Spin down idle [USB] hard disks
hd-idle is a utility program for spinning-down external disks after a period
of idle time. Since most external IDE disk enclosures don't support setting
the IDE idle timer, a program like hd-idle is required to spin down idle disks

33
debian/copyright vendored
View File

@ -1,12 +1,33 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: hd-idle
Source: https://github.com/adelolmo/hd-idle
Source: https://github.com/adelolmo/hd-idle/
Files-Excluded:
debian/*
Files: *
Copyright: 2018 Andoni del Olmo <andoni.delolmo@gmail.com>
Author: Andoni del Olmo <andoni.delolmo@gmail.com>
License: GPL-3
License: GPL-3+
Files: debian/hd-idle.8 debian/hd-idle.default debian/control
Copyright: 2007 Christian Mueller <cm1@mumac.de>
License: GPL-3
Files: debian/*
Copyright: © 2019 Alex Mestiashvili <mestia@debian.org>
© 2007 Christian Mueller <cm1@mumac.de>
@ 2018 Andoni del Olmo <andoni.delolmo@gmail.com>
License: GPL-3+
License: GPL-3+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

1
debian/docs vendored Normal file
View File

@ -0,0 +1 @@
README.md

2
debian/hd-idle.init vendored Normal file → Executable file
View File

@ -26,7 +26,7 @@ case "$1" in
start)
log_daemon_msg "Starting the hd-idle daemon" "hd-idle"
start-stop-daemon --start --quiet --oknodo --background --exec $DAEMON -- $HD_IDLE_OPTS
start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- $HD_IDLE_OPTS
log_end_msg $?
;;

1
debian/hd-idle.lintian-overrides vendored Normal file
View File

@ -0,0 +1 @@
hd-idle binary: statically-linked-binary

15
debian/rules vendored
View File

@ -1,14 +1,15 @@
#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/pkg-info.mk
%:
dh $@
override_dh_auto_build:
dh $@ --buildsystem=golang --with=golang
override_dh_auto_install:
install -d $(CURDIR)/debian/hd-idle
make install DESTDIR=$(CURDIR)/debian/hd-idle ARCH=$(DEB_HOST_ARCH)
dh_auto_install -- --no-source
override_dh_strip:
override_dh_install:
mv -vf ${CURDIR}/debian/${DEB_SOURCE}/usr/bin ${CURDIR}/debian/${DEB_SOURCE}/usr/sbin
override_dh_installman:
dh_installman debian/hd-idle.8

View File

@ -1 +1 @@
3.0 (native)
3.0 (quilt)

5
debian/watch vendored Normal file
View File

@ -0,0 +1,5 @@
version=4
opts="searchmode=plain, dversionmangle=s/\.ds//, \
filenamemangle=s%.*/v?@ANY_VERSION@%@PACKAGE@-$1.tar.xz%,repacksuffix=+ds,repack" \
https://api.github.com/repos/adelolmo/hd-idle/releases?per_page=50 \
https://api.github.com/repos/[^/]+/[^/]+/tarball/v?@ANY_VERSION@