aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorwoodsb02 <woodsb02@FreeBSD.org>2017-08-11 18:15:11 +0800
committerwoodsb02 <woodsb02@FreeBSD.org>2017-08-11 18:15:11 +0800
commit39e4e815308bc3ff14756834e4935dd755606cf4 (patch)
treedacb81611523d2e86b8b1628a574d09dddac5363 /net-mgmt
parent09bf1527ee3aee1d1b525e76b6110cf18b0ee25e (diff)
downloadfreebsd-ports-gnome-39e4e815308bc3ff14756834e4935dd755606cf4.tar.gz
freebsd-ports-gnome-39e4e815308bc3ff14756834e4935dd755606cf4.tar.zst
freebsd-ports-gnome-39e4e815308bc3ff14756834e4935dd755606cf4.zip
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) MFH: 2017Q3
Diffstat (limited to 'net-mgmt')
-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