forked from dun/conman
/
conman.spec
76 lines (64 loc) · 1.84 KB
/
conman.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Name: conman
Version: 0.2.7
Release: 1%{?dist}
Summary: ConMan: The Console Manager
Group: Applications/System
License: GPLv3+
URL: https://dun.github.io/conman/
Source0: https://github.com/dun/conman/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz
BuildRequires: freeipmi-devel >= 1.0.4
BuildRequires: tcp_wrappers-devel
BuildRequires: systemd
Requires: expect
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
ConMan is a serial console management program designed to support a large
number of console devices and simultaneous users. It supports:
- local serial devices
- remote terminal servers (via the telnet protocol)
- IPMI Serial-Over-LAN (via FreeIPMI)
- Unix domain sockets
- external processes (eg, using Expect for telnet/ssh/ipmi-sol connections)
Its features include:
- logging (and optionally timestamping) console device output to file
- connecting to consoles in monitor (R/O) or interactive (R/W) mode
- allowing clients to share or steal console write privileges
- broadcasting client output to multiple consoles
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf "%{buildroot}"
mkdir -p "%{buildroot}"
make install DESTDIR="%{buildroot}"
rm -f %{buildroot}/%{_sysconfdir}/init.d/conman
rm -f %{buildroot}/%{_sysconfdir}/default/conman
rm -f %{buildroot}/%{_sysconfdir}/sysconfig/conman
%clean
rm -rf "%{buildroot}"
%post
%systemd_post conman.service
%preun
%systemd_preun conman.service
%postun
%systemd_postun_with_restart conman.service
%files
%{!?_licensedir:%global license %doc}
%license COPYING
%doc AUTHORS
%doc DISCLAIMER*
%doc FAQ
%doc NEWS
%doc README
%doc THANKS
%config(noreplace) %{_sysconfdir}/conman.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/conman
%{_bindir}/*
%{_sbindir}/*
%{_prefix}/lib/*
%{_mandir}/*/*
%{_unitdir}/conman.service