summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2017-08-11 10:17:26 +0000
committerBen Woods <woodsb02@FreeBSD.org>2017-08-11 10:17:26 +0000
commitb8a7a0aa8f479486ac41be1c642a95f62fb962c4 (patch)
treeda05f7a9d1a1dca883e9c8e33b11164dc3625a15
parentMFH: r447737 (diff)
MFH: r447750
net-mgmt/lldpd: Fix install location for zsh completion file - Also enable ZSH option by default to install completion file PR: 220244 Approved by: Mathieu Simon <freebsd@simweb.ch> (maintainer) Approved by: ports-secteam blanket
-rw-r--r--net-mgmt/lldpd/Makefile7
-rw-r--r--net-mgmt/lldpd/pkg-plist2
2 files changed, 6 insertions, 3 deletions
diff --git a/net-mgmt/lldpd/Makefile b/net-mgmt/lldpd/Makefile
index 1650d5875323..156fe00b2ee0 100644
--- a/net-mgmt/lldpd/Makefile
+++ b/net-mgmt/lldpd/Makefile
@@ -3,7 +3,7 @@
PORTNAME= lldpd
PORTVERSION= 0.9.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-mgmt
MASTER_SITES= http://media.luffy.cx/files/${PORTNAME}/ \
http://mirror.1labs.ch/${PORTNAME}/
@@ -32,7 +32,7 @@ USERS= _lldpd
GROUPS= _lldpd
OPTIONS_DEFINE= BASH DOCS DTRACE JSON PIE PROPRIETARY READLINE SNMP XML ZSH
-OPTIONS_DEFAULT= BASH JSON PROPRIETARY SNMP XML
+OPTIONS_DEFAULT= BASH JSON PROPRIETARY SNMP XML ZSH
OPTIONS_SUB= yes
DTRACE_DESC= DTrace support
@@ -57,6 +57,9 @@ XML_LIB_DEPENDS= libxml2.so:textproc/libxml2
post-patch:
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}|g' ${WRKSRC}/src/daemon/lldpd.8.in
+ @${REINPLACE_CMD} -e 's|vendor-completions|site-functions|g' \
+ ${WRKSRC}/src/client/Makefile.am \
+ ${WRKSRC}/src/client/Makefile.in
post-install:
${INSTALL_DATA} ${FILESDIR}/README.bsd ${STAGEDIR}${DOCSDIR}
diff --git a/net-mgmt/lldpd/pkg-plist b/net-mgmt/lldpd/pkg-plist
index 09a74032c051..3dd8f387f7d0 100644
--- a/net-mgmt/lldpd/pkg-plist
+++ b/net-mgmt/lldpd/pkg-plist
@@ -18,4 +18,4 @@ sbin/lldpd
%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/README.bsd
%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/README.md
-%%ZSH%%share/zsh/vendor-completions/_lldpcli
+%%ZSH%%share/zsh/site-functions/_lldpcli