1 # TODO: smart .init/.sysconfig, maybe a default configuration
3 Summary: Console server
4 Summary(pl): Serwer konsoli
10 Source0: http://www.conserver.com/%{name}-%{version}.tar.gz
11 # Source0-md5: d2641597713768cb62f09f1d94f95ef1
13 Source2: %{name}.sysconfig
14 Source3: %{name}.logrotate
15 URL: http://www.conserver.com/
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Conserver is an application that allows multiple users to watch a
22 serial console at the same time. It can log the data, allows users
23 to take write-access of a console (one at a time), and has a
24 variety of bells and whistles to accentuate that basic
28 Conserver jest aplikacj±, która umo¿liwia kilku u¿ytkownikom naraz
29 ogl±daæ logi na konsoli szeregowej. Mo¿e zapisywaæ zebrane dane,
30 pozwalaæ u¿ytkownikom na pe³ne korzystanie z konsoli (ale tylko
31 jednemu naraz), oraz posiada mnóstwo dodatków rozszerzaj±cych tê
32 podstawow± funkcjonalno¶æ.
42 --with-master=localhost
46 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d} \
49 $RPM_BUILD_ROOT/var/log/{conserver.d,archiv/conserver.d}
51 DESTDIR=$RPM_BUILD_ROOT
53 mv $RPM_BUILD_ROOT%{_datadir}/examples/conserver examples
54 rm -f examples/conserver.rc
55 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/conserver
56 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/conserver
57 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/conserver
60 rm -rf $RPM_BUILD_ROOT
63 /sbin/chkconfig --add conserver
64 if [ -f /var/lock/subsys/conserver ]; then
65 /etc/rc.d/init.d/conserver restart 1>&2
67 echo "Run \"/etc/rc.d/init.d/conserver start\" to start conserver daemon."
71 if [ "$1" = "0" ]; then
72 if [ -f /var/lock/subsys/conserver ]; then
73 /etc/rc.d/init.d/conserver stop 1>&2
75 /sbin/chkconfig --del conserver
79 %defattr(644,root,root,755)
80 %doc CHANGES FAQ README TODO examples LICENSE
81 %attr(755,root,root) %{_bindir}/*
82 %attr(755,root,root) %{_sbindir}/*
83 %attr(754,root,root) /etc/rc.d/init.d/conserver
84 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
85 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/*
86 %attr(750,root,root) %dir /var/log/conserver.d
87 %attr(750,root,root) %dir /var/log/archiv/conserver.d