--- /dev/null
+KERNEL=="log_system", MODE="0662", OWNER="log", GROUP="log"
+KERNEL=="log_radio", MODE="0662", OWNER="log", GROUP="log"
+KERNEL=="log_main", MODE="0662", OWNER="log", GROUP="log"
+KERNEL=="log_events", MODE="0662", OWNER="log", GROUP="log"
# default set log output to external files
cp %SOURCE202 %{buildroot}/opt/etc/dlog_logger.conf
+mkdir -p %{buildroot}/var/log/dlog
+
%preun -n dlogutil
%post -n dlogutil
%files -n dlogutil
%manifest dlogutil.manifest
/usr/share/license/dlogutil
-%attr(755,root,app_logging) %{_bindir}/dlog_logger
-%attr(755,root,app_logging) %{_bindir}/dlogutil
-%attr(755,root,app_logging) %{_bindir}/dlogctrl
-%attr(755,root,app_logging) /opt/etc/dlog_logger.conf
+%attr(750,log,log) %{_bindir}/dlog_logger
+%attr(750,log,log) %{_bindir}/dlogutil
+%attr(755,log,log) %{_bindir}/dlogctrl
+%attr(664,log,log) /opt/etc/dlog_logger.conf
%{_libdir}/systemd/system/dlog_logger.service
%{_libdir}/systemd/system/dlog_logger.path
%{_libdir}/systemd/system/multi-user.target.wants/dlog_logger.path
-
+%attr(755,log,log) /var/log/dlog
+%attr(644,root,root) %{_libdir}/udev/rules.d/01-dlog.rules
%files -n libdlog
%manifest libdlog.manifest
/usr/share/license/libdlog
%{_libdir}/libdlog.so.0
%{_libdir}/libdlog.so.0.0.0
-%attr(664,root,app_logging) /opt/etc/dlog.conf
+%attr(664,log,log) /opt/etc/dlog.conf
%files -n libdlog-devel
%{_includedir}/dlog/dlog.h
-dlogutil -b system -r 5120 -n 1 -f /var/log/dlog_system -v dump *:I
-dlogutil -b main -r 3072 -n 1 -f /var/log/dlog_main -v dump *:W
-dlogutil -b radio -r 2048 -n 3 -f /var/log/dlog_radio -v dump
+dlogutil -b system -r 5120 -n 1 -f /var/log/dlog/system -v dump *:I
+dlogutil -b main -r 3072 -n 1 -f /var/log/dlog/main -v dump *:W
+dlogutil -b radio -r 2048 -n 3 -f /var/log/dlog/radio -v dump
-dlogutil -b system -r 5120 -n 1 -f /var/log/dlog_system -v dump *:I
-dlogutil -b main -r 3072 -n 1 -f /var/log/dlog_main -v dump *:W
-dlogutil -b radio -r 1024 -n 1 -f /var/log/dlog_radio -v dump
+dlogutil -b system -r 5120 -n 1 -f /var/log/dlog/system -v dump *:I
+dlogutil -b main -r 3072 -n 1 -f /var/log/dlog/main -v dump *:W
+dlogutil -b radio -r 1024 -n 1 -f /var/log/dlog/radio -v dump
-dlogutil -b system -r 5120 -n 1 -f /var/log/dlog_system -v dump *:I
-dlogutil -b main -r 3072 -n 1 -f /var/log/dlog_main -v dump *:W
-dlogutil -b radio -r 1024 -n 1 -f /var/log/dlog_radio -v dump
+dlogutil -b system -r 5120 -n 1 -f /var/log/dlog/system -v dump *:I
+dlogutil -b main -r 3072 -n 1 -f /var/log/dlog/main -v dump *:W
+dlogutil -b radio -r 1024 -n 1 -f /var/log/dlog/radio -v dump