]> git.pld-linux.org Git - packages/conserver.git/blame - conserver.spec
- s|/var/log/archiv|/var/log/archive|g
[packages/conserver.git] / conserver.spec
CommitLineData
3a3b4efe 1# TODO: smart .init/.sysconfig, maybe a default configuration
b1b074f6 2#
307e1437 3Summary: Console server
d0fbf2e9 4Summary(pl.UTF-8): Serwer konsoli
307e1437 5Name: conserver
0e3517cd
AM
6Version: 8.1.15
7Release: 1
307e1437
SZ
8License: BSD-like
9Group: Daemons
10Source0: http://www.conserver.com/%{name}-%{version}.tar.gz
0e3517cd 11# Source0-md5: fba8bf42d32cf2119cd0f49b2043681c
280e2648
SZ
12Source1: %{name}.init
13Source2: %{name}.sysconfig
14Source3: %{name}.logrotate
f751d6d8 15Source4: %{name}.pam
8b0a1e7b 16Patch0: %{name}-locks.patch
307e1437 17URL: http://www.conserver.com/
3a3b4efe
JB
18BuildRequires: autoconf
19BuildRequires: automake
626224d0 20BuildRequires: libwrap-devel
e8c44a85 21BuildRequires: openssl-devel
626224d0 22BuildRequires: pam-devel
e500d97f 23BuildRequires: rpmbuild(macros) >= 1.268
5e8ff9de 24Requires(post,preun): /sbin/chkconfig
e8c44a85 25Requires: rc-scripts
307e1437
SZ
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
db252a97
AM
28%define _sysconfdir /etc/conserver
29
307e1437
SZ
30%description
31Conserver is an application that allows multiple users to watch a
e8c44a85
ER
32serial console at the same time. It can log the data, allows users to
33take write-access of a console (one at a time), and has a variety of
34bells and whistles to accentuate that basic functionality.
307e1437 35
f00f8fcb
JR
36%description -l pl.UTF-8
37Conserver jest aplikacją, która umożliwia kilku użytkownikom naraz
38oglądać logi na konsoli szeregowej. Może zapisywać zebrane dane,
39pozwalać użytkownikom na pełne korzystanie z konsoli (ale tylko
40jednemu naraz), oraz posiada mnóstwo dodatków rozszerzających tę
41podstawową 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
62rm -rf $RPM_BUILD_ROOT
63
f751d6d8 64install -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 70mv $RPM_BUILD_ROOT%{_datadir}/examples/conserver examples
db252a97
AM
71
72install examples/conserver.cf $RPM_BUILD_ROOT%{_sysconfdir}
73touch $RPM_BUILD_ROOT%{_sysconfdir}/conserver.passwd
74touch $RPM_BUILD_ROOT%{_sysconfdir}/console.cf
75
280e2648
SZ
76rm -f examples/conserver.rc
77install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/conserver
78install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/conserver
79install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/conserver
f751d6d8 80install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/conserver
307e1437
SZ
81
82%clean
83rm -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
90if [ "$1" = "0" ]; then
e500d97f 91 %service conserver stop
6f1a4388 92 /sbin/chkconfig --del conserver
280e2648
SZ
93fi
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 104%attr(750,root,root) %dir /var/log/conserver.d
d5bfc45f 105%attr(750,root,root) %dir /var/log/archive/conserver.d
e8c44a85
ER
106%dir %{_sysconfdir}
107%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
307e1437 108%{_mandir}/man*/*
This page took 0.048732 seconds and 4 git commands to generate.