From 45444847259e1533612aa2babbd420c3e935299e Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 19 May 2009 14:32:28 +0200 Subject: [PATCH] If net-snmp/agent/struct.h does not exist, provide an empty one. --- README | 8 +++----- redhat/lldpd.spec | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README b/README index 6ee2ed46..971f3685 100644 --- 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 diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index c8013f82..60bde090 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -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 -- 2.39.5