]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
If net-snmp/agent/struct.h does not exist, provide an empty one.
authorVincent Bernat <bernat@luffy.cx>
Tue, 19 May 2009 12:32:28 +0000 (14:32 +0200)
committerVincent Bernat <bernat@luffy.cx>
Tue, 19 May 2009 12:34:51 +0000 (14:34 +0200)
README
redhat/lldpd.spec

diff --git a/README b/README
index 6ee2ed46fe912e2e2d488bcee31efbce25601125..971f36856f7c67b88f821b1085b2e14bfd0fed38 100644 (file)
--- a/README
+++ b/README
@@ -26,11 +26,9 @@ To compile lldpd, use the following:
  sudo make install
 
 If it complains about a missing agent/struct.h, your installation of
-Net-SNMP is incomplete. Adapt the following commands:
- cp agent/mibgroup/struct.h /usr/local/include/net-snmp/agent
- cp agent/mibgroup/util_funcs.h /usr/local/include/net-snmp
- cp agent/mibgroup/mibincl.h /usr/local/include/net-snmp/library
- cp agent/mibgroup/header_complex.h /usr/local/include/net-snmp/agent
+Net-SNMP is incomplete. The easiest way to fix this is to provide an
+empty struct.h:
+ touch src/struct.h
 
 lldpd uses privilege separation to increase its security. Two
 processes, one running as root and doing minimal stuff and the other
index c8013f8233cdf5232aad5803972bdeb6e6d3ab39..60bde0906ed11c20baacd65b7051c809ccccae26 100644 (file)
@@ -88,6 +88,7 @@ protocol. It also handles LLDP-MED extension.
    --with-privsep-chroot=%lldpd_chroot \
    --prefix=/usr --localstatedir=%lldpd_chroot --sysconfdir=/etc --libdir=%{_libdir}
 
+[ -f /usr/include/net-snmp/agent/struct.h ] || touch src/struct.h
 make %{?_smp_mflags}
 
 %install