Compare commits
No commits in common. "master" and "upstream" have entirely different histories.
8
debian/NEWS
vendored
8
debian/NEWS
vendored
@ -1,8 +0,0 @@
|
||||
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
|
38
debian/changelog
vendored
38
debian/changelog
vendored
@ -1,38 +0,0 @@
|
||||
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
|
||||
|
||||
-- root <mario.fetka@disconnected-by-peer.at> Wed, 06 Aug 2025 15:52:26 +0200
|
||||
|
||||
hd-idle (1.05+ds-2) unstable; urgency=medium
|
||||
|
||||
* No-change, Source-only upload
|
||||
|
||||
-- Alexandre Mestiashvili <mestia@debian.org> Thu, 19 Sep 2019 10:13:38 +0200
|
||||
|
||||
hd-idle (1.05+ds-1) unstable; urgency=medium
|
||||
|
||||
* Initial release. Closes: #924749
|
||||
|
||||
-- Alexandre Mestiashvili <mestia@debian.org> Sun, 17 Mar 2019 16:37:34 +0100
|
32
debian/control
vendored
32
debian/control
vendored
@ -1,32 +0,0 @@
|
||||
Source: hd-idle
|
||||
Maintainer: Alexandre Mestiashvili <mestia@debian.org>
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Build-Depends: debhelper-compat (= 12), 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
|
||||
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
|
||||
automatically.
|
||||
.
|
||||
A word of caution: hard disks don't like spinning up too often. Laptop disks
|
||||
are more robust in this respect than desktop disks but if you set your disks
|
||||
to spin down after a few seconds you may damage the disk over time due to the
|
||||
stress the spin-up causes on the spindle motor and bearings. It seems that
|
||||
manufacturers recommend a minimum idle time of 3-5 minutes, the default in
|
||||
hd-idle is 10 minutes.
|
33
debian/copyright
vendored
33
debian/copyright
vendored
@ -1,33 +0,0 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: 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+
|
||||
|
||||
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
1
debian/docs
vendored
@ -1 +0,0 @@
|
||||
README.md
|
127
debian/hd-idle.8
vendored
127
debian/hd-idle.8
vendored
@ -1,127 +0,0 @@
|
||||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH HD-IDLE 8 "September 8, 2019"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
.\" .nh disable hyphenation
|
||||
.\" .hy enable hyphenation
|
||||
.\" .ad l left justify
|
||||
.\" .ad b justify to both left and right margins
|
||||
.\" .nf disable filling
|
||||
.\" .fi enable filling
|
||||
.\" .br insert line break
|
||||
.\" .sp <n> insert n+1 empty lines
|
||||
.\" for manpage-specific macros, see man(7)
|
||||
.SH NAME
|
||||
hd-idle \- spin down idle hard disks
|
||||
.SH SYNOPSIS
|
||||
.B hd-idle
|
||||
.RI [ options ]
|
||||
.P
|
||||
.SH DESCRIPTION
|
||||
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 automatically.
|
||||
.P
|
||||
A word of caution: hard disks don't like spinning up too often. Laptop disks
|
||||
are more robust in this respect than desktop disks but if you set your disks
|
||||
to spin down after a few seconds you may damage the disk over time due to the
|
||||
stress the spin-up causes on the spindle motor and bearings. It seems that
|
||||
manufacturers recommend a minimum idle time of 3-5 minutes, the default in
|
||||
hd-idle is 10 minutes.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.B \-a name
|
||||
Set device name of disks for subsequent idle-time parameters
|
||||
.B (-i).
|
||||
This parameter is optional in the sense that there's a default entry for
|
||||
all disks which are not named otherwise by using this parameter. This can
|
||||
also be a symlink (e.g. /dev/disk/by-uuid/...)
|
||||
.TP
|
||||
.B \-i idle_time
|
||||
Idle time in seconds for the currently named disk(s) (-a <name>) or for
|
||||
all disks.
|
||||
Setting this value to "0" will never spin down the disk(s).
|
||||
.TP
|
||||
.B \-c command_type
|
||||
Api call to stop the device. Possible values are "scsi" (default value)
|
||||
and "ata".
|
||||
.TP
|
||||
.B \-p power_condition
|
||||
Power condition to send with the issued SCSI START STOP UNIT command.
|
||||
Possible values are "0-15" (inclusive). The default value of "0" works fine
|
||||
for disks accessible via the SCSI layer (USB, IEEE1394, ...), but it will
|
||||
*NOT* work as intended with real SCSI / SAS disks. A stopped SAS disk will
|
||||
not start up automatically on access, but requires a startup command for
|
||||
reactivation. Useful values for SAS disks are "2" for idle and "3" for standby.
|
||||
.TP
|
||||
.B \-s symlink_policy
|
||||
Set the policy to resolve symlinks for devices. If set to "0", symlinks
|
||||
are resolve only on start. If set to "1", symlinks are also resolved on
|
||||
runtime until success. By default symlinks are only resolve on start.
|
||||
If the symlink doesn't resolve to a device, the default configuration
|
||||
will be applied.
|
||||
.TP
|
||||
.B \-l logfile
|
||||
Name of logfile (written only after a disk has spun up). Please note that
|
||||
this option might cause the disk which holds the logfile to spin up just
|
||||
because another disk had some activity. This option should not be used on
|
||||
systems with more than one disk except for tuning purposes. On single-disk
|
||||
systems, this option should not cause any additional spinups.
|
||||
.TP
|
||||
.B \-t disk
|
||||
Spin-down the specified disk immediately and exit. It can be used in combination
|
||||
with
|
||||
.B \-c
|
||||
to specify the command type.
|
||||
.TP
|
||||
.B \-d
|
||||
Debug mode. It will print debugging info to stdout/stderr (/var/log/syslog
|
||||
if started as with systemctl)
|
||||
.TP
|
||||
.B \-h
|
||||
Print usage information.
|
||||
.SH "DISK SELECTION"
|
||||
The parameter
|
||||
.B \-a
|
||||
can be used to set a filter on the disk's device name (omit /dev/) for
|
||||
subsequent idle-time settings. The default is all disks:
|
||||
.P
|
||||
.TP
|
||||
.B \1)
|
||||
A
|
||||
.B \-i
|
||||
option before the first
|
||||
.B \-a
|
||||
option will set the default idle time.
|
||||
.TP
|
||||
.B \2)
|
||||
In order to disable spin-down of disks per default, and then re-enable
|
||||
spin-down on selected disks, set the default idle time to 0.
|
||||
.SH EXAMPLE
|
||||
hd-idle -i 0 -a sda -i 300 -a sdb -i 1200
|
||||
.P
|
||||
This example sets the default idle time to 0 (meaning hd-idle will never
|
||||
try to spin down a disk) and default "scsi" api command, then sets explicit
|
||||
idle times for disks which have the string "sda" or "sdb" in their device name.
|
||||
.SH EXAMPLE
|
||||
hd-idle -i 0 -c ata -a sda -i 300 -a sdb -i 1200 -c scsi
|
||||
.P
|
||||
This example sets the default idle time to 0 (meaning hd-idle will never
|
||||
try to spin down a disk) and default "ata" api command, then sets explicit
|
||||
idle times for disks which have the string "sda" or "sdb" in their device name
|
||||
and sets "sdb" to use "ata" api command.
|
||||
.P
|
||||
The option -c allows to set the api call that sends the spindown command.
|
||||
Possible values are "scsi" (the default value) or "ata".
|
||||
.SH AUTHOR
|
||||
hd-idle was written by Andoni del Olmo <andoni.delolmo@gmail> based on Chistian Mueller's <chris@mumac.de> work.
|
||||
.PP
|
||||
This manual page was written by Christian Mueller <chris@mumac.de>, for the Debian
|
||||
project (and may be used by others).
|
||||
.PP
|
||||
Modified by Andoni del Olmo <andoni.delolmo@gmail.com>.
|
42
debian/hd-idle.default
vendored
42
debian/hd-idle.default
vendored
@ -1,42 +0,0 @@
|
||||
# defaults file for hd-idle
|
||||
|
||||
# start hd-idle automatically?
|
||||
START_HD_IDLE=false
|
||||
|
||||
# hd-idle command line options
|
||||
# Options are:
|
||||
# -a <name> Set device name of disks for subsequent idle-time
|
||||
# parameters (-i). This parameter is optional in the
|
||||
# sense that there's a default entry for all disks
|
||||
# which are not named otherwise by using this
|
||||
# parameter. This can also be a symlink
|
||||
# (e.g. /dev/disk/by-uuid/...)
|
||||
# -i <idle_time> Idle time in seconds.
|
||||
# -c <command_type> Api call to stop the device. Possible values are "scsi"
|
||||
# (default value) and "ata".
|
||||
# -p <power_condition>
|
||||
# Power condition to send with the issued SCSI START STOP UNIT command. Possible values
|
||||
# are `0-15` (inclusive). The default value of `0` works fine for disks accessible via the
|
||||
# SCSI layer (USB, IEEE1394, ...), but it will *NOT* work as intended with real SCSI / SAS disks.
|
||||
# A stopped SAS disk will not start up automatically on access, but requires a startup command for reactivation.
|
||||
# Useful values for SAS disks are `2` for idle and `3` for standby.
|
||||
# -s symlink_policy Set the policy to resolve symlinks for devices.
|
||||
# If set to "0", symlinks are resolve only on start.
|
||||
# If set to "1", symlinks are also resolved on runtime
|
||||
# until success. By default symlinks are only resolve on start.
|
||||
# If the symlink doesn't resolve to a device, the default
|
||||
# configuration will be applied.
|
||||
# -l <logfile> Name of logfile (written only after a disk has spun
|
||||
# up). Please note that this option might cause the
|
||||
# disk which holds the logfile to spin up just because
|
||||
# another disk had some activity. This option should
|
||||
# not be used on systems with more than one disk
|
||||
# except for tuning purposes. On single-disk systems,
|
||||
# this option should not cause any additional spinups.
|
||||
#
|
||||
# Options not exactly useful here:
|
||||
# -t <disk> Spin-down the specified disk immediately and exit.
|
||||
# -d Debug mode. It will print debugging info to
|
||||
# stdout/stderr (/var/log/syslog if started as with systemctl)
|
||||
# -h Print usage information.
|
||||
#HD_IDLE_OPTS="-i 180 -l /var/log/hd-idle.log"
|
50
debian/hd-idle.init
vendored
50
debian/hd-idle.init
vendored
@ -1,50 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
### BEGIN INIT INFO
|
||||
# Provides: hd-idle
|
||||
# Required-Start: $local_fs
|
||||
# Required-Stop: $local_fs
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Start hd-idle daemon
|
||||
# Description: Start hd-idle daemon (spin down idle hard disks)
|
||||
### END INIT INFO
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
DAEMON=/usr/sbin/hd-idle
|
||||
|
||||
[ -r /etc/default/hd-idle ] && . /etc/default/hd-idle
|
||||
|
||||
# See if the daemon is there
|
||||
test -x $DAEMON || exit 0
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
log_daemon_msg "Starting the hd-idle daemon" "hd-idle"
|
||||
|
||||
start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- $HD_IDLE_OPTS
|
||||
|
||||
log_end_msg $?
|
||||
;;
|
||||
|
||||
stop)
|
||||
log_daemon_msg "Stopping the hd-idle daemon" "hd-idle"
|
||||
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
|
||||
log_end_msg $?
|
||||
;;
|
||||
|
||||
restart|force-reload)
|
||||
$0 stop && sleep 2 && $0 start
|
||||
;;
|
||||
status)
|
||||
status_of_proc $DAEMON hd-idle && exit 0 || exit $?
|
||||
;;
|
||||
*)
|
||||
echo "Usage: /etc/init.d/hd-idle start/stop/restart/force-reload"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
1
debian/hd-idle.lintian-overrides
vendored
1
debian/hd-idle.lintian-overrides
vendored
@ -1 +0,0 @@
|
||||
hd-idle binary: statically-linked-binary
|
6
debian/hd-idle.logrotate
vendored
6
debian/hd-idle.logrotate
vendored
@ -1,6 +0,0 @@
|
||||
/var/log/hd-idle.log {
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
}
|
13
debian/hd-idle.service
vendored
13
debian/hd-idle.service
vendored
@ -1,13 +0,0 @@
|
||||
[Unit]
|
||||
Description=hd-idle - spin down idle hard disks
|
||||
Documentation=man:hd-idle(8)
|
||||
After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=/etc/default/hd-idle
|
||||
ExecStart=/usr/sbin/hd-idle $HD_IDLE_OPTS
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
15
debian/rules
vendored
15
debian/rules
vendored
@ -1,15 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
export DH_VERBOSE=1
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
%:
|
||||
dh $@ --buildsystem=golang --with=golang
|
||||
|
||||
override_dh_auto_install:
|
||||
dh_auto_install -- --no-source
|
||||
|
||||
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
|
1
debian/source/format
vendored
1
debian/source/format
vendored
@ -1 +0,0 @@
|
||||
3.0 (quilt)
|
5
debian/watch
vendored
5
debian/watch
vendored
@ -1,5 +0,0 @@
|
||||
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@
|
Loading…
x
Reference in New Issue
Block a user