996766b
Name:           conserver
48a161f
Version:        8.2.0
bd4e9cd
Release:        2%{?dist}
996766b
Summary:        Serial console server daemon/client
996766b
996766b
Group:          System Environment/Daemons
ed766d2
License:        BSD with advertising and zlib
996766b
URL:            http://www.conserver.com/
996766b
Source0:        http://www.conserver.com/%{name}-%{version}.tar.gz
0550813
Source1:	%{name}.service
b6db56e
Patch0:         %{name}-no-exampledir.patch
0550813
#Patch1:         %{name}-initscript.patch
7539911
Patch2:         %{name}-gssapi.patch
996766b
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
996766b
indy f83bd65
BuildRequires:  pam-devel, openssl-devel, tcp_wrappers-devel, krb5-devel, freeipmi-devel
7539911
BuildRequires:  autoconf, automake, systemd-units
0550813
Requires(post): systemd-units
0550813
Requires(preun): systemd-units
0550813
Requires(postun): systemd-units
996766b
996766b
%description
996766b
Conserver is an application that allows multiple users to watch a serial 
996766b
console at the same time.  It can log the data, allows users to take 
996766b
write-access of a console (one at a time), and has a variety of bells 
996766b
and whistles to accentuate that basic functionality.
996766b
e4ac405
%package client
e4ac405
Summary: Serial console client
e4ac405
Group: Applications/Communications
e4ac405
e4ac405
%description client
e4ac405
This is the client package needed to interact with a Conserver daemon.
e4ac405
996766b
%prep
996766b
%setup -q
996766b
%patch0 -p1
0550813
#%patch1 -p1
7539911
%patch2 -p1
996766b
996766b
%build
bd4e9cd
%global _hardened_build 1
996766b
# we don't want to install the solaris conserver.rc file
996766b
f="conserver/Makefile.in"
996766b
%{__mv} $f $f.orig
996766b
%{__sed} -e 's/^.*conserver\.rc.*$//' < $f.orig > $f
996766b
7539911
autoreconf -f -i
7539911
c964111
%configure --with-libwrap \
3e12048
        --with-openssl \
b6db56e
        --with-pam \
indy f83bd65
        --with-freeipmi \
b6db56e
        --with-gssapi \
b6db56e
        --with-striprealm \
b6db56e
        --with-port=782
996766b
996766b
make %{?_smp_mflags}
996766b
996766b
996766b
%install
996766b
rm -rf $RPM_BUILD_ROOT
996766b
make install DESTDIR=$RPM_BUILD_ROOT
996766b
996766b
# put commented copies of the sample configure files in the
996766b
# system configuration directory
996766b
%{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}
996766b
%{__sed} -e 's/^/#/' \
996766b
  < conserver.cf/conserver.cf \
996766b
  > $RPM_BUILD_ROOT/%{_sysconfdir}/conserver.cf
996766b
%{__sed} -e 's/^/#/' \
996766b
  < conserver.cf/conserver.passwd \
996766b
  > $RPM_BUILD_ROOT/%{_sysconfdir}/conserver.passwd
996766b
996766b
# install copy of init script
0550813
#%{__mkdir_p} $RPM_BUILD_ROOT/%{_initrddir}
0550813
#%{__cp} contrib/redhat-rpm/conserver.init $RPM_BUILD_ROOT/%{_initrddir}/conserver
0550813
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/conserver.service
996766b
996766b
996766b
%clean
996766b
rm -rf $RPM_BUILD_ROOT
996766b
996766b
%post
0550813
if [ $1 -eq 1 ] ; then 
0550813
    # Initial installation 
0550813
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
996766b
fi
996766b
996766b
%preun
0550813
if [ $1 -eq 0 ] ; then
0550813
    # Package removal, not upgrade
0550813
    /bin/systemctl --no-reload disable conserver.service > /dev/null 2>&1 || :
0550813
    /bin/systemctl stop conserver.service > /dev/null 2>&1 || :
0550813
fi
0550813
0550813
%postun
0550813
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
0550813
if [ $1 -ge 1 ] ; then
0550813
    # Package upgrade, not uninstall
0550813
    /bin/systemctl try-restart conserver.service >/dev/null 2>&1 || :
996766b
fi
996766b
0550813
%triggerun -- conserver < 8.1.18-5
0550813
# Save the current service runlevel info
0550813
# User must manually run systemd-sysv-convert --apply conserver
0550813
# to migrate them to systemd targets
0550813
/usr/bin/systemd-sysv-convert --save conserver >/dev/null 2>&1 ||:
0550813
0550813
# Run these because the SysV package being removed won't do them
0550813
/sbin/chkconfig --del conserver >/dev/null 2>&1 || :
0550813
/bin/systemctl try-restart conserver.service >/dev/null 2>&1 || :
996766b
996766b
%files
996766b
%defattr(-,root,root,-)
996766b
%doc CHANGES FAQ LICENSE INSTALL README conserver.cf/samples/ conserver.cf/conserver.cf conserver.cf/conserver.passwd
996766b
%config(noreplace) %{_sysconfdir}/conserver.*
0550813
%{_unitdir}/conserver.service
996766b
%{_libdir}/conserver
996766b
%{_mandir}/man5/conserver.cf.5.gz
996766b
%{_mandir}/man5/conserver.passwd.5.gz
996766b
%{_mandir}/man8/conserver.8.gz
996766b
%{_sbindir}/conserver
996766b
e4ac405
%files client
e4ac405
%defattr(-,root,root,-)
e4ac405
%doc LICENSE
e4ac405
%{_bindir}/console
e4ac405
%{_mandir}/man1/console.1.gz
e4ac405
996766b
%changelog
bd4e9cd
* Mon Jan 12 2015 Jiri Kastner <jkastner (at) redhat (dot) com> - 8.2.0-2
bd4e9cd
- hardening build (BZ#955327)
bd4e9cd
48a161f
* Wed Jan  7 2015 Jiri Kastner <jkastner (at) redhat (dot) com> - 8.2.0-1
48a161f
- updated to new release
48a161f
3de7493
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.20-3
3de7493
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3de7493
386a6c1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.20-2
386a6c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
386a6c1
indy f83bd65
* Mon Apr 14 2014 Jiri Kastner <jkastner (at) redhat (dot) com> - 8.1.20-1
indy f83bd65
- updated to new release
indy f83bd65
- added support for freeipmi (serial over lan)
indy f83bd65
7539911
* Mon Sep 16 2013 Jiri Kastner <jkastner (at) redhat (dot) com> - 8.1.18-9
7539911
- removed libgss*-devel build dependency
7539911
f9f174f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.18-8
f9f174f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f9f174f
5d29897
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.18-7
5d29897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5d29897
9fc4b4f
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.18-6
9fc4b4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9fc4b4f
0550813
* Tue Apr 17 2012 Jon Ciesla <limburgher@gmail.com> - 8.1.18-5
0550813
- Migrate to systemd, BZ 771450.
0550813
2570554
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.18-4
2570554
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2570554
3e0a82e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.18-3
3e0a82e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3e0a82e
9d5cac0
* Mon Jan 31 2011 Patrick "Jima" Laughton <jima@beer.tclug.org> 8.1.18-2
9d5cac0
- Paolo Bonzini advises --with-uds would be a Bad Thing; removed (thanks!)
9d5cac0
b6db56e
* Tue Jan 25 2011 Patrick "Jima" Laughton <jima@beer.tclug.org> 8.1.18-1
b6db56e
- Updated to newer version for added Kerberos support (BZ#652688)
b6db56e
- Fixed BZ#466541
b6db56e
- Fixed broken tcp_wrappers support
b6db56e
- Enabled Unix Domain Socket support
b6db56e
- Removed upstream-adopted patches
b6db56e
8cf4218
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 8.1.16-9
8cf4218
- rebuilt with new openssl
8cf4218
0d4a98a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.16-8
0d4a98a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0d4a98a
b59a42e
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.16-7
b59a42e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b59a42e
6014714
* Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> 8.1.16-6
6014714
- rebuild with new openssl
6014714
24df37f
* Wed Feb 13 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 8.1.16-5
24df37f
- Bump-n-build for GCC 4.3
24df37f
e32519b
* Tue Dec 04 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 8.1.16-4
e32519b
- Bump-n-build for openssl soname change
e32519b
ed766d2
* Wed Aug 22 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 8.1.16-3
ed766d2
- License clarification
ed766d2
0021970
* Tue Aug 21 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 8.1.16-2
0021970
- Rebuild for BuildID
0021970
eaa7f84
* Wed Apr 11 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 8.1.16-1
eaa7f84
- New upstream release with "certainly important" bugfix
eaa7f84
- Removed URLs from patch lines (it's all in CVS)
eaa7f84
- Added patch to fix man page permissions (755 -> 644)
eaa7f84
- rpmlint's "mixed-use-of-spaces-and-tabs" is mostly a false positive
eaa7f84
3e12048
* Wed Jan 03 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 8.1.15-1
3e12048
- New upstream release
3e12048
- Fix rpmlint warning about mixed spaces/tabs
3e12048
9230c4e
* Mon Aug 28 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 8.1.14-4
9230c4e
- Rebuild for FC6
9230c4e
c964111
* Wed May 24 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 8.1.14-3
c964111
- Fix from Nate Straz: UDS support (pre-emptively fixed bug 192910)
c964111
- Fix from Nate Straz: krb detection
c964111
e4ac405
* Wed Apr 26 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 8.1.14-2
e4ac405
- Split 'console' out to -client subpackage, as suggested by Nate Straz
e4ac405
996766b
* Mon Apr 10 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 8.1.14-1
996766b
- Figures, two days after my initial Fedora Extras RPM, a new release...
996766b
996766b
* Fri Apr 07 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 8.1.13-1
996766b
- Initial Fedora Extras RPM
996766b
- Added patch to disable /usr/share/examples/conserver -- non-standard
996766b
- Added patch to correct poorly written initscript
996766b
- Cleaned up what goes in /usr/share/doc/conserver-8.1.13/ (sloppy)
996766b
- Other .spec cleanups with lots of help from Dennis Gilmore (thanks!)