1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
diff -urN athcool-0.3.11.orig/Makefile athcool-0.3.11/Makefile
--- athcool-0.3.11.orig/Makefile 2005-06-18 13:03:43.000000000 +0900
+++ athcool-0.3.11/Makefile 2005-06-15 00:11:13.000000000 +0900
@@ -18,7 +18,7 @@
RM = rm -f
CFLAGS = -O2 -Wall
DEFS = -I. -I$(includedir) -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\"
-#DEFS += -DENABLE_FORCEID=1
+DEFS += -DENABLE_FORCEID=1
#DEFS += -DDISABLE_WRITE_REG=1
LIBS = -lpci
@@ -32,7 +32,7 @@
$(PACKAGE): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $@
-install: install-program install-man # install-script
+install: install-program install-man install-script
install-program:
[ -d $(sbindir) ] || install -m 755 -d $(sbindir)
diff -urN athcool-0.3.11.orig/athcool.spec athcool-0.3.11/athcool.spec
--- athcool-0.3.11.orig/athcool.spec 2005-06-18 13:04:10.000000000 +0900
+++ athcool-0.3.11/athcool.spec 2005-06-18 13:02:42.000000000 +0900
@@ -50,19 +50,19 @@
%clean
rm -rf $RPM_BUILD_ROOT
-#%post
-#/sbin/chkconfig --add athcool
+%post
+/sbin/chkconfig --add athcool
-#%preun
-#if [ "$1" = "0" ]; then
-# /sbin/service athcool stop >/dev/null 2>&1
-# /sbin/chkconfig --del athcool
-#fi
+%preun
+if [ "$1" = "0" ]; then
+ /sbin/service athcool stop >/dev/null 2>&1
+ /sbin/chkconfig --del athcool
+fi
%files
%defattr(-, root, root)
%doc README COPYING ChangeLog
%{_sbindir}/athcool
%{_mandir}/man8/*
-#%attr(0755,root,root) %{_sysconfdir}/init.d/athcool
+%attr(0755,root,root) %{_sysconfdir}/init.d/athcool
|