From 3b9c95740f51b043ffb76aaa88b90df5fe87a927 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Jul 23 2013 18:11:54 +0000 Subject: import cgdcbxd-1.0.2-1.el7.src.rpm --- 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/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet 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..90e7ac8 --- /dev/null +++ b/SPECS/cgdcbxd.spec @@ -0,0 +1,68 @@ +Name: cgdcbxd +Version: 1.0.2 +Release: 1%{?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 +%{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 +* 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