From a97bbaa70778205fe954c4ecf4177932bc5ec4bf Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 06:43:04 -0400 Subject: [PATCH] import cgdcbxd-1.0.2-9.el8 --- .cgdcbxd.metadata | 1 + .gitignore | 1 + SOURCES/cgdcbxd.service | 10 +++++ SPECS/cgdcbxd.spec | 95 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 .cgdcbxd.metadata create mode 100644 .gitignore create mode 100644 SOURCES/cgdcbxd.service create mode 100644 SPECS/cgdcbxd.spec diff --git a/.cgdcbxd.metadata b/.cgdcbxd.metadata new file mode 100644 index 0000000..6f95452 --- /dev/null +++ b/.cgdcbxd.metadata @@ -0,0 +1 @@ +228762f90fb37809857465bdd7f4eadbb9b0510a SOURCES/cgdcbxd-1.0.2.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..54a31d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cgdcbxd-1.0.2.tar.gz diff --git a/SOURCES/cgdcbxd.service b/SOURCES/cgdcbxd.service new file mode 100644 index 0000000..d773423 --- /dev/null +++ b/SOURCES/cgdcbxd.service @@ -0,0 +1,10 @@ +[Unit] +Description=cgdcbxd daemon +After=syslog.target + +[Service] +ExecStart=/usr/sbin/cgdcbxd -n + +[Install] +WantedBy=multi-user.target + diff --git a/SPECS/cgdcbxd.spec b/SPECS/cgdcbxd.spec new file mode 100644 index 0000000..66b8678 --- /dev/null +++ b/SPECS/cgdcbxd.spec @@ -0,0 +1,95 @@ +Name: cgdcbxd +Version: 1.0.2 +Release: 9%{?dist} +Summary: DCB network priority management daemon +Group: System Environment/Base +License: GPLv2 +URL: https://github.com/jrfastab/cgdcbxd + +# The source for this package was pullled from upstreams vcs. Specifically it +# was pulled from the projects github site using the following dynamic tarball +# generating url: +# https://github.com/jrfastab/cgdcbxd/zipball/v1.0.1 +Source0: %{name}-%{version}.tar.gz + +# The service file was created locally for the fedora project, but will be sent +# upstream shortly +Source1: %{name}.service +BuildRequires: libcgroup-devel libmnl-devel libtool systemd-units +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd + +%description +This is a daemon to manage the priority of network traffic in dcb enabled +environments. By using the information exchanged over the dcbx protocol on a +LAN, this package will enforce network priority on running applications on your +host using the net_prio cgroup + +%prep +%setup -q + +%build +./bootstrap.sh +export CFLAGS="-g -DFORTIFY_SOURCE -fPIE -Wl,-z,relro,-z,now" +export LDFLAGS=-pie +%{configure} +make + +%install +make DESTDIR=$RPM_BUILD_ROOT install +rm -rf $RPM_BUILD_ROOT/%{_sysconfdir} +install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/cgdcbxd.service + +%files +%doc COPYING +%{_unitdir}/cgdcbxd.service +%{_mandir}/man8/* +%{_sbindir}/* + +%post +%systemd_post cgdcbxd.service + +%preun +%systemd_preun cgdcbxd.service + +%postun +%systemd_postun_with_restart cgdcbxd.service + + +%changelog +* Mon Feb 25 2019 Neil Horman - 1.0.2-9 +- Fix erroneous cgrulesend dependency + +* Mon Feb 25 2019 Neil Horman - 1.0.2-8 +- Adding debug flag to allow debug packages + +* Wed Feb 17 2016 Neil Horman - 1.0.2-7 +- Add fortify source to build (bz 1092524) + +* Wed Feb 17 2016 Neil Horman - 1.0.2-6 +- Enable RELRO and PIE in build (bz 1092524) + +* Tue Mar 04 2014 Neil Horman - 1.0.2-5 +- Fixed double usr/sbin in cgrulesengd path (bz1065694) + +* Mon Mar 03 2014 Neil Horman - 1.0.2-4 +- Added proper dependencies and cgrules trigger (bz1065694) + +* Fri Jan 24 2014 Daniel Mach - 1.0.2-3 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 1.0.2-2 +- Mass rebuild 2013-12-27 + +* Tue Jul 23 2013 Neil Horman - 1.0.2-1 +- Update to latest upstream + +* Tue May 28 2013 Neil Horman - 1.0.1-3 +- Fix the spec file to match new systemd install scripts (bz967588) + +* Wed Feb 13 2013 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Jun 25 2012 Neil Horman 1.0.1-1 +- Initial build