Added
Link Here
|
1 |
# Created by: Mathieu Simon <freebsd@simweb.ch> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= lldpd |
5 |
PORTVERSION= 0.7.13 |
6 |
CATEGORIES= net-mgmt |
7 |
MASTER_SITES= http://media.luffy.cx/files/${PORTNAME}/ |
8 |
|
9 |
MAINTAINER= freebsd@simweb.ch |
10 |
COMMENT= LLDP (802.1ab)/CDP/EDP/SONMP/FDP daemon and SNMP subagent |
11 |
|
12 |
LICENSE= ISCL |
13 |
|
14 |
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2 |
15 |
|
16 |
OPTIONS_SUB= yes |
17 |
|
18 |
USE_RC_SUBR= lldpd |
19 |
|
20 |
USES= libtool |
21 |
USE_LDCONFIG= yes |
22 |
GNU_CONFIGURE= yes |
23 |
CONFIGURE_ARGS= --enable-privsep \ |
24 |
--with-privsep-chroot=/var/run/lldpd \ |
25 |
--with-lldpd-ctl-socket=/var/run/lldpd.socket \ |
26 |
--with-lldpd-pid-file=/var/run/lldpd.pid \ |
27 |
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig |
28 |
INSTALL_TARGET= install-strip |
29 |
|
30 |
USERS= _lldpd |
31 |
GROUPS= _lldpd |
32 |
|
33 |
OPTIONS_DEFINE= BASH DOCS DTRACE JSON PROPRIETARY READLINE SNMP XML ZSH |
34 |
OPTIONS_DEFAULT= PROPRIETARY |
35 |
|
36 |
DTRACE_DESC= DTrace support |
37 |
JSON_DESC= JSON output support |
38 |
PROPRIETARY_DESC= Support proprietary protocols (CDP/EDP/FDP/SONMP) |
39 |
SNMP_DESC= Enable the use of SNMP |
40 |
XML_DESC= XML output support |
41 |
|
42 |
DTRACE_CONFIGURE_ENABLE= dtrace |
43 |
JSON_CONFIGURE_WITH= json |
44 |
READLINE_CONFIGURE_WITH= readline |
45 |
SNMP_CONFIGURE_ENABLE= snmp |
46 |
XML_CONFIGURE_WITH= xml |
47 |
|
48 |
BASH_RUN_DEPENDS= ${LOCALBASE}/etc/bash-completion:${PORTSDIR}/shells/bash-completion |
49 |
JSON_BUILD_DEPENDS= pkgconf:${PORTSDIR}/devel/pkgconf \ |
50 |
jansson:${PORTSDIR}/devel/jansson |
51 |
JSON_RUN_DEPENDS= libjansson.so>=2:${PORTSDIR}/devel/jansson |
52 |
SNMP_RUN_DEPENDS= net-snmp:${PORTSDIR}/net-mgmt/net-snmp |
53 |
XML_BUILD_DEPENDS= libxml2:${PORTSDIR}/textproc/libxml2 |
54 |
XML_LIB_DEPENDS= libxml2.so:${PORTSDIR}/textproc/libxml2 |
55 |
|
56 |
post-stage: |
57 |
@${MKDIR} ${STAGEDIR}/var/run/lldpd |
58 |
@${CP} ${FILESDIR}/README.bsd ${STAGEDIR}${DOCSDIR} |
59 |
|
60 |
.include <bsd.port.options.mk> |
61 |
|
62 |
.if ${PORT_OPTIONS:MPROPRIETARY} |
63 |
CONFIGURE_ARGS+=--enable-cdp --enable-edp --enable-fdp --enable-sonmp |
64 |
.else |
65 |
CONFIGURE_ARGS+=--disable-cdp --disable-edp --disable-fdp --disable-sonmp |
66 |
.endif |
67 |
|
68 |
.include <bsd.port.mk> |