]>
Commit | Line | Data |
---|---|---|
3a3b4efe | 1 | # TODO: smart .init/.sysconfig, maybe a default configuration |
b1b074f6 | 2 | # |
307e1437 | 3 | Summary: Console server |
f00f8fcb | 4 | Summary(pl.UTF-8): Serwer konsoli |
307e1437 | 5 | Name: conserver |
0e3517cd AM |
6 | Version: 8.1.15 |
7 | Release: 1 | |
307e1437 SZ |
8 | License: BSD-like |
9 | Group: Daemons | |
10 | Source0: http://www.conserver.com/%{name}-%{version}.tar.gz | |
0e3517cd | 11 | # Source0-md5: fba8bf42d32cf2119cd0f49b2043681c |
280e2648 SZ |
12 | Source1: %{name}.init |
13 | Source2: %{name}.sysconfig | |
14 | Source3: %{name}.logrotate | |
f751d6d8 | 15 | Source4: %{name}.pam |
8b0a1e7b | 16 | Patch0: %{name}-locks.patch |
307e1437 | 17 | URL: http://www.conserver.com/ |
3a3b4efe JB |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
626224d0 | 20 | BuildRequires: libwrap-devel |
e8c44a85 | 21 | BuildRequires: openssl-devel |
626224d0 | 22 | BuildRequires: pam-devel |
e500d97f | 23 | BuildRequires: rpmbuild(macros) >= 1.268 |
5e8ff9de | 24 | Requires(post,preun): /sbin/chkconfig |
e8c44a85 | 25 | Requires: rc-scripts |
307e1437 SZ |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
db252a97 AM |
28 | %define _sysconfdir /etc/conserver |
29 | ||
307e1437 SZ |
30 | %description |
31 | Conserver is an application that allows multiple users to watch a | |
e8c44a85 ER |
32 | serial console at the same time. It can log the data, allows users to |
33 | take write-access of a console (one at a time), and has a variety of | |
34 | bells and whistles to accentuate that basic functionality. | |
307e1437 | 35 | |
f00f8fcb JR |
36 | %description -l pl.UTF-8 |
37 | Conserver jest aplikacją, która umożliwia kilku użytkownikom naraz | |
38 | oglądać logi na konsoli szeregowej. Może zapisywać zebrane dane, | |
39 | pozwalać użytkownikom na pełne korzystanie z konsoli (ale tylko | |
40 | jednemu naraz), oraz posiada mnóstwo dodatków rozszerzających tę | |
41 | podstawową funkcjonalność. | |
307e1437 SZ |
42 | |
43 | %prep | |
44 | %setup -q | |
8b0a1e7b | 45 | %patch0 -p1 |
307e1437 SZ |
46 | |
47 | %build | |
48 | %{__aclocal} | |
49 | %{__autoconf} | |
50 | %{__autoheader} | |
280e2648 | 51 | %configure \ |
626224d0 | 52 | --with-master=localhost \ |
f751d6d8 | 53 | --with-port=782 \ |
626224d0 AM |
54 | --with-extmsgs \ |
55 | --with-libwrap \ | |
56 | --with-openssl \ | |
57 | --with-pam | |
8b0a1e7b | 58 | # --with-uds |
307e1437 SZ |
59 | %{__make} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
f751d6d8 | 64 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,conserver,pam.d} \ |
280e2648 | 65 | $RPM_BUILD_ROOT/var/log/{conserver.d,archiv/conserver.d} |
db252a97 | 66 | |
307e1437 SZ |
67 | %{__make} install \ |
68 | DESTDIR=$RPM_BUILD_ROOT | |
3a3b4efe | 69 | |
307e1437 | 70 | mv $RPM_BUILD_ROOT%{_datadir}/examples/conserver examples |
db252a97 AM |
71 | |
72 | install examples/conserver.cf $RPM_BUILD_ROOT%{_sysconfdir} | |
73 | touch $RPM_BUILD_ROOT%{_sysconfdir}/conserver.passwd | |
74 | touch $RPM_BUILD_ROOT%{_sysconfdir}/console.cf | |
75 | ||
280e2648 SZ |
76 | rm -f examples/conserver.rc |
77 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/conserver | |
78 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/conserver | |
79 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/conserver | |
f751d6d8 | 80 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/conserver |
307e1437 SZ |
81 | |
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
280e2648 SZ |
85 | %post |
86 | /sbin/chkconfig --add conserver | |
e500d97f | 87 | %service conserver restart "conserver daemon" |
280e2648 SZ |
88 | |
89 | %preun | |
90 | if [ "$1" = "0" ]; then | |
e500d97f | 91 | %service conserver stop |
6f1a4388 | 92 | /sbin/chkconfig --del conserver |
280e2648 SZ |
93 | fi |
94 | ||
307e1437 SZ |
95 | %files |
96 | %defattr(644,root,root,755) | |
3a3b4efe | 97 | %doc CHANGES FAQ README TODO examples LICENSE |
307e1437 SZ |
98 | %attr(755,root,root) %{_bindir}/* |
99 | %attr(755,root,root) %{_sbindir}/* | |
280e2648 | 100 | %attr(754,root,root) /etc/rc.d/init.d/conserver |
f751d6d8 | 101 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/conserver |
e8c44a85 ER |
102 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/* |
103 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/* | |
280e2648 SZ |
104 | %attr(750,root,root) %dir /var/log/conserver.d |
105 | %attr(750,root,root) %dir /var/log/archiv/conserver.d | |
e8c44a85 ER |
106 | %dir %{_sysconfdir} |
107 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
307e1437 | 108 | %{_mandir}/man*/* |