2015-02-05 18:03:14 +01:00
|
|
|
# Created by: Mathieu Simon <freebsd@simweb.ch>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lldpd
|
2016-06-26 01:47:22 +02:00
|
|
|
PORTVERSION= 0.9.4
|
2017-02-20 03:57:04 +01:00
|
|
|
PORTREVISION= 2
|
2015-02-05 18:03:14 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2015-10-10 15:44:11 +02:00
|
|
|
MASTER_SITES= http://media.luffy.cx/files/${PORTNAME}/ \
|
|
|
|
http://mirror.1labs.ch/${PORTNAME}/
|
2015-02-05 18:03:14 +01:00
|
|
|
|
|
|
|
MAINTAINER= freebsd@simweb.ch
|
|
|
|
COMMENT= LLDP (802.1ab)/CDP/EDP/SONMP/FDP daemon and SNMP subagent
|
|
|
|
|
|
|
|
LICENSE= ISCL
|
|
|
|
|
2017-02-20 03:57:04 +01:00
|
|
|
LIB_DEPENDS= libevent.so:devel/libevent
|
2015-02-05 18:03:14 +01:00
|
|
|
|
|
|
|
USES= libtool
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
GNU_CONFIGURE= yes
|
2015-06-17 18:52:20 +02:00
|
|
|
CONFIGURE_ARGS= --disable-doxygen-doc \
|
2015-08-12 03:45:36 +02:00
|
|
|
--enable-hardening \
|
2015-06-17 18:52:20 +02:00
|
|
|
--enable-privsep \
|
2015-02-05 18:03:14 +01:00
|
|
|
--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
|
|
|
|
|
2016-01-18 14:14:53 +01:00
|
|
|
OPTIONS_DEFINE= BASH DOCS DTRACE JSON PIE PROPRIETARY READLINE SNMP XML ZSH
|
2015-02-05 18:03:14 +01:00
|
|
|
OPTIONS_DEFAULT= BASH JSON PROPRIETARY SNMP XML
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
DTRACE_DESC= DTrace support
|
|
|
|
JSON_DESC= JSON output support
|
2016-01-18 14:14:53 +01:00
|
|
|
PIE_DESC= Build PIE (position independant executables)
|
2015-02-05 18:03:14 +01:00
|
|
|
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
|
2016-01-18 14:14:53 +01:00
|
|
|
PIE_CONFIGURE_ENABLE= pie
|
2015-02-05 18:03:14 +01:00
|
|
|
READLINE_CONFIGURE_WITH= readline
|
|
|
|
SNMP_CONFIGURE_WITH= snmp
|
|
|
|
XML_CONFIGURE_WITH= xml
|
|
|
|
PROPRIETARY_CONFIGURE_ENABLE= cdp edp fdp sonmp
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
JSON_LIB_DEPENDS= libjansson.so:devel/jansson
|
2015-02-05 18:03:14 +01:00
|
|
|
JSON_USES= pkgconfig
|
2016-04-01 16:16:16 +02:00
|
|
|
SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
|
|
|
|
XML_LIB_DEPENDS= libxml2.so:textproc/libxml2
|
2015-02-05 18:03:14 +01:00
|
|
|
|
2016-06-26 01:47:22 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}|g' ${WRKSRC}/src/daemon/lldpd.8.in
|
|
|
|
|
2015-02-05 18:03:14 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.bsd ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|