Mercurial > hg > portage
changeset 107:72f3700549ac
noflushd is in portage
author | holger@hoho.dyndns.org |
---|---|
date | Tue, 03 Mar 2009 23:13:27 +0100 |
parents | ee276ccfcc7b |
children | be32a2c5e1fd 8d7233f563ab |
files | sys-block/noflushd/Manifest sys-block/noflushd/files/noflushd-2.7.4-SCSI.patch sys-block/noflushd/files/noflushd.confd sys-block/noflushd/files/noflushd.rc6 sys-block/noflushd/noflushd-2.7.4.ebuild |
diffstat | 5 files changed, 0 insertions(+), 110 deletions(-) [+] |
line wrap: on
line diff
--- a/sys-block/noflushd/Manifest Sat Feb 28 20:20:36 2009 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -AUX noflushd-2.7.4-SCSI.patch 420 RMD160 dfa4bda2d4cf83eb9e50d92b2b641a38c2f6b3ca SHA1 49d680916160cc1258531e3bbe3469da49a88d0d SHA256 89a80449b3123874732ec9a0b2f315fe26b98b673882256c76cd0e3d882520ec -AUX noflushd.confd 356 RMD160 254e729eeef41c07805f145abe1a8f4831928513 SHA1 15ed3819b8ac677e9fa637d2fd65179b2833ae72 SHA256 373605b32c82970239c694fae3e698a079834090f59b7255b984de4c07671cd7 -AUX noflushd.rc6 776 RMD160 d3012b284160d61b5f446a967b997e65963b279b SHA1 35b4dbd0d46ede89474a25824b9140f17a02dfe9 SHA256 de5c4ca015cb23826742f55d56c1cba4b4a9d019405abec50ff49de95c1a5a18 -DIST noflushd-2.7.4.tar.gz 149686 RMD160 c009cb8d288e482e5b516f135a168315cfc799e7 SHA1 32cbb38def18c68329b5451e53f7e25816b77ca3 SHA256 4118451009808ba18bc773b872ac43f1e4244a09d39126210860f846248e2360 -EBUILD noflushd-2.7.4.ebuild 1399 RMD160 cc7d2ce317d1e2f07a9d7fb81b20bc6b03c35768 SHA1 2281b0a07a489c09f7123b8db5459a7fa45d7904 SHA256 7d82c07a0fe9255d674de7dccad1a2273b768c24aa4f19d3d4d30d1b2dd6a8fb
--- a/sys-block/noflushd/files/noflushd-2.7.4-SCSI.patch Sat Feb 28 20:20:36 2009 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ ---- noflushd-2.7.4/src/spindown.c 2004-02-27 14:41:05.000000000 +0100 -+++ noflushd-2.7.4+scsi/src/spindown.c 2004-10-23 00:02:33.185395308 +0200 -@@ -39,7 +39,7 @@ - #include <errno.h> - - /* Indicate whether SCSI support was enabled. */ --int nfd_do_scsi = 0; -+int nfd_do_scsi = 1; - - /* IDE knows two versions of several commands. Some versions work on - * old drives, some on new ones. We keep trying until we run out of
--- a/sys-block/noflushd/files/noflushd.confd Sat Feb 28 20:20:36 2009 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/files/noflushd.confd,v 1.3 2004/07/15 00:45:49 agriffis Exp $ - -# Config file for /etc/init.d/noflushd - -#TIMEOUT=60 -#DISKS=/dev/discs/disc0/disc -#EXTRA= -#NOFLUSHD_OPTS="-n $TIMEOUT $DISKS $EXTRA" -
--- a/sys-block/noflushd/files/noflushd.rc6 Sat Feb 28 20:20:36 2009 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/files/noflushd.rc6,v 1.6 2004/07/15 00:45:49 agriffis Exp $ - -# NB: Config is in /etc/conf.d/noflushd - -depend() { - need localmount -} - -checkconfig() { - if [ -z "$NOFLUSHD_OPTS" ] ; then - eerror "You need to setup your NOFLUSHD_OPTS first" - eerror "Check that you've adjusted /etc/conf.d/noflushd for your needs" - return 1 - fi -} - -start() { - checkconfig || return 1 - ebegin "Starting noflushd" - start-stop-daemon --start --quiet --exec /usr/sbin/noflushd -- $NOFLUSHD_OPTS - eend $? -} - -stop() { - ebegin "Stopping noflushd" - start-stop-daemon --stop --quiet --pidfile /var/run/noflushd.pid - eend $? -}
--- a/sys-block/noflushd/noflushd-2.7.4.ebuild Sat Feb 28 20:20:36 2009 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/noflushd-2.7.3.ebuild,v 1.5 2004/09/03 21:03:24 pvdabeel Exp $ - -inherit flag-o-matic eutils - -DESCRIPTION="A daemon to spin down your disks and force accesses to be cached" -HOMEPAGE="http://noflushd.sourceforge.net" -SRC_URI="mirror://sourceforge/noflushd/${P}.tar.gz" -RESTRICT="nomirror" -LICENSE="GPL-2" -KEYWORDS="~x86 ~amd64 ppc" -IUSE="SCSI" -SLOT="0" - -DEPEND="virtual/libc" - -src_compile() { - - if use SCSI; then - ewarn "Enabling SCSI support - you do this on your own risk!" - epatch ${FILESDIR}/${P}-SCSI.patch - fi - - # Replace -O[2-9] flags to keep the executable small - replace-flags -O[2-9] -Os - - ./configure --prefix=/usr \ - --host=${CHOST} \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --with-docdir=/usr/share/doc/${PF} || die "configure problem" - emake || die "compile problem" -} - -src_install () { - dosbin src/noflushd - doman man/noflushd.8 - dodoc README NEWS - - exeinto /etc/init.d ; newexe ${FILESDIR}/noflushd.rc6 noflushd - insinto /etc/conf.d ; newins ${FILESDIR}/noflushd.confd noflushd -} - -pkg_postinst() { - einfo 'Run "rc-update add noflushd default" to add it to the' - einfo "default runlevel." - - ewarn "noflushd works reliably with IDE devices only." - ewarn "It has possible problems with reiserfs, too." -} -