sys-block/spindown - 0.4.0 (gentoo)

Search

Install

Install this version:

emerge -a =sys-block/spindown-0.4.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-block/spindown-0.4.0

Or alternatively:

emerge --autounmask-write -a =sys-block/spindown-0.4.0

Package Information

Description:
Spindown is a daemon that can spin down idle disks
Homepage:
https://code.google.com/p/spindown
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
0.4.0 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Spindown is a daemon that can spin down idle disks"
HOMEPAGE="https://code.google.com/p/spindown"
SRC_URI="https://spindown.googlecode.com/files/${P}.tar.gz"

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

RDEPEND="sys-apps/sg3_utils"

PATCHES=(
	"${FILESDIR}"/${P}-CFLAGS-LDFLAGS.patch
	"${FILESDIR}"/${P}-Makefile.patch
	"${FILESDIR}"/${P}-musl-time-include.patch
)

src_compile() {
	emake CXX="$(tc-getCXX)"
}

src_install() {
	insinto /etc
	newins spindown.conf.example spindown.conf

	newinitd "${FILESDIR}"/spindownd.initd-r1 spindownd
	newconfd "${FILESDIR}"/spindownd.confd-r1 spindownd

	dosbin spindownd
	dodoc CHANGELOG README TODO spindown.conf.example
}

pkg_postinst() {
	elog "Before starting spindownd the first time"
	elog "you should modify ${EROOT}/etc/spindown.conf"
	elog
	elog "To start spindownd by default"
	elog "you should add it to the default runlevel:"
	elog "  rc-update add spindownd default"
}

Inherited Eclasses

Dependencies

RDEPEND

sys-apps/sg3_utils

Manifest for 0.4.0

Type File Size Source URLs
DIST spindown-0.4.0.tar.gz 36837 bytes https://spindown.googlecode.com/files/spindown-0.4.0.tar.gz