]>
Commit | Line | Data |
---|---|---|
011bae22 | 1 | Summary: The Console Manager |
ff93f395 | 2 | Summary(pl.UTF-8): Zarządca konsol |
011bae22 AM |
3 | Name: conman |
4 | Version: 0.1.9.2 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Daemons | |
8 | Source0: http://download.gna.org/conman/0.1.9.2/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 8e737e64ae3dfac37bd93df38ac0f6cb | |
10 | Source1: %{name}d.init | |
11 | Source2: %{name}d.sysconfig | |
12 | Source3: %{name}.logrotate | |
13 | URL: http://home.gna.org/conman/ | |
14 | BuildRequires: libwrap-devel | |
27791373 JB |
15 | Requires(post,preun): /sbin/ldconfig |
16 | Requires: rc-scripts | |
011bae22 AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | ConMan is a console management program designed to support a large | |
21 | number of console devices and simultaneous users. It currently | |
22 | supports local serial devices and remote terminal servers (via the | |
23 | telnet protocol). | |
24 | ||
608e58b9 JR |
25 | %description -l pl.UTF-8 |
26 | ConMan to program do zarządzania konsolami zaprojektowany do obsługi | |
27 | dużej liczby urządzeń konsolowych i jednoczesnych użytkowników. | |
28 | Aktualnie obsługuje lokalne urządzenia szeregowe i zdalne serwery | |
29 | terminali (poprzez protokół telnet). | |
27791373 | 30 | |
011bae22 AM |
31 | %prep |
32 | %setup -q | |
33 | ||
34 | %build | |
35 | %configure \ | |
36 | --with-tcp-wrappers | |
37 | ||
38 | %{__make} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
27791373 | 43 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d} |
011bae22 AM |
44 | install -d $RPM_BUILD_ROOT/var/log/conman |
45 | ||
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
27791373 JB |
49 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/conmand |
50 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/conmand | |
51 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/conmand | |
011bae22 AM |
52 | |
53 | rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/examples | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %post | |
59 | /sbin/chkconfig --add conmand | |
60 | %service conmand restart | |
61 | ||
62 | %preun | |
63 | if [ "$1" = "0" ]; then | |
64 | %service conmand stop | |
65 | /sbin/chkconfig --del conmand | |
66 | fi | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc AUTHORS ChangeLog FAQ NEWS | |
71 | %attr(755,root,root) %{_bindir}/* | |
72 | %attr(755,root,root) %{_sbindir}/* | |
73 | %{_libdir}/%{name} | |
74 | %dir %{_var}/log/conman | |
75 | %{_mandir}/man*/* | |
76 | ||
77 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf | |
78 | %attr(754,root,root) /etc/rc.d/init.d/conmand | |
79 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/conmand | |
80 | /etc/logrotate.d/* |