conserver/conserver.spec

Name: conserver
Summary: Serial console server daemon/client
Version: 8.1.17
Release: 1
License: BSD style
Group: System Environment/Daemons
URL: http://www.conserver.com/
Description: Conserver is an application that allows multiple users to watch a serial console at the same time. It can log the data, allows users to take write-access of a console (one at a time), and has a variety of bells and whistles to accentuate that basic functionality.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: <users$conserver,com>
# Upstream: Bryan Stansell <bryan$conserver,com>

### FIXME: Add sysv script using sysconfig file.

Summary: Serial console server daemon/client
Name: conserver
Version: 8.1.17
Release: 1%{?dist}
License: BSD style
Group: System Environment/Daemons
URL: http://www.conserver.com/

Source: http://www.conserver.com/conserver-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Conserver is an application that allows multiple users to watch a
serial console at the same time.  It can log the data, allows users to
take write-access of a console (one at a time), and has a variety of
bells and whistles to accentuate that basic functionality.

%prep
%setup

### FIXME: We don't want to install the solaris conserver.rc file.
%{__perl} -pi.orig -e 's|^.*conserver\.rc.*$||' conserver/Makefile.in

%build
%configure \
    --with-master="console"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%makeinstall
%{__install} -Dp -m0644 conserver.cf/conserver.cf %{buildroot}%{_sysconfdir}/conserver.cf
%{__install} -Dp -m0600 conserver.cf/conserver.passwd %{buildroot}%{_sysconfdir}/conserver.passwd
%{__install} -Dp -m0755 contrib/redhat-rpm/conserver.init %{buildroot}%{_initrddir}/conserver

%post
/sbin/chkconfig --add conserver
if ! egrep -q '\<conserver\>' /etc/services; then
    echo "console       782/tcp     conserver" >> /etc/services
fi

%preun
if [ $1 -eq 0 ]; then
    /sbin/service conserver stop &>/dev/null || :
    /sbin/chkconfig --del conserver
fi

#%postun
#/sbin/service conserver condrestart &>/dev/null || :

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc CHANGES FAQ INSTALL README conserver.cf/
%doc %{_mandir}/man?/*
%config(noreplace) %{_sysconfdir}/conserver.cf
%config(noreplace) %{_sysconfdir}/conserver.passwd
%config %{_initrddir}/conserver
%{_bindir}/console
%{_sbindir}/conserver
%{_libdir}/conserver/
%exclude %{_datadir}/examples/

%changelog
* Thu Oct 22 2009 Dag Wieers <dag@wieers.com> - 8.1.17-1
- Updated to release 8.1.17.

* Thu Sep 25 2008 Dag Wieers <dag@wieers.com> - 8.1.16-1
- Updated to release 8.1.16.

* Sun Mar 18 2007 Dag Wieers <dag@wieers.com> - 8.1.15-1
- Updated to release 8.1.15.

* Tue Apr 11 2006 Dag Wieers <dag@wieers.com> - 8.1.14-1
- Updated to release 8.1.14.

* Mon Jan 16 2006 Dag Wieers <dag@wieers.com> - 8.1.13-1
- Updated to release 8.1.13.

* Tue Jan 03 2006 Dag Wieers <dag@wieers.com> - 8.1.12-1
- Updated to release 8.1.12.

* Sat May 29 2004 Dag Wieers <dag@wieers.com> - 8.1.7-1
- Updated to release 8.1.7.

* Thu May 27 2004 Dag Wieers <dag@wieers.com> - 8.1.6-1
- Updated to release 8.1.6.

* Tue May 11 2004 Dag Wieers <dag@wieers.com> - 8.1.5-1
- Updated to release 8.1.5.

* Thu Apr 15 2004 Dag Wieers <dag@wieers.com> - 8.1.4-1
- Updated to release 8.1.4.

* Fri Mar 26 2004 Dag Wieers <dag@wieers.com> - 8.1.3-1
- Updated to release 8.1.3.

* Sat Mar 13 2004 Dag Wieers <dag@wieers.com> - 8.1.2-0
- Updated to release 8.1.2.

* Fri Dec 12 2003 Dag Wieers <dag@wieers.com> - 8.0.9-0
- Updated to release 8.0.9.

* Sun Nov 23 2003 Dag Wieers <dag@wieers.com> - 8.0.7-0
- Updated to release 8.0.7.

* Mon Oct 13 2003 Dag Wieers <dag@wieers.com> - 8.0.1-1
- Fixed a %%post problem.

* Wed Oct 01 2003 Dag Wieers <dag@wieers.com> - 8.0.1-0
- Updated to release 8.0.1.

* Mon Sep 15 2003 Dag Wieers <dag@wieers.com> - 7.2.7-0
- Initial package. (using DAR)