summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2001-12-23 23:25:19 +0000
committerMartin Schlemmer <azarah@gentoo.org>2001-12-23 23:25:19 +0000
commita54eb798d7f09f63a7ba7a09e860c736caa89bf8 (patch)
treee7dc52bccf3bcefb44934ff79367a9c0ce78cf60 /sys-apps/noflushd
parentremove a dodir /etc/rc.d/, as it is no longer in use (diff)
downloadgentoo-2-a54eb798d7f09f63a7ba7a09e860c736caa89bf8.tar.gz
gentoo-2-a54eb798d7f09f63a7ba7a09e860c736caa89bf8.tar.bz2
gentoo-2-a54eb798d7f09f63a7ba7a09e860c736caa89bf8.zip
moved rc-script config settings to /etc/conf.d
Diffstat (limited to 'sys-apps/noflushd')
-rw-r--r--sys-apps/noflushd/files/noflushd.confd7
-rw-r--r--sys-apps/noflushd/files/noflushd.rc612
-rw-r--r--sys-apps/noflushd/noflushd-2.4-r6.ebuild15
3 files changed, 19 insertions, 15 deletions
diff --git a/sys-apps/noflushd/files/noflushd.confd b/sys-apps/noflushd/files/noflushd.confd
new file mode 100644
index 000000000000..66fdec75d380
--- /dev/null
+++ b/sys-apps/noflushd/files/noflushd.confd
@@ -0,0 +1,7 @@
+# Config file for /etc/init.d/noflushd
+
+#TIMEOUT=60
+#DISKS=/dev/discs/disc0/disc
+#EXTRA=
+#NOFLUSHD_OPTS="-n $TIMEOUT $DISKS $EXTRA"
+
diff --git a/sys-apps/noflushd/files/noflushd.rc6 b/sys-apps/noflushd/files/noflushd.rc6
index f0d4b13cd842..40b8d472d505 100644
--- a/sys-apps/noflushd/files/noflushd.rc6
+++ b/sys-apps/noflushd/files/noflushd.rc6
@@ -1,16 +1,10 @@
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/files/noflushd.rc6,v 1.2 2001/12/06 20:17:02 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/files/noflushd.rc6,v 1.3 2001/12/23 23:25:19 azarah Exp $
-#NOTE: these variables will be moved to /etc/conf.d/noflushd soon, once
-# the new initscript changes are done. Its only here temporarily.
+# NB: Config is in /etc/conf.d/noflushd
-#you can put these in your rc.conf file if you wish
-#TIMEOUT=60
-#DISKS=/dev/discs/disc0/disc
-#EXTRA=
-#NOFLUSHD_OPTS="-n $TIMEOUT $DISKS $EXTRA"
depend() {
need localmount
@@ -19,7 +13,7 @@ depend() {
checkconfig() {
if [ -z "$NOFLUSHD_OPTS" ] ; then
eerror "You need to setup your NOFLUSHD_OPTS first"
- eerror "Check that you've adjusted for your needs"
+ eerror "Check that you've adjusted /etc/conf.d/noflushd for your needs"
return 1
fi
}
diff --git a/sys-apps/noflushd/noflushd-2.4-r6.ebuild b/sys-apps/noflushd/noflushd-2.4-r6.ebuild
index a60bb71ec3d8..bfc0fc92e302 100644
--- a/sys-apps/noflushd/noflushd-2.4-r6.ebuild
+++ b/sys-apps/noflushd/noflushd-2.4-r6.ebuild
@@ -1,13 +1,12 @@
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Dan Armak <danarmak@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/noflushd-2.4-r6.ebuild,v 1.1 2001/10/18 20:09:25 woodchip Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/noflushd-2.4-r6.ebuild,v 1.2 2001/12/23 23:25:19 azarah Exp $
# Note: the daemon's current 2.4 version has nothing to do with kernel versions
-A=noflushd_2.4.orig.tar.gz
+MY_P=${P/-/_}.orig
S=${WORKDIR}/${P}.orig
-SRC_URI="http://download.sourceforge.net/noflushd/${A}"
-
+SRC_URI="http://download.sourceforge.net/noflushd/${MY_P}.orig.tar.gz"
HOMEPAGE="http://noflushd.sourceforge.net"
DESCRIPTION="A daemon to spin down your disks and force accesses to be cached"
@@ -16,8 +15,11 @@ DEPEND="virtual/glibc
src_compile() {
- ./configure --prefix=/usr --host=${CHOST} --mandir=/usr/share/man \
- --infodir=/usr/share/info --with-docdir=/usr/share/doc/${PF} || die
+ ./configure --prefix=/usr \
+ --host=${CHOST} \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --with-docdir=/usr/share/doc/${PF} || die
emake || die
}
@@ -29,6 +31,7 @@ src_install () {
dodoc README NEWS
exeinto /etc/init.d ; newexe ${FILESDIR}/noflushd.rc6 noflushd
+ insinto /etc/conf.d ; newins ${FILESDIR}/noflushd.confd noflushd
}
pkg_postinst() {