Date: Thu, 15 May 2014 02:35:33 +0200 From: "User &" <wartung@peng.spline.inf.fu-berlin.de> To: FreeBSD-gnats-submit@freebsd.org Cc: alexander@sulfrian.net Subject: ports/189824: [new port] net-mgmt/lldpd Message-ID: <201405150040.s4F0e03t010105@freefall.freebsd.org> Resent-Message-ID: <201405150040.s4F0e03t010105@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 189824 >Category: ports >Synopsis: [new port] net-mgmt/lldpd >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 15 00:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Alexander Sulfrian >Release: FreeBSD 10.0-RELEASE-p1 amd64 >Organization: >Environment: System: FreeBSD peng.spline.inf.fu-berlin.de 10.0-RELEASE-p1 FreeBSD 10.0-RELEASE-p1 #0: Tue Apr 8 06:45:06 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: LLDP is an industry standard protocol designed to supplant proprietary Link-Layer protocols such as Extreme's EDP (Extreme Discovery Protocol) and CDP (Cisco Discovery Protocol). The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver Link-Layer notifications to adjacent network devices. This implementation provides LLDP sending and reception, supports VLAN and includes an SNMP subagent that can interface to an SNMP agent through AgentX protocol. It is more modern than openlldp and supports JSON and XML output. This daemon is also able to deal with CDP, SONMP, FDP and EDP protocol. It also handles LLDP-MED extension. >How-To-Repeat: >Fix: --- lldpd.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # lldpd # lldpd/distinfo # lldpd/Makefile # lldpd/pkg-plist # lldpd/pkg-descr # lldpd/files # lldpd/files/lldpd.in # echo c - lldpd mkdir -p lldpd > /dev/null 2>&1 echo x - lldpd/distinfo sed 's/^X//' >lldpd/distinfo << 'dcae4b3c2b274c6d09785dde8ead4034' XSHA256 (lldpd-0.7.8.tar.gz) = d22151e0aed3831435924c1958b4457118ff34e84164aa3b6e0b136a188c2ce7 XSIZE (lldpd-0.7.8.tar.gz) = 1491939 dcae4b3c2b274c6d09785dde8ead4034 echo x - lldpd/Makefile sed 's/^X//' >lldpd/Makefile << '203b62110e77cfc524bc463486005384' X# Created by: Alexander Sulfrian <alexander@sulfrian.net> X# $FreeBSD$ X XPORTNAME= lldpd XPORTVERSION= 0.7.8 XCATEGORIES= net-mgmt XMASTER_SITES= http://media.luffy.cx/files/lldpd/ X XMAINTAINER= alexander@sulfrian.net XCOMMENT= LLDP (802.1ab)/CDP/EDP/SONMP/FDP daemon and SNMP subagent X XLICENSE= ISCL X XLIB_DEPENDS= libevent-2.0.so:${PORTSDIR}/devel/libevent2 X XCONFLICTS_INSTALL= openlldp X XCFLAGS+= -I${LOCALBASE}/include XLDFLAGS+= -L${LOCALBASE}/lib X XGNU_CONFIGURE= yes XCONFIGURE_ARGS+= --with-privsep-chroot=/var/empty XCONFIGURE_ENV+= LIBEVENT_CFLAGS=" " LIBEVENT_LIBS="-L${LOCALBASE}/lib/event2/ -levent-2.0" X XDOCS= NEWS README.md XUSE_RC_SUBR= lldpd X XUSERS= _lldpd XGROUPS= _lldpd X XOPTIONS_DEFINE= JSON XML SNMP XJSON_DESC= "Enable JSON output via Jansson" XXML_DESC= "Enable XML output via libxml2" XSNMP_DESC= "Enable the use of SNMP" XOPTIONS_DEFAULT= JSON XML X XJSON_LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson XJSON_CONFIGURE_ENV= JANSSON_CFLAGS=" " JANSSON_LIBS="-ljansson" XJSON_CONFIGURE_WITH= json X XXML_LIB_DEPENDS= libxml2.so:${PORTSDIR}/textproc/libxml2 XXML_CONFIGURE_ENV= XML2_CFLAGS="-I${LOCALBASE}/include/libxml2" XML2_LIBS="-lxml2" XXML_CONFIGURE_WITH= xml X XSNMP_CONFIGURE_WITH= snmp XSNMP_LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp X Xpost-patch: X @${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|g" ${WRKSRC}/src/daemon/lldpd.8 X X.include <bsd.port.mk> 203b62110e77cfc524bc463486005384 echo x - lldpd/pkg-plist sed 's/^X//' >lldpd/pkg-plist << '2ea311c3f1555c17cbffa4ba4d6b51f3' Xinclude/lldp-const.h Xinclude/lldpctl.h Xlib/liblldpctl.a Xlib/liblldpctl.la Xlib/liblldpctl.so Xlib/liblldpctl.so.6 Xlib/pkgconfig/lldpctl.pc Xman/man8/lldpcli.8.gz Xman/man8/lldpctl.8.gz Xman/man8/lldpd.8.gz Xsbin/lldpcli Xsbin/lldpctl Xsbin/lldpd X%%PORTDOCS%%%%DOCSDIR%%/CONTRIBUTE.md X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog X%%PORTDOCS%%%%DOCSDIR%%/NEWS X%%PORTDOCS%%%%DOCSDIR%%/README.md X%%PORTDOCS%%@dirrmtry %%DOCSDIR%% X@dirrmtry lib/pkgconfig 2ea311c3f1555c17cbffa4ba4d6b51f3 echo x - lldpd/pkg-descr sed 's/^X//' >lldpd/pkg-descr << '04fa96f8b79251f5d24353c2666a76e8' XLLDP is an industry standard protocol designed to supplant Xproprietary Link-Layer protocols such as Extreme's EDP (Extreme XDiscovery Protocol) and CDP (Cisco Discovery Protocol). The goal of XLLDP is to provide an inter-vendor compatible mechanism to deliver XLink-Layer notifications to adjacent network devices. X XThis implementation provides LLDP sending and reception, supports XVLAN and includes an SNMP subagent that can interface to an SNMP Xagent through AgentX protocol. X XThis daemon is also able to deal with CDP, SONMP, FDP and EDP Xprotocol. It also handles LLDP-MED extension. X XWWW: http://vincentbernat.github.io/lldpd/ 04fa96f8b79251f5d24353c2666a76e8 echo c - lldpd/files mkdir -p lldpd/files > /dev/null 2>&1 echo x - lldpd/files/lldpd.in sed 's/^X//' >lldpd/files/lldpd.in << '2802f242b2d82ba0063db6424edca106' X#!/bin/sh X X# $FreeBSD$ X# X# PROVIDE: lldpd X# REQUIRE: LOGIN X# KEYWORD: shutdown X# X# Add the following lines to /etc/rc.conf to enable lldpd: X# lldpd_enable (bool): Set to "NO" by default. X# Set it to "YES" to enable lldpd. X# lldpd_flags (str): Empty by default. X# X X. /etc/rc.subr X Xname=lldpd Xrcvar=lldpd_enable X Xload_rc_config $name X X: ${lldpd_enable:="NO"} X Xcommand=%%PREFIX%%/sbin/${name} Xpidfile=/var/run/${name}.pid X Xrun_rc_command "$1" 2802f242b2d82ba0063db6424edca106 exit --- lldpd.shar ends here --- --- UIDs.patch begins here --- --- /usr/ports/UIDs 2014-04-11 20:51:04.000000000 +0200 +++ /usr/ports/UIDs 2014-05-15 02:08:42.401175712 +0200 @@ -205,6 +205,7 @@ riak:*:667:667::0:0:Riak user:/usr/local/lib/riak:/bin/sh bnetd:*:700:700::0:0:Bnetd user:/nonexistent:/usr/sbin/nologin bopm:*:717:717::0:0:Blitzed Open Proxy Monitor:/nonexistent:/bin/sh +_lldpd:*:720:720::0:0:lldpd user:/nonexistent:/usr/sbin/nologin openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/usr/sbin/nologin foreman_proxy:*:812:812::0:0:Foreman Smart Proxy:/usr/local/share/foreman-proxy:/usr/sbin/nologin puppet:*:814:814::0:0:Puppet Daemon:/nonexistent:/usr/sbin/nologin --- UIDs.patch ends here --- --- GIDs.patch begins here --- --- /usr/ports/GIDs 2014-04-11 20:51:04.000000000 +0200 +++ /usr/ports/GIDs 2014-05-15 02:08:14.907177801 +0200 @@ -201,6 +201,7 @@ riak:*:667: bnetd:*:700: bopm:*:717: +_lldpd:*:720: openxpki:*:777: foreman_proxy:*:812: puppet:*:814: --- GIDs.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405150040.s4F0e03t010105>