[ladvd: 1/3] - bring rawhide package up-to-date with F16 version
Tomasz Torcz
ttorcz at fedoraproject.org
Tue Jan 24 14:23:34 UTC 2012
commit 32121600e1d17743235e61e2ae3880549a810093
Author: Tomasz Torcz <tomek at pipebreaker.pl>
Date: Tue Jan 24 14:38:39 2012 +0100
- bring rawhide package up-to-date with F16 version
ladvd-0.6.1-bonding.patch | 20 ------
ladvd-0.9.2-add-attribute-unused-to-tlv.patch | 36 ++++++++++
ladvd.init | 91 -------------------------
ladvd.service | 14 ++++
ladvd.sysconfig | 19 -----
ladvd.tmpfiles | 1 +
6 files changed, 51 insertions(+), 130 deletions(-)
---
diff --git a/ladvd-0.9.2-add-attribute-unused-to-tlv.patch b/ladvd-0.9.2-add-attribute-unused-to-tlv.patch
new file mode 100644
index 0000000..55fcdf4
--- /dev/null
+++ b/ladvd-0.9.2-add-attribute-unused-to-tlv.patch
@@ -0,0 +1,36 @@
+diff -ur ladvd-0.9.2.orig/src/proto/cdp.c ladvd-0.9.2/src/proto/cdp.c
+--- ladvd-0.9.2.orig/src/proto/cdp.c 2011-02-15 08:59:08.959886752 +0100
++++ ladvd-0.9.2/src/proto/cdp.c 2011-02-15 09:00:51.917237348 +0100
+@@ -261,7 +261,7 @@
+ size_t length;
+ struct cdp_header cdp;
+
+- char *tlv;
++ char __attribute__((__unused__)) *tlv;
+ char *pos;
+ tlv_t type;
+
+diff -ur ladvd-0.9.2.orig/src/proto/edp.c ladvd-0.9.2/src/proto/edp.c
+--- ladvd-0.9.2.orig/src/proto/edp.c 2011-02-15 08:59:08.955886660 +0100
++++ ladvd-0.9.2/src/proto/edp.c 2011-02-15 09:01:15.305771498 +0100
+@@ -190,7 +190,7 @@
+ size_t length;
+ struct edp_header edp;
+
+- char *tlv;
++ char __attribute__((__unused__)) *tlv;
+ char *pos;
+ tlv_t type;
+
+diff -ur ladvd-0.9.2.orig/src/proto/fdp.c ladvd-0.9.2/src/proto/fdp.c
+--- ladvd-0.9.2.orig/src/proto/fdp.c 2011-02-15 08:59:08.957886706 +0100
++++ ladvd-0.9.2/src/proto/fdp.c 2011-02-15 09:01:30.726123704 +0100
+@@ -216,7 +216,7 @@
+ size_t length;
+ struct fdp_header fdp;
+
+- char *tlv;
++ char __attribute__((__unused__)) *tlv;
+ char *pos;
+ tlv_t type;
+
diff --git a/ladvd.service b/ladvd.service
new file mode 100644
index 0000000..b9a225e
--- /dev/null
+++ b/ladvd.service
@@ -0,0 +1,14 @@
+# To modify this unit, copy it to /etc/systemd/system and edit there
+# This way a list of interfaces which ladvd should utilize can be supplied.
+
+[Unit]
+Description=uses CDP / LLDP frames to inform switches about connected hosts
+Requires=network.target
+
+[Service]
+ExecStart=/usr/sbin/ladvd -f -a
+PIDFile=/var/run/ladvd.pid
+StandardOutput=syslog
+
+[Install]
+WantedBy=multi-user.target
diff --git a/ladvd.tmpfiles b/ladvd.tmpfiles
new file mode 100644
index 0000000..a883237
--- /dev/null
+++ b/ladvd.tmpfiles
@@ -0,0 +1 @@
+d /var/run/ladvd 0755 root root
More information about the scm-commits
mailing list