2016-01-15 09:52:08 +01:00
|
|
|
#
|
|
|
|
# spec file for package blog
|
|
|
|
#
|
2021-04-09 09:22:09 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-01-15 09:52:08 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-05-01 11:14:36 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-01-15 09:52:08 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: blog
|
2020-01-09 12:39:21 +01:00
|
|
|
Version: 2.20
|
2021-04-09 09:22:09 +02:00
|
|
|
%define sonum 2
|
2016-01-15 09:52:08 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Boot logging
|
2018-03-19 17:53:36 +01:00
|
|
|
License: GPL-2.0-or-later
|
2016-01-15 09:52:08 +01:00
|
|
|
Group: System/Base
|
2020-01-09 12:39:21 +01:00
|
|
|
URL: https://github.com/bitstreamout/showconsole
|
2017-01-25 13:34:54 +01:00
|
|
|
Source: https://github.com/bitstreamout/showconsole/archive/v%{version}.tar.gz#/showconsole-%{version}.tar.gz
|
2016-02-10 11:24:46 +01:00
|
|
|
Source1: blog-rpmlintrc
|
2016-01-22 14:55:06 +01:00
|
|
|
BuildRequires: suse-module-tools
|
2017-04-27 18:02:11 +02:00
|
|
|
Requires(post): coreutils
|
2016-01-15 09:52:08 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-02-19 17:35:44 +01:00
|
|
|
Provides: sysvinit-tools:/sbin/blogd
|
2016-01-15 09:52:08 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The blogd daemon determines the real underlying character device of
|
|
|
|
/dev/console. Blogd spawns a pty/tty pair to reconnect the current
|
|
|
|
/dev/console with the slave of the pty/tty pair. During writing
|
|
|
|
information from this slave to the real character device a ring
|
|
|
|
buffer is used to hold the information for writing it to an existing
|
|
|
|
logging file.
|
|
|
|
|
2021-04-09 09:22:09 +02:00
|
|
|
%package -n libblogger%{sonum}
|
2019-05-01 11:14:36 +02:00
|
|
|
Summary: FIFO interface used by startproc
|
|
|
|
Group: System/Libraries
|
2021-04-09 09:22:09 +02:00
|
|
|
%if %sonum == 2
|
|
|
|
Provides: %{name}:%{_libdir}/libblogger.so.2
|
|
|
|
%endif
|
2019-05-01 11:14:36 +02:00
|
|
|
|
2021-04-09 09:22:09 +02:00
|
|
|
%description -n libblogger%{sonum}
|
2019-05-01 11:14:36 +02:00
|
|
|
The libaray for the FIFO interface used by the LSB startproc command.
|
|
|
|
|
2016-01-15 09:52:08 +01:00
|
|
|
%package plymouth
|
|
|
|
Summary: Replaces plymouth by blogd
|
|
|
|
Group: System/Base
|
|
|
|
Requires: blog
|
|
|
|
Requires: systemd
|
2021-04-09 09:22:09 +02:00
|
|
|
Conflicts: plymouth
|
|
|
|
Conflicts: plymouth-dracut
|
2016-01-15 09:52:08 +01:00
|
|
|
|
|
|
|
%description plymouth
|
2017-11-06 10:29:03 +01:00
|
|
|
The Blogd daemon can be used as a replacement for Plymouth in situations where
|
|
|
|
a splash screen and/or usage of a frame buffer is unwanted. The Blogd is also
|
|
|
|
a Plymouth agent. That means, it can handle requests for a password prompt by
|
|
|
|
the system password service of systemd.
|
|
|
|
The blogd daemon writes out boot log messages to every terminal device used by
|
|
|
|
/dev/console and to the log file /var/log/boot.log. When halting or rebooting
|
|
|
|
the system, it moves the log file to /var/log/boot.old and appends all log
|
|
|
|
messages upto to point at which the file systems becomes unavailable.
|
2016-01-15 09:52:08 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Provides library and header for boot logging
|
|
|
|
Group: Development/Libraries/C and C++
|
2021-04-09 09:22:09 +02:00
|
|
|
Requires: libblogger%{sonum} = %{version}
|
2016-01-15 09:52:08 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The libaray and the header file for the FIFO interface used to build
|
|
|
|
the LSB startproc command.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n showconsole-%version
|
|
|
|
|
|
|
|
%build
|
|
|
|
make %{?_smp_mflags} CC="%__cc" \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
INCDIR=%{_includedir} \
|
|
|
|
SYSDUNITS=%{_unitdir} \
|
|
|
|
BOOT_LOGFILE=%{_localstatedir}/log/boot.log \
|
|
|
|
BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old
|
|
|
|
|
|
|
|
%install
|
2019-05-01 11:14:36 +02:00
|
|
|
%make_install \
|
2016-01-15 09:52:08 +01:00
|
|
|
MANPATH=%{_mandir} \
|
2016-08-30 15:52:53 +02:00
|
|
|
INSTBINFLAGS="-m 0744" \
|
2016-01-15 09:52:08 +01:00
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
INCDIR=%{_includedir} \
|
|
|
|
SYSDUNITS=%{_unitdir} \
|
|
|
|
BOOT_LOGFILE=%{_localstatedir}/log/boot.log \
|
2019-05-01 11:14:36 +02:00
|
|
|
BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old
|
2016-01-15 09:52:08 +01:00
|
|
|
|
2016-01-20 16:20:08 +01:00
|
|
|
%post
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
%postun
|
|
|
|
test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
2019-05-01 11:14:36 +02:00
|
|
|
|
2021-04-09 09:22:09 +02:00
|
|
|
%post -n libblogger%{sonum} -p /sbin/ldconfig
|
|
|
|
%postun -n libblogger%{sonum} -p /sbin/ldconfig
|
2016-01-20 16:20:08 +01:00
|
|
|
|
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
2016-01-15 09:52:08 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-03-19 17:53:36 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc README
|
2016-01-15 09:52:08 +01:00
|
|
|
/sbin/blogctl
|
|
|
|
/sbin/blogd
|
|
|
|
/sbin/blogger
|
|
|
|
/sbin/isserial
|
|
|
|
/sbin/setconsole
|
|
|
|
/sbin/showconsole
|
|
|
|
%doc %{_mandir}/man8/blogctl.8.gz
|
|
|
|
%doc %{_mandir}/man8/blogd.8.gz
|
|
|
|
%doc %{_mandir}/man8/blogger.8.gz
|
|
|
|
%doc %{_mandir}/man8/isserial.8.gz
|
|
|
|
%doc %{_mandir}/man8/setconsole.8.gz
|
|
|
|
%doc %{_mandir}/man8/showconsole.8.gz
|
|
|
|
|
2021-04-09 09:22:09 +02:00
|
|
|
%files -n libblogger%{sonum}
|
2019-05-01 11:14:36 +02:00
|
|
|
%{_libdir}/libblogger.so.*
|
|
|
|
|
2016-01-15 09:52:08 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/libblogger.h
|
2016-02-19 18:00:44 +01:00
|
|
|
%{_libdir}/libblogger.so
|
2016-01-15 09:52:08 +01:00
|
|
|
|
|
|
|
%files plymouth
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_prefix}/lib/dracut
|
|
|
|
%dir %{_prefix}/lib/dracut/modules.d
|
|
|
|
%dir %{_prefix}/lib/dracut/modules.d/99blog
|
2016-01-21 08:42:14 +01:00
|
|
|
%dir %{_unitdir}/basic.target.wants
|
2016-02-19 17:03:24 +01:00
|
|
|
%dir %{_unitdir}/default.target.wants
|
2016-01-20 16:20:08 +01:00
|
|
|
%dir %{_unitdir}/emergency.target.wants
|
2016-01-15 09:52:08 +01:00
|
|
|
%dir %{_unitdir}/halt.target.wants
|
|
|
|
%dir %{_unitdir}/initrd-switch-root.target.wants
|
|
|
|
%dir %{_unitdir}/kexec.target.wants
|
|
|
|
%dir %{_unitdir}/multi-user.target.wants
|
|
|
|
%dir %{_unitdir}/poweroff.target.wants
|
|
|
|
%dir %{_unitdir}/reboot.target.wants
|
2016-01-20 16:20:08 +01:00
|
|
|
%dir %{_unitdir}/rescue.target.wants
|
2016-01-15 09:52:08 +01:00
|
|
|
%dir %{_unitdir}/sysinit.target.wants
|
2016-02-19 17:03:24 +01:00
|
|
|
%dir %{_unitdir}/systemd-ask-password-blog.service.wants
|
2016-01-15 09:52:08 +01:00
|
|
|
%{_prefix}/lib/dracut/modules.d/99blog/module-setup.sh
|
|
|
|
%{_unitdir}/blog-final.service
|
|
|
|
%{_unitdir}/blog-quit.service
|
|
|
|
%{_unitdir}/blog-store-messages.service
|
|
|
|
%{_unitdir}/blog-switch-root.service
|
|
|
|
%{_unitdir}/blog.service
|
|
|
|
%{_unitdir}/systemd-ask-password-blog.path
|
|
|
|
%{_unitdir}/systemd-ask-password-blog.service
|
2016-01-20 16:20:08 +01:00
|
|
|
%{_unitdir}/blog-umount.service
|
|
|
|
%{_unitdir}/basic.target.wants/blog.service
|
2016-02-19 17:03:24 +01:00
|
|
|
%{_unitdir}/default.target.wants/blog-quit.service
|
2016-01-20 16:20:08 +01:00
|
|
|
%{_unitdir}/emergency.target.wants/blog-quit.service
|
2016-01-15 09:52:08 +01:00
|
|
|
%{_unitdir}/halt.target.wants/blog-final.service
|
2016-01-20 16:20:08 +01:00
|
|
|
%{_unitdir}/halt.target.wants/blog-umount.service
|
2016-01-15 09:52:08 +01:00
|
|
|
%{_unitdir}/initrd-switch-root.target.wants/blog-switch-root.service
|
|
|
|
%{_unitdir}/initrd-switch-root.target.wants/blog.service
|
|
|
|
%{_unitdir}/kexec.target.wants/blog-final.service
|
2016-01-20 16:20:08 +01:00
|
|
|
%{_unitdir}/kexec.target.wants/blog-umount.service
|
2016-01-15 09:52:08 +01:00
|
|
|
%{_unitdir}/poweroff.target.wants/blog-final.service
|
2016-01-20 16:20:08 +01:00
|
|
|
%{_unitdir}/poweroff.target.wants/blog-umount.service
|
2016-01-15 09:52:08 +01:00
|
|
|
%{_unitdir}/reboot.target.wants/blog-final.service
|
2016-01-20 16:20:08 +01:00
|
|
|
%{_unitdir}/reboot.target.wants/blog-umount.service
|
|
|
|
%{_unitdir}/rescue.target.wants/blog-quit.service
|
2016-01-15 09:52:08 +01:00
|
|
|
%{_unitdir}/sysinit.target.wants/blog-store-messages.service
|
2016-01-20 16:20:08 +01:00
|
|
|
%{_unitdir}/sysinit.target.wants/systemd-ask-password-blog.path
|
2016-01-15 09:52:08 +01:00
|
|
|
|
|
|
|
%changelog
|