]> git.pld-linux.org Git - packages/conserver.git/blame - conserver.spec
- oops, it's 3.7-4 not 3.7.4
[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
04040ad3 6Version: 8.1.16
0e3517cd 7Release: 1
307e1437
SZ
8License: BSD-like
9Group: Daemons
10Source0: http://www.conserver.com/%{name}-%{version}.tar.gz
04040ad3 11# Source0-md5: 2364ba56f5201b07646bdfaefedd330b
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
d1deecf9 26Conflicts: logrotate < 3.7-4
307e1437
SZ
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
db252a97
AM
29%define _sysconfdir /etc/conserver
30
307e1437
SZ
31%description
32Conserver is an application that allows multiple users to watch a
e8c44a85
ER
33serial console at the same time. It can log the data, allows users to
34take write-access of a console (one at a time), and has a variety of
35bells and whistles to accentuate that basic functionality.
307e1437 36
f00f8fcb
JR
37%description -l pl.UTF-8
38Conserver jest aplikacją, która umożliwia kilku użytkownikom naraz
39oglądać logi na konsoli szeregowej. Może zapisywać zebrane dane,
40pozwalać użytkownikom na pełne korzystanie z konsoli (ale tylko
41jednemu naraz), oraz posiada mnóstwo dodatków rozszerzających tę
42podstawową funkcjonalność.
307e1437
SZ
43
44%prep
45%setup -q
8b0a1e7b 46%patch0 -p1
307e1437
SZ
47
48%build
49%{__aclocal}
50%{__autoconf}
51%{__autoheader}
280e2648 52%configure \
626224d0 53 --with-master=localhost \
f751d6d8 54 --with-port=782 \
626224d0
AM
55 --with-extmsgs \
56 --with-libwrap \
57 --with-openssl \
58 --with-pam
8b0a1e7b 59# --with-uds
307e1437
SZ
60%{__make}
61
62%install
63rm -rf $RPM_BUILD_ROOT
64
f751d6d8 65install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,conserver,pam.d} \
45e163eb 66 $RPM_BUILD_ROOT/var/log/{conserver.d,archive/conserver.d}
db252a97 67
307e1437
SZ
68%{__make} install \
69 DESTDIR=$RPM_BUILD_ROOT
3a3b4efe 70
307e1437 71mv $RPM_BUILD_ROOT%{_datadir}/examples/conserver examples
db252a97
AM
72
73install examples/conserver.cf $RPM_BUILD_ROOT%{_sysconfdir}
74touch $RPM_BUILD_ROOT%{_sysconfdir}/conserver.passwd
75touch $RPM_BUILD_ROOT%{_sysconfdir}/console.cf
76
280e2648
SZ
77rm -f examples/conserver.rc
78install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/conserver
79install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/conserver
80install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/conserver
f751d6d8 81install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/conserver
307e1437
SZ
82
83%clean
84rm -rf $RPM_BUILD_ROOT
85
280e2648
SZ
86%post
87/sbin/chkconfig --add conserver
e500d97f 88%service conserver restart "conserver daemon"
280e2648
SZ
89
90%preun
91if [ "$1" = "0" ]; then
e500d97f 92 %service conserver stop
6f1a4388 93 /sbin/chkconfig --del conserver
280e2648
SZ
94fi
95
307e1437
SZ
96%files
97%defattr(644,root,root,755)
3a3b4efe 98%doc CHANGES FAQ README TODO examples LICENSE
307e1437
SZ
99%attr(755,root,root) %{_bindir}/*
100%attr(755,root,root) %{_sbindir}/*
280e2648 101%attr(754,root,root) /etc/rc.d/init.d/conserver
f751d6d8 102%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/conserver
e8c44a85
ER
103%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
104%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
280e2648 105%attr(750,root,root) %dir /var/log/conserver.d
d5bfc45f 106%attr(750,root,root) %dir /var/log/archive/conserver.d
e8c44a85
ER
107%dir %{_sysconfdir}
108%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
307e1437 109%{_mandir}/man*/*
This page took 0.086319 seconds and 4 git commands to generate.