-
Notifications
You must be signed in to change notification settings - Fork 21
/
conman.spec.in
96 lines (81 loc) · 2.4 KB
/
conman.spec.in
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Name: conman
Version: @VERSION@
Release: 1%{?dist}
# Disable test suite by default.
%bcond_with check
# Disable source file verification by default.
%bcond_with verify
Summary: ConMan: The Console Manager
License: GPLv3+
URL: https://dun.github.io/conman/
Source0: https://github.com/dun/conman/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz
%if %{with verify}
Source1: https://github.com/dun/conman/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz.asc
Source2: https://github.com/dun.gpg
%endif
BuildRequires: freeipmi-devel >= 1.0.4
BuildRequires: gcc
BuildRequires: gnupg2
BuildRequires: make
BuildRequires: procps
BuildRequires: %{?el7:systemd}%{!?el7:systemd-rpm-macros}
Requires: expect
Requires: logrotate
Requires: perl
%{?systemd_requires}
%description
ConMan is a serial console management program designed to support a large
number of console devices and simultaneous users.
Supported console types:
- Local serial devices
- Remote terminal servers (via the telnet protocol)
- IPMI Serial-Over-LAN (via FreeIPMI's libipmiconsole)
- External processes (e.g., Expect)
- Unix domain sockets
Features:
- Mapping symbolic names to console devices
- Logging (and optionally timestamping) console output to file
- Connecting to a console in monitor (R/O) or interactive (R/W) mode
- Connecting to multiple consoles for broadcasting (W/O) client output
- Sharing a console session amongst multiple simultaneous clients
- Allowing clients to share or steal console "write" privileges
- Executing Expect scripts across multiple consoles in parallel
%prep
%if %{with verify}
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%endif
%setup -q
%build
%configure runstatedir=%{_rundir} --with-systemdunitdir=%{_unitdir}
%make_build
%check
%if %{with check}
%make_build check root=/tmp/conman-test-$$ verbose=t VERBOSE=t
%endif
%install
%make_install
%post
%systemd_post conman.service
%preun
%systemd_preun conman.service
%postun
%systemd_postun_with_restart conman.service
%files
%license COPYING
%doc AUTHORS
%doc DISCLAIMER.LLNS
%doc DISCLAIMER.UC
%doc FAQ
%doc NEWS
%doc README
%doc THANKS
%config(noreplace) %{_sysconfdir}/conman.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/conman
%{_bindir}/conman
%{_bindir}/conmen
%{_sbindir}/conmand
%{_datadir}/conman
%{_mandir}/man1/conman.1*
%{_mandir}/man5/conman.conf.5*
%{_mandir}/man8/conmand.8*
%{_unitdir}/conman.service