# # rpm spec file for conserver # Summary: Serial console server daemon/client Name: conserver Version: 8.1.11 Release: 1 License: distributable Group: System Environment/Daemons URL: http://www.conserver.com/ Source: http://www.conserver.com/conserver-8.1.11.tar.gz BuildPrereq: openssl-devel, pam-devel, tcp_wrappers Requires: openssl, pam BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %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, including SSL support, to accentuate that basic functionality. %package client Group: Applications/Communications Summary: console server client program Requires: openssl %description client Console is used to manipulate console terminals remotely or to poll running conserver(8) daemons for status information. %prep %setup -q %build CFLAGS="%{optflags}" \ ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --sysconfdir=%{_sysconfdir}/%{name} \ --with-libwrap \ --with-openssl \ --with-pam make %{_smp_mflags} %install %{__rm} -rf %{buildroot} make DESTDIR=%{buildroot} install # put the sample configure files in the system configuration # directory -- and then ditch /usr/share/examples install -d %{buildroot}%{_sysconfdir}/%{name} pushd %{buildroot}%{_datadir}/examples/%{name} for f in conserver.cf conserver.passwd do cp $f %{buildroot}%{_sysconfdir}/%{name}/${f}.sample done popd /bin/rm -rf %{buildroot}%{_datadir}/examples # install copy of init script install -d %{buildroot}/%{_initrddir} install contrib/redhat-rpm/conserver.init %{buildroot}/%{_initrddir}/%{name} # install pam auth file install -d %{buildroot}/etc/pam.d cat <<__eof__ > %{buildroot}/etc/pam.d/%{name} #%PAM-1.0 auth required /lib/security/pam_stack.so service=system-auth account required /lib/security/pam_stack.so service=system-auth __eof__ %clean %{__rm} -rf %{buildroot} %post if [ -x %{_initrddir}/%{name} ]; then /sbin/chkconfig --add %{name} fi # make sure /etc/services has a conserver entry if ! egrep '\' /etc/services > /dev/null 2>&1 ; then echo "console 782/tcp conserver" >> /etc/services fi %preun if [ "$1" = 0 ]; then if [ -x %{_initrddir}/%{name} ]; then %{_initrddir}/%{name} stop /sbin/chkconfig --del %{name} fi fi %files %defattr(-,root,root) %doc CHANGES FAQ INSTALL README TODO autologin %doc conserver/convert conserver.html %dir %{_sysconfdir}/%{name} %{_sysconfdir}/%{name}/*.sample %attr(755,root,root) %{_initrddir}/%{name} %attr(644,root,root) /etc/pam.d/%{name} %{_sbindir}/conserver %doc %{_mandir}/man5/conserver.* %doc %{_mandir}/man8/conserver.* %files client %defattr(-,root,root) %{_bindir}/console %doc %{_mandir}/man1/console.* %changelog * Fri Nov 19 2004 Paul Heinlein 8.1.11-1 - new upstream version * Mon Oct 11 2004 Paul Heinlein 8.1.10-1 - new upstream version - break package into two, one for server, one for client * Wed Aug 18 2004 Paul Heinlein 8.1.9-1 - new upstream version * Fri May 14 2004 Paul Heinlein 8.1.5-1 - new upstream version * Wed Feb 18 2004 Paul Heinlein 8.1.1-1 - new upstream version * Tue Oct 21 2003 Paul Heinlein 8.0.4-1 - version upgrade * Tue Sep 23 2003 Paul Heinlein 7.2.7-2 - spec file cleanups * Fri Jul 25 2003 Paul Heinlein - updated for 7.2.7 * Sun Dec 29 2002 Paul Heinlein - updated for 7.2.4 - ssl and pam support enabled * Tue Sep 17 2002 Paul Heinlein - added support for %redhatvers * Mon Sep 16 2002 Paul Heinlein - added changelog - updated for 7.2.2 - rearranged make options a bit * Mon Sep 2 2002 Paul Heinlein - added smp-aware make options * Wed May 15 2002 Paul Heinlein - initial release ### ### eof ###