freebsd-ports/net-mgmt/lldpd/Makefile
Jason Unovitch c739808f3c net-mgmt/lldpd: update 0.9.2 -> 0.9.4
- Fix lldpd(8) in post-patch to show correct lldpd config file/directory path.
- Apply extra patches taken from upstream right after 0.9.4 was released:
* Fix build issues with 9.3's older cpp not supporting mutiple files as input.
  (likely Tier 2 archs with GCC 4.2 too)
* Fix a regression which was caused by importing/adding support for new
  OpenBSD ifmediareq changes* and the use of typeof in 0.9.4

lldpd (0.9.3)
* Do not rely on support of constructors for liblldpctl.
* Always log to stderr (even in addition to syslog).
* `lldpcli watch` accepts a limit on the number of received events.
* `lldpcli -f {xml,json} watch` should work now.
* Consider `veth` interfaces as physical interfaces.

lldpd (0.9.4)
* Make lldpd accepts a `-p` option to specify the PID file.
* Ability to change multicast MAC address to two additional values to reach
  customer bridges.
* lldpcli will now display chassis TTL when detailed view is enabled.
* Fix setting of local value for port ID.
* Fix compilation with BSD make.
* Ensure lldpcli returns an error code on invalid commands.

PR:		210390
Submitted by:	Mathieu Simon <freebsd@simweb.ch> (maintainer)
2016-06-25 23:47:22 +00:00

64 lines
1.7 KiB
Makefile

# Created by: Mathieu Simon <freebsd@simweb.ch>
# $FreeBSD$
PORTNAME= lldpd
PORTVERSION= 0.9.4
CATEGORIES= net-mgmt
MASTER_SITES= http://media.luffy.cx/files/${PORTNAME}/ \
http://mirror.1labs.ch/${PORTNAME}/
MAINTAINER= freebsd@simweb.ch
COMMENT= LLDP (802.1ab)/CDP/EDP/SONMP/FDP daemon and SNMP subagent
LICENSE= ISCL
LIB_DEPENDS= libevent.so:devel/libevent2
USES= libtool
USE_LDCONFIG= yes
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-doxygen-doc \
--enable-hardening \
--enable-privsep \
--with-privsep-chroot=/var/empty \
--with-lldpd-ctl-socket=/var/run/lldpd.socket \
--with-lldpd-pid-file=/var/run/lldpd.pid \
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
INSTALL_TARGET= install-strip
USERS= _lldpd
GROUPS= _lldpd
OPTIONS_DEFINE= BASH DOCS DTRACE JSON PIE PROPRIETARY READLINE SNMP XML ZSH
OPTIONS_DEFAULT= BASH JSON PROPRIETARY SNMP XML
OPTIONS_SUB= yes
DTRACE_DESC= DTrace support
JSON_DESC= JSON output support
PIE_DESC= Build PIE (position independant executables)
PROPRIETARY_DESC= Support proprietary protocols (CDP/EDP/FDP/SONMP)
SNMP_DESC= Enable the use of SNMP
XML_DESC= XML output support
DTRACE_CONFIGURE_ENABLE= dtrace
JSON_CONFIGURE_WITH= json
PIE_CONFIGURE_ENABLE= pie
READLINE_CONFIGURE_WITH= readline
SNMP_CONFIGURE_WITH= snmp
XML_CONFIGURE_WITH= xml
PROPRIETARY_CONFIGURE_ENABLE= cdp edp fdp sonmp
JSON_LIB_DEPENDS= libjansson.so:devel/jansson
JSON_USES= pkgconfig
SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
XML_LIB_DEPENDS= libxml2.so:textproc/libxml2
post-patch:
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}|g' ${WRKSRC}/src/daemon/lldpd.8.in
post-install:
${INSTALL_DATA} ${FILESDIR}/README.bsd ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>