[cgdcbxd] initial import

Neil Horman nhorman at fedoraproject.org
Tue Aug 7 20:21:32 UTC 2012


commit f77a4c6a9e99a6f3ff3e5d07da6b8fd442a4d669
Author: Neil Horman <nhorman at tuxdriver.com>
Date:   Tue Aug 7 16:21:17 2012 -0400

    initial import

 .gitignore      |    1 +
 cgdcbxd.service |   10 +++++++++
 cgdcbxd.spec    |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 4 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3f54888 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jrfastab-cgdcbxd-v1.0.1-0-g87bd754.tar.gz
diff --git a/cgdcbxd.service b/cgdcbxd.service
new file mode 100644
index 0000000..d773423
--- /dev/null
+++ b/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/cgdcbxd.spec b/cgdcbxd.spec
new file mode 100644
index 0000000..021b846
--- /dev/null
+++ b/cgdcbxd.spec
@@ -0,0 +1,59 @@
+Name:		cgdcbxd
+Version:	1.0.1
+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:	jrfastab-%{name}-v%{version}-0-g87bd754.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-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
+
+%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 -n jrfastab-cgdcbxd-87bd754
+
+%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
+* Mon Jun 25 2012 Neil Horman <nhorman at tuxdriver.com> 1.0.1-1 
+- Initial build
diff --git a/sources b/sources
index e69de29..9c27a9e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+385af753412644ed4e1c2bfdafe98b66  jrfastab-cgdcbxd-v1.0.1-0-g87bd754.tar.gz


More information about the scm-commits mailing list