Author: glen Date: Wed Mar 2 22:23:55 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- fixups for init.d scripts
---- Files affected:
SPECS:
adapter.awk (1.137 -> 1.138) , adapter.spec (1.11 -> 1.12)
---- Diffs:
================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.137 SPECS/adapter.awk:1.138
--- SPECS/adapter.awk:1.137 Wed Mar 2 23:06:24 2005
+++ SPECS/adapter.awk Wed Mar 2 23:23:49 2005
@@ -678,8 +678,16 @@
gsub("^%{_sbindir}", "%attr(755,root,root) %{_sbindir}")
gsub("^%{_bindir}", "%attr(755,root,root) %{_bindir}")
- if (/^%attr.*\/etc\/rc\.d\/init\.d/ && !/^%attr\(754 *,/) {
- gsub("^%attr\(... *,", "%attr(754,");
+ gsub("%{_sysconfdir}\/rc\.d\/init.d", "/etc/rc.d/init.d")
+ gsub("%{_sysconfdir}\/init.d", "/etc/rc.d/init.d")
+
+ if (/\/etc\/rc\.d\/init\.d/) {
+ if (!/%attr.*\/etc\/rc\.d\/init\.d/) {
+ $0 = "%attr(754,root,root) " $0
+ }
+ if (/^%attr.*\/etc\/rc\.d\/init\.d/ && !/^%attr\(754 *,/) {
+ gsub("^%attr\(... *,", "%attr(754,");
+ }
}
# sort %verify attrs
================================================================
Index: SPECS/adapter.spec
diff -u SPECS/adapter.spec:1.11 SPECS/adapter.spec:1.12
--- SPECS/adapter.spec:1.11 Mon Feb 28 19:50:42 2005
+++ SPECS/adapter.spec Wed Mar 2 23:23:49 2005
@@ -94,6 +94,8 @@
%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost
%{supervise}/log/supervise/*
%attr(755,root,root) /etc/rc.d/init.d/%{name}
+/etc/init.d/bmc-watchdog
+%{_sysconfdir}/init.d/bmc-watchdog
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -101,6 +103,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.12 2005/03/02 22:23:49 glen
+- fixups for init.d scripts
+
Revision 1.11 2005/02/28 18:50:42 glen
- avoid defining sysconfdir with rpm %() eval
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.137&r2=1.138&f=u
http://cvs.pld-linux.org/SPECS/adapter.spec?r1=1.11&r2=1.12&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit