Blame SPECS/cgdcbxd.spec

51fe0e
Name:		cgdcbxd
51fe0e
Version:	1.0.2
51fe0e
Release:	7%{?dist}
51fe0e
Summary:	DCB network priority management daemon	
51fe0e
Group:		System Environment/Base
51fe0e
License:	GPLv2
51fe0e
URL:		https://github.com/jrfastab/cgdcbxd
51fe0e
51fe0e
# The source for this package was pullled from upstreams vcs.  Specifically it
51fe0e
# was pulled from the projects github site using the following dynamic tarball
51fe0e
# generating url:
51fe0e
# https://github.com/jrfastab/cgdcbxd/zipball/v1.0.1
51fe0e
Source0:	%{name}-%{version}.tar.gz
51fe0e
51fe0e
# The service file was created locally for the fedora project, but will be sent
51fe0e
# upstream shortly
51fe0e
Source1:	%{name}.service
51fe0e
BuildRequires:	libcgroup-devel libmnl-devel libtool systemd-units
51fe0e
Requires(pre):  %{_sbindir}/cgrulesengd
51fe0e
Requires(post): systemd
51fe0e
Requires(preun): systemd
51fe0e
Requires(postun): systemd
51fe0e
51fe0e
%description
51fe0e
This is a daemon to manage the priority of network traffic in dcb enabled
51fe0e
environments.  By using the information exchanged over the dcbx protocol on a
51fe0e
LAN, this package will enforce network priority on running applications on your
51fe0e
host using the net_prio cgroup
51fe0e
51fe0e
%prep
51fe0e
%setup -q 
51fe0e
51fe0e
%build
51fe0e
./bootstrap.sh
51fe0e
export CFLAGS="-DFORTIFY_SOURCE -fPIE -Wl,-z,relro,-z,now"
51fe0e
export LDFLAGS=-pie
51fe0e
%{configure}
51fe0e
make
51fe0e
51fe0e
%install
51fe0e
make DESTDIR=$RPM_BUILD_ROOT install
51fe0e
rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}
51fe0e
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/cgdcbxd.service
51fe0e
51fe0e
%files
51fe0e
%doc COPYING
51fe0e
%{_unitdir}/cgdcbxd.service
51fe0e
%{_mandir}/man8/*
51fe0e
%{_sbindir}/*
51fe0e
51fe0e
%post
51fe0e
%systemd_post cgdcbxd.service
51fe0e
51fe0e
%preun
51fe0e
%systemd_preun cgdcbxd.service
51fe0e
51fe0e
%postun
51fe0e
%systemd_postun_with_restart cgdcbxd.service
51fe0e
51fe0e
%triggerin -- iscsi-initiator-utils
51fe0e
grep -q iscsid /etc/cgrules.conf
51fe0e
if [ $? -ne 0 ]
51fe0e
then
51fe0e
	echo "*:iscsid net_prio cgdcb-4-3260" >> /etc/cgrules.conf
51fe0e
fi
51fe0e
51fe0e
51fe0e
%changelog
51fe0e
* Wed Feb 17 2016 Neil Horman <nhorman@redhat.com> - 1.0.2-7
51fe0e
- Add fortify source to build (bz 1092524)
51fe0e
51fe0e
* Wed Feb 17 2016 Neil Horman <nhorman@redhat.com> - 1.0.2-6
51fe0e
- Enable RELRO and PIE in build (bz 1092524)
51fe0e
51fe0e
* Tue Mar 04 2014 Neil Horman <nhorman@redhat.com> - 1.0.2-5
51fe0e
- Fixed double usr/sbin in cgrulesengd path (bz1065694)
51fe0e
51fe0e
* Mon Mar 03 2014 Neil Horman <nhorman@redhat.com> - 1.0.2-4
51fe0e
- Added proper dependencies and cgrules trigger (bz1065694)
51fe0e
51fe0e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.2-3
51fe0e
- Mass rebuild 2014-01-24
51fe0e
51fe0e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.2-2
51fe0e
- Mass rebuild 2013-12-27
51fe0e
51fe0e
* Tue Jul 23 2013 Neil Horman <nhorman@redhat.com> - 1.0.2-1
51fe0e
- Update to latest upstream
51fe0e
51fe0e
* Tue May 28 2013 Neil Horman <nhorman@redhat.com> - 1.0.1-3
51fe0e
- Fix the spec file to match new systemd install scripts (bz967588)
51fe0e
51fe0e
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
51fe0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
51fe0e
51fe0e
* Mon Jun 25 2012 Neil Horman <nhorman@tuxdriver.com> 1.0.1-1 
51fe0e
- Initial build