|
|
3baca5 |
Name: conman
|
|
|
3baca5 |
Version: 0.2.8
|
|
|
3baca5 |
Release: 1%{?dist}
|
|
|
3baca5 |
Summary: ConMan - The Console Manager
|
|
|
3baca5 |
|
|
|
3baca5 |
Group: Applications/System
|
|
|
3baca5 |
License: GPLv3+
|
|
|
3baca5 |
URL: https://dun.github.io/conman/
|
|
|
3baca5 |
Source0: https://github.com/dun/%{name}/archive/%{name}-%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
3baca5 |
Source1: %{name}.service
|
|
|
3baca5 |
Source2: %{name}.logrotate
|
|
|
3baca5 |
|
|
|
3baca5 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
3baca5 |
|
|
|
3baca5 |
Requires: logrotate
|
|
|
3baca5 |
Requires(post): systemd-units
|
|
|
3baca5 |
Requires(preun): systemd-units
|
|
|
3baca5 |
Requires(postun): systemd-units
|
|
|
3baca5 |
BuildRequires: tcp_wrappers
|
|
|
3baca5 |
BuildRequires: systemd-units
|
|
|
3baca5 |
BuildRequires: freeipmi-devel
|
|
|
3baca5 |
|
|
|
3baca5 |
%description
|
|
|
3baca5 |
ConMan is a serial console management program designed to support a large
|
|
|
3baca5 |
number of console devices and simultaneous users. It currently supports
|
|
|
3baca5 |
local serial devices and remote terminal servers (via the telnet protocol).
|
|
|
3baca5 |
Its features include:
|
|
|
3baca5 |
|
|
|
3baca5 |
- mapping symbolic names to console devices
|
|
|
3baca5 |
- logging all output from a console device to file
|
|
|
3baca5 |
- supporting monitor (R/O), interactive (R/W), and
|
|
|
3baca5 |
broadcast (W/O) modes of console access
|
|
|
3baca5 |
- allowing clients to join or steal console "write" privileges
|
|
|
3baca5 |
- executing Expect scripts across multiple consoles in parallel
|
|
|
3baca5 |
|
|
|
3baca5 |
%prep
|
|
|
3baca5 |
%setup -qn %{name}-%{name}-%{version}
|
|
|
3baca5 |
|
|
|
3baca5 |
# fix paths
|
|
|
3baca5 |
sed -i -e 's|lib\/|share\/|g' lib/examples/*.exp
|
|
|
3baca5 |
|
|
|
3baca5 |
# fix shebang
|
|
|
3baca5 |
sed -i -e 's|\/usr\/bin\/env perl|\/usr\/bin\/perl|g' conmen
|
|
|
3baca5 |
|
|
|
3baca5 |
|
|
|
3baca5 |
%build
|
|
|
3baca5 |
|
|
|
3baca5 |
# This is a bit rough, it builds as PIE client tool (conman)
|
|
|
3baca5 |
# in addition to PIEing daemon (conmand). But for finer granularity,
|
|
|
3baca5 |
# we'd need to patch Makefile.in to make it possible to have different
|
|
|
3baca5 |
# CFLAGS et al for these two binaries.
|
|
|
3baca5 |
%ifarch s390 s390x sparcv9 sparc64
|
|
|
3baca5 |
export PIECFLAGS="-fPIE"
|
|
|
3baca5 |
%else
|
|
|
3baca5 |
export PIECFLAGS="-fpie"
|
|
|
3baca5 |
%endif
|
|
|
3baca5 |
export RELRO="-Wl,-z,relro,-z,now"
|
|
|
3baca5 |
|
|
|
3baca5 |
%configure --with-tcp-wrappers CFLAGS="$CFLAGS $PIECFLAGS $RELRO" CXXFLAGS="$CXXFLAGS $PIECFLAGS $RELRO" LDFLAGS="$LDFLAGS -pie"
|
|
|
3baca5 |
make %{?_smp_mflags}
|
|
|
3baca5 |
|
|
|
3baca5 |
%install
|
|
|
3baca5 |
rm -rf $RPM_BUILD_ROOT
|
|
|
3baca5 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
3baca5 |
# put in our own initscript and logrotate
|
|
|
3baca5 |
install -D -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
|
|
|
3baca5 |
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/init.d
|
|
|
3baca5 |
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
|
|
|
3baca5 |
# make log directories
|
|
|
3baca5 |
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/%{name}
|
|
|
3baca5 |
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/%{name}.old
|
|
|
3baca5 |
|
|
|
3baca5 |
# examples don't belong in libdir...
|
|
|
3baca5 |
rm -rf $RPM_BUILD_ROOT%/usr/lib/%{name}/examples
|
|
|
3baca5 |
# move scripts to proper place
|
|
|
3baca5 |
mv $RPM_BUILD_ROOT/usr/lib/%{name} $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
3baca5 |
|
|
|
3baca5 |
## these shouldn't be executable
|
|
|
3baca5 |
#chmod -x $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
|
|
|
3baca5 |
# rhel7 uses systemd instead of sysV init, /etc/sysconfig/conman
|
|
|
3baca5 |
# is not used. Remove it to reduce user's confusion:
|
|
|
3baca5 |
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
|
|
|
3baca5 |
rmdir $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
|
|
3baca5 |
# adjust perms on main config file
|
|
|
3baca5 |
chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
|
|
|
3baca5 |
|
|
|
3baca5 |
%clean
|
|
|
3baca5 |
rm -rf "$RPM_BUILD_ROOT"
|
|
|
3baca5 |
|
|
|
3baca5 |
%post
|
|
|
3baca5 |
if [ $1 -eq 1 ] ; then
|
|
|
3baca5 |
# Initial installation
|
|
|
3baca5 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
3baca5 |
fi
|
|
|
3baca5 |
|
|
|
3baca5 |
%preun
|
|
|
3baca5 |
if [ $1 -eq 0 ] ; then
|
|
|
3baca5 |
# Package removal, not upgrade
|
|
|
3baca5 |
/bin/systemctl --no-reload disable conman.service > /dev/null 2>&1 || :
|
|
|
3baca5 |
/bin/systemctl stop conman.service > /dev/null 2>&1 || :
|
|
|
3baca5 |
fi
|
|
|
3baca5 |
|
|
|
3baca5 |
%postun
|
|
|
3baca5 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
3baca5 |
if [ $1 -ge 1 ] ; then
|
|
|
3baca5 |
# Package upgrade, not uninstall
|
|
|
3baca5 |
/bin/systemctl try-restart conman.service >/dev/null 2>&1 || :
|
|
|
3baca5 |
fi
|
|
|
3baca5 |
|
|
|
3baca5 |
%triggerun -- conman < 0.2.7-1
|
|
|
3baca5 |
# Save the current service runlevel info
|
|
|
3baca5 |
# User must manually run systemd-sysv-convert --apply conman
|
|
|
3baca5 |
# to migrate them to systemd targets
|
|
|
3baca5 |
/usr/bin/systemd-sysv-convert --save conman >/dev/null 2>&1 ||:
|
|
|
3baca5 |
|
|
|
3baca5 |
# Run these because the SysV package being removed won't do them
|
|
|
3baca5 |
/sbin/chkconfig --del conman >/dev/null 2>&1 || :
|
|
|
3baca5 |
/bin/systemctl try-restart conman.service >/dev/null 2>&1 || :
|
|
|
3baca5 |
|
|
|
3baca5 |
%files
|
|
|
3baca5 |
%defattr(-,root,root,-)
|
|
|
3baca5 |
%license COPYING
|
|
|
3baca5 |
%doc AUTHORS FAQ NEWS
|
|
|
3baca5 |
%doc lib/examples
|
|
|
3baca5 |
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
|
|
3baca5 |
# rhel7 does not use this file:
|
|
|
3baca5 |
#%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
|
3baca5 |
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
|
|
3baca5 |
%{_unitdir}/%{name}.service
|
|
|
3baca5 |
%{_localstatedir}/log/%{name}
|
|
|
3baca5 |
%{_localstatedir}/log/%{name}.old
|
|
|
3baca5 |
%{_bindir}/*
|
|
|
3baca5 |
%{_sbindir}/*
|
|
|
3baca5 |
%{_datadir}/%{name}
|
|
|
3baca5 |
%{_mandir}/*/*
|
|
|
3baca5 |
|
|
|
3baca5 |
%changelog
|
|
|
3baca5 |
* Tue Aug 29 2017 Ondrej Vasik <ovasik@redhat.com> - 0.2.8-1
|
|
|
3baca5 |
- updated to 0.2.8, spec cleanups, drop overflow hack(#1435840)
|
|
|
3baca5 |
|
|
|
3baca5 |
* Fri May 13 2016 David Sommerseth <davids@redhat.com> - 0.2.7-15
|
|
|
3baca5 |
- Fix lost CFFLAGS/CXXFLAGS/LDFLAGS from RELRO/PIE fixes in 0.2.7-13 (1092546)
|
|
|
3baca5 |
|
|
|
3baca5 |
* Fri May 13 2016 David Sommerseth <davids@redhat.com> - 0.2.7-14
|
|
|
3baca5 |
- Fix buffer overflow issue triggered by PIE/RELRO builds (1092546)
|
|
|
3baca5 |
|
|
|
3baca5 |
* Mon Sep 14 2015 Denys Vlasenko <dvlasenk@redhat.com> - 0.2.7-13
|
|
|
3baca5 |
- Build executables with RELRO and PIE (1092546)
|
|
|
3baca5 |
|
|
|
3baca5 |
* Fri Jul 17 2015 Denys Vlasenko <dvlasenk@redhat.com> - 0.2.7-12
|
|
|
3baca5 |
- Remove unused /etc/sysconfig/conman.
|
|
|
3baca5 |
- Resolves: rhbz#1244219.
|
|
|
3baca5 |
|
|
|
3baca5 |
* Fri Jul 17 2015 Denys Vlasenko <dvlasenk@redhat.com> - 0.2.7-11
|
|
|
3baca5 |
- Ensure that num_threads <= IPMICONSOLE_THREAD_COUNT_MAX.
|
|
|
3baca5 |
- Resolves: rhbz#1244189.
|
|
|
3baca5 |
|
|
|
3baca5 |
* Wed Jul 1 2015 Denys Vlasenko <dvlasenk@redhat.com> - 0.2.7-10
|
|
|
3baca5 |
- Enable IPMI feature.
|
|
|
3baca5 |
- Resolves: rhbz#1084116.
|
|
|
3baca5 |
|
|
|
3baca5 |
* Wed Apr 8 2015 Denys Vlasenko <dvlasenk@redhat.com> - 0.2.7-9
|
|
|
3baca5 |
- Added commented-out "LimitNOFILE=" directive to conman.service.
|
|
|
3baca5 |
- This is systemd-esque way to change process limits for serivces.
|
|
|
3baca5 |
- Also and a comment when to use it.
|
|
|
3baca5 |
- Resolves: rhbz#1035228.
|
|
|
3baca5 |
|
|
|
3baca5 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.2.7-8
|
|
|
3baca5 |
- Mass rebuild 2014-01-24
|
|
|
3baca5 |
|
|
|
3baca5 |
* Tue Jan 7 2014 Denys Vlasenko <dvlasenk@redhat.com> - 0.2.7-7
|
|
|
3baca5 |
- Added "BuildRequires: systemd-units" to fix _unitdir expansion.
|
|
|
3baca5 |
- Resolves: rhbz#1048854.
|
|
|
3baca5 |
|
|
|
3baca5 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.2.7-6
|
|
|
3baca5 |
- Mass rebuild 2013-12-27
|
|
|
3baca5 |
|
|
|
3baca5 |
* Tue May 7 2013 Denys Vlasenko <dvlasenk@redhat.com> - 0.2.7-5
|
|
|
3baca5 |
- Again fixed "License:" in spec file (GPLv2+ -> GPLv3+).
|
|
|
3baca5 |
|
|
|
3baca5 |
* Tue May 7 2013 Denys Vlasenko <dvlasenk@redhat.com> - 0.2.7-4
|
|
|
3baca5 |
- Forward-porting fixes from RHEL6.
|
|
|
3baca5 |
- Enlarge buffer used for formatting date in a string format.
|
|
|
3baca5 |
- Resolves: rhbz#891938.
|
|
|
3baca5 |
- Allow configuration of the maximum number of open files.
|
|
|
3baca5 |
- Resolves: rhbz#738967.
|
|
|
3baca5 |
|
|
|
3baca5 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-3
|
|
|
3baca5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
3baca5 |
|
|
|
3baca5 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2
|
|
|
3baca5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
3baca5 |
|
|
|
3baca5 |
* Tue Apr 17 2012 Jon Ciesla <limburgher@gmail.com> - 0.2.7-1
|
|
|
3baca5 |
- Migrate to systemd, BZ 771474.
|
|
|
3baca5 |
|
|
|
3baca5 |
* Sun Apr 15 2012 Steven M. Parrish <smparrish@gmail.com> - 0.2.7-0
|
|
|
3baca5 |
- New upstream release
|
|
|
3baca5 |
|
|
|
3baca5 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-4
|
|
|
3baca5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
3baca5 |
|
|
|
3baca5 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-3
|
|
|
3baca5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
3baca5 |
|
|
|
3baca5 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-2
|
|
|
3baca5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
3baca5 |
|
|
|
3baca5 |
* Mon Jun 08 2009 Steven M. Parrish <tuxbrewr@fedoraproject.org> - 0.2.5-0
|
|
|
3baca5 |
- New upstream release
|
|
|
3baca5 |
|
|
|
3baca5 |
* Mon Apr 20 2009 Steven M. Parrish <tuxbrewr@fedoraproject.org> - 0.2.4.1-1
|
|
|
3baca5 |
- New upstream release
|
|
|
3baca5 |
|
|
|
3baca5 |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-3
|
|
|
3baca5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
3baca5 |
|
|
|
3baca5 |
* Mon Oct 06 2008 Jarod Wilson <jarod@redhat.com> 0.2.2-2
|
|
|
3baca5 |
- The console option in conman.conf is case-insensitive, so relax
|
|
|
3baca5 |
defined consoles check in initscript (Mark McLoughlin, #465777)
|
|
|
3baca5 |
|
|
|
3baca5 |
* Mon Sep 08 2008 Steven M. Parrish <smparrish@shallowcreek.net> 0.2.2-1
|
|
|
3baca5 |
- New upstream release
|
|
|
3baca5 |
|
|
|
3baca5 |
* Fri May 02 2008 Jarod Wilson <jwilson@redhat.com> 0.2.1-1
|
|
|
3baca5 |
- New upstream release
|
|
|
3baca5 |
|
|
|
3baca5 |
* Wed Feb 13 2008 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-8
|
|
|
3baca5 |
- Bump and rebuild for gcc 4.3
|
|
|
3baca5 |
|
|
|
3baca5 |
* Thu Apr 26 2007 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-7
|
|
|
3baca5 |
- Update project urls
|
|
|
3baca5 |
- Fix up initscript exit codes (#237936)
|
|
|
3baca5 |
|
|
|
3baca5 |
* Tue Sep 05 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-6
|
|
|
3baca5 |
- Bump for new glibc
|
|
|
3baca5 |
|
|
|
3baca5 |
* Fri Jul 28 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-5
|
|
|
3baca5 |
- Properly enable smp_mflags this time
|
|
|
3baca5 |
|
|
|
3baca5 |
* Fri Jul 28 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-4
|
|
|
3baca5 |
- Add Reqs on chkconfig and service
|
|
|
3baca5 |
- Turn on smp_mflags
|
|
|
3baca5 |
- Initial build for RHEL5
|
|
|
3baca5 |
|
|
|
3baca5 |
* Wed Jul 05 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-3
|
|
|
3baca5 |
- Add missing condrestart fuction to initscript
|
|
|
3baca5 |
|
|
|
3baca5 |
* Tue Jun 27 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-2
|
|
|
3baca5 |
- Don't strip bins on make install, leave for find-debug.sh
|
|
|
3baca5 |
|
|
|
3baca5 |
* Tue Jun 27 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-1
|
|
|
3baca5 |
- Update to 0.1.9.2
|
|
|
3baca5 |
|
|
|
3baca5 |
* Tue Jun 20 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.1-3
|
|
|
3baca5 |
- Add Requires: logrotate
|
|
|
3baca5 |
- Ugh, conmand exits cleanly if no CONSOLE(s) are defined in
|
|
|
3baca5 |
/etc/conman.conf, add check to initscript to report failure
|
|
|
3baca5 |
if none are defined
|
|
|
3baca5 |
|
|
|
3baca5 |
* Wed Jun 14 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.1-2
|
|
|
3baca5 |
- Create log directories and install working logrotate config
|
|
|
3baca5 |
- Use a much cleaner RH/FC-specific initscript
|
|
|
3baca5 |
|
|
|
3baca5 |
* Tue Jun 13 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.1-1
|
|
|
3baca5 |
- Initial build for Fedora Extras
|