⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 noflushd.spec

📁 linux 系统控制硬盘旋转和停止的程序(spin down/up)
💻 SPEC
字号:
%define	version	2.7.3%define prefix /usrSummary: Daemon that sends idle disks to sleepName: noflushdVersion: %{version}Release: 1Copyright: GPLGroup: System Environment/DaemonsSource0: noflushd_%{version}-1.tar.gzPrefix: %{prefix}BuildRoot: /tmp/%{name}-%{version}-tmpVendor: Daniel Kobras <kobras@linux.de>%changelog* Thu Apr 09 2004 Daniel Kobras <kobras@linux.de>- New upstream version 2.7.3.* Tue Mar 16 2004 Daniel Kobras <kobras@linux.de>- New upstream version 2.7.2.* Sun Mar 07 2004 Daniel Kobras <kobras@linux.de>- New upstream version 2.7.1.* Tue Jan 20 2004 Daniel Kobras <kobras@linux.de>- New upstream version 2.7.* Mon May 13 2002 Daniel Kobras <kobras@linux.de>- New upstream version 2.6.3.* Sat Apr 20 2002 Daniel Kobras <kobras@linux.de>- New upstream version 2.6.2.* Tue Jan 22 2002 Daniel Kobras <kobras@linux.de>- New upstream version.* Mon Aug 06 2001 Daniel Kobras <kobras@linux.de>- New upstream version.* Tue Mar 13 2001 Daniel Kobras <kobras@linux.de>- New upstream version.* Fri Jan 20 2001 Daniel Kobras <kobras@linux.de>- New upstream version.* Fri Dec 22 2000 Daniel Kobras <kobras@linux.de>- New upstream version.* Wed Dec 20 2000 Daniel Kobras <kobras@linux.de>- New upstream version.* Tue Nov 14 2000 Klaus Knopper <knopper@knopper.net>- spec file fixes* Tue Nov 14 2000 Daniel Kobras <kobras@linux.de>  Release 2.0-1:- New upstream version.* Sat Aug 07 2000 Daniel Kobras <kobras@linux.de>  Release 1.8.5-1:- New upstream version.* Sat Aug 03 2000 Daniel Kobras <kobras@linux.de>  Release 1.8.4-1:- New upstream version- Fixed permission handling on RPM build. (rpm --rebuild should   work now also as non-root user.)* Mon Mar 13 2000 Daniel Kobras <kobras@linux.de>  Release 1.8.3-1:- New upstream version* Mon Feb  7 2000 Daniel Kobras <kobras@linux.de>  Release 1.8.2-1:- New upstream version* Thu Jan 27 2000 Daniel Kobras <kobras@linux.de>  Release 1.8.1-1:- New upstream version* Tue Jan 25 2000 Daniel Kobras <kobras@linux.de>  Release 1.8-1:- New upstream version* Sat Sep 04 1999 Daniel Kobras <kobras@linux.de>  Release 1.7.4-1:- Merged RedHat and SuSE specs* Fri Aug 27 1999 Daniel Kobras <kobras@linux.de>  Release 1.7.3-1:- Fixed several minor bugs in spec file* Wed Aug 25 1999 Daniel Kobras <kobras@linux.de>  Release 1.7.2-1:- Added RPM spec file stuff%descriptionnoflushd is a simple daemon that monitors disk activity and spins downdisks whose idle time exceeds a certain timeout. It requires a kernel threadnamed kupdate which is present in Linux kernel version 2.2.11 and later. Forearlier kernels, bdflush version 1.6 provides equal functionality.%prep%setup -n noflushd-%{version}%buildLDFLAGS="-s" CFLAGS="$RPM_OPT_FLAGS" ac_cv_prog_cc_g=no \./configure --prefix=%{prefix} --sysconfdir=/etc --mandir=%{prefix}/share/man \--with-scheme=redhat && make%installmake prefix=%{prefix} DESTDIR=$RPM_BUILD_ROOT initdir=/etc/rc.d/init.d install%postecho "Updating startup files..."# SuSE init sucks. They have this rctab helper, but it's only for# interactive use and error recovery.if [ -d sbin/init.d ]; then 	[ -d var/adm/fillup-templates ] && 	cat > var/adm/fillup-templates/rc.config.noflushd << EOF## Start disk idle daemon noflushd?#START_NOFLUSHD="yes"NOFLUSHD_TIMEOUT=60     # timeout in minutes before disk is spun downNOFLUSHD_DISKS="/dev/hda"       # disks to be monitorredEOF	for i in 1 2 3; do 		ln -sf ../noflushd sbin/init.d/rc$i.d/S80noflushd		ln -sf ../noflushd sbin/init.d/rc$i.d/K10noflushd	done	if [ -x bin/fillup ]; then 		bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.noflushd			echo "NOTE: Default timeout is 1 hour." 		echo "      Edit NOFLUSHD_TIMEOUT in /etc/rc.config to change."	else 		echo "NOTE: fillup not found. rc.config unchanged." 		echo "      Edit /sbin/init.d/noflushd to set the default timeout (1h)."	fi else if [ -x /sbin/chkconfig ]; then 	/sbin/chkconfig --add noflushd else 	echo "ERROR: Could not include noflushd in system startup. Please update"	echo "       your system by hand."fi echo "NOTE: Edit /etc/rc.d/init.d/noflushd to set the default timeout (1h)." fi%preunif [ -d /sbin/init.d ]; then	rm -f /var/adm/fillup-templates/rc.config.noflushd || /bin/true	for i in /sbin/init.d/rc?.d; do		rm -f $i/*noflushd	doneelse if [ -x /sbin/chkconfig ]; then	/sbin/chkconfig --del noflushdfifi%files%defattr(-, root, root, 0755)%doc README AUTHORS NEWS COPYING ChangeLog THANKS TODO BUGS%{prefix}/sbin/noflushd%config /etc/rc.d/init.d/noflushd%{prefix}/share/man/man8/noflushd.8*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -