ports/164405: [PATCH] sysutils/tmux - install bash completions into completion dir

Pietro Cerutti gahr at FreeBSD.org
Mon Jan 23 18:12:27 UTC 2012


I wouldn't bother too much to make an OPTION and depend on bash. Let us
just hardlink the file and be done with it, as deskutils/calibre,
deskutils/griffith, and possibly others do as well. What about this
patch?

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/sysutils/tmux/Makefile,v
retrieving revision 1.32
diff -u -r1.32 Makefile
--- Makefile	23 Sep 2011 22:25:37 -0000	1.32
+++ Makefile	23 Jan 2012 15:36:23 -0000
@@ -19,7 +19,9 @@
 
 MAN1=		tmux.1
 
-PLIST_FILES=	bin/tmux
+PLIST_FILES=	bin/tmux \
+		etc/bash_completion.d/tmux
+PLIST_DIRTRY=	etc/bash_completion.d
 
 PORTDOCS=	CHANGES FAQ NOTES
 PORTEXAMPLES=	*
@@ -63,6 +65,8 @@
 	@${INSTALL_MAN} ${WRKSRC}/tmux.1 ${MANPREFIX}/man/man1
 
 post-install:
+	${MKDIR} ${PREFIX}/etc/bash_completion.d
+	@${LN} ${WRKSRC}/examples/bash_completion_tmux.sh ${PREFIX}/etc/bash_completion.d/tmux
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 .for i in ${PORTDOCS}


On 2012-Jan-23, 15:10, edwin at FreeBSD.org wrote:
> Synopsis: [PATCH] sysutils/tmux - install bash completions into completion dir
> 
> Responsible-Changed-From-To: freebsd-ports-bugs->gahr
> Responsible-Changed-By: edwin
> Responsible-Changed-When: Mon Jan 23 15:10:18 UTC 2012
> Responsible-Changed-Why: 
> Over to maintainer (via the GNATS Auto Assign Tool)
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=164405

-- 
Pietro Cerutti
The FreeBSD Project
gahr at FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20120123/2c2dd97f/attachment.sig>


More information about the freebsd-ports-bugs mailing list