Dr. Werner Fink 2016-01-15 08:52:08 +00:00 committed by Git OBS Bridge
commit 0e63481b64
6 changed files with 180 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
blog-rpmlintrc Normal file
View File

@ -0,0 +1,3 @@
addFilter(".*systemd-service-without-service_del_p.*")
addFilter(".*systemd-service-without-service_add_p.*")
addFilter(".*suse-missing-rclink.*")

11
blog.changes Normal file
View File

@ -0,0 +1,11 @@
-------------------------------------------------------------------
Fri Jan 15 07:41:24 UTC 2016 - werner@suse.de
- First initial package after splitting apart from sysvinit
* Now blogd can replace plymouth(9) even from initrd
* Also blogd is able to handle password requests from
from systemd API
* The blogd daemon writes out console messages even on reboot
or halt up to the file systems become unavailable.
* No locking of the console devices, no frame buffer switching.

139
blog.spec Normal file
View File

@ -0,0 +1,139 @@
#
# spec file for package blog
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: blog
Version: 2.12
Release: 0
Summary: Boot logging
License: GPL-2.0+
Group: System/Base
Url: https://build.opensuse.org/package/show/Base:System/blog
Source: showconsole-2.12.tar.bz2
#BuildRequires: pkgconfig(systemd)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%package plymouth
Summary: Replaces plymouth by blogd
Group: System/Base
Requires: blog
Requires: systemd
Conflicts: plymouth plymouth-dracut
%description plymouth
The Blogd daemon can be used as fully replacement of Plymouth but without using
frame buffer to show any kind of a splash screen. The Blogd is also a Plymouth
agent, that is it is able to handle password ask requests done by the system
password service of systemd. The blogd daemon writes out boot log messages not
only to every terminal device used by /dev/console but also to the log file
/var/log/boot.log and moves at system reboot or halt this file to /var/log/boot.old
appending all log messages upto to point where the file systems become unavailable.
%package devel
Summary: Provides library and header for boot logging
Group: Development/Libraries/C and C++
%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
make %{?_smp_mflags} install \
MANPATH=%{_mandir} \
INSTBINFLAGS="-m 0700" \
LIBDIR=%{_libdir} \
INCDIR=%{_includedir} \
SYSDUNITS=%{_unitdir} \
BOOT_LOGFILE=%{_localstatedir}/log/boot.log \
BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old \
DESTDIR=%{buildroot}
%files
%defattr(-,root,root)
%doc README COPYING
/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
%files devel
%defattr(-,root,root)
%{_includedir}/libblogger.h
%{_libdir}/libblogger.a
%files plymouth
%defattr(-,root,root)
%dir %{_prefix}/lib/dracut
%dir %{_prefix}/lib/dracut/modules.d
%dir %{_prefix}/lib/dracut/modules.d/99blog
%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
%dir %{_unitdir}/sysinit.target.wants
%{_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
%{_unitdir}/halt.target.wants/blog-final.service
%{_unitdir}/halt.target.wants/blog-store-messages.service
%{_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
%{_unitdir}/kexec.target.wants/blog-store-messages.service
%{_unitdir}/multi-user.target.wants/blog-quit.service
%{_unitdir}/poweroff.target.wants/blog-final.service
%{_unitdir}/poweroff.target.wants/blog-store-messages.service
%{_unitdir}/reboot.target.wants/blog-final.service
%{_unitdir}/reboot.target.wants/blog-store-messages.service
%{_unitdir}/sysinit.target.wants/blog-store-messages.service
%{_unitdir}/sysinit.target.wants/blog.service
%changelog

3
showconsole-2.12.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5735dbe3da047d576d025706e6b209d186d6c782ec4745ce3e6c0eb5537534a8
size 35777