Fixed back proper unbundling error reporting.
[udpgate.git] / udpgate.spec.in
index 43a5d26..2b33d9a 100644 (file)
@@ -60,16 +60,18 @@ make DESTDIR=$RPM_BUILD_ROOT install-strip
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{_bindir}/@PACKAGE@ --text --startup-on
+%{_bindir}/@PACKAGE@ --text --startup-on  || true
 
 %preun
-%{_bindir}/@PACKAGE@ --text --startup-off
+%{_bindir}/@PACKAGE@ --text --startup-off || true
 
 %files
 %defattr(-,root,root)
 %doc README NEWS AUTHORS
 %attr(644,root,root) %{_mandir}/man?/@PACKAGE@.*
-%attr(755,root,root) %{_sysconfdir}/rc.d/init.d/@PACKAGE@
+# Do not: /etc/rc.d/init.d/...
+# to comply with http://www.linuxbase.org/spec/booksets/LSB-Core/LSB-Core.html#INITSRCINSTRM
+%attr(755,root,root) %{_sysconfdir}/init.d/@PACKAGE@
 # %config(noreplace) %{_sysconfdir}/sysconfig/@PACKAGE@
 %{_bindir}/@PACKAGE@
 %{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo