[Midnightbsd-cvs] mports: shells/bash-completion: add patch for mports dir.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Mar 30 11:10:32 EDT 2009


Log Message:
-----------
add patch for mports dir.  change comment for bash version as we only have 4. rmd160

Modified Files:
--------------
    mports/shells/bash-completion:
        Makefile (r1.3 -> r1.4)
        distinfo (r1.1 -> r1.2)

Added Files:
-----------
    mports/shells/bash-completion/files:
        patch-bash_completion (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/shells/bash-completion/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -L shells/bash-completion/Makefile -L shells/bash-completion/Makefile -u -r1.3 -r1.4
--- shells/bash-completion/Makefile
+++ shells/bash-completion/Makefile
@@ -8,11 +8,12 @@
 
 PORTNAME=	bash-completion
 PORTVERSION=	20060301
+PORTREVISION=	1
 CATEGORIES=	shells
 MASTER_SITES=	http://www.caliban.org/files/bash/
 
 MAINTAINER=	ports at MidnightBSD.org
-COMMENT=	Programmable completion library for Bash 2.04 and up
+COMMENT=	Programmable completion library for Bash
 LICENSE=	unknown
 
 WRKSRC=		${WRKDIR}/bash_completion
@@ -39,7 +40,7 @@
 		s|/usr/share\(/ssl/openssl.cnf\)|/etc\1|g; \
 		s|/usr/ports|${PORTSDIR}|g; \
 		s|/usr/lib\(/aspell\)|${LOCALBASE}/share\1|g; \
-		s|/usr/share/info|&:${LOCALBASE}/info:${X11BASE}/info|g' \
+		s|/usr/share/info|&:${LOCALBASE}/info|g' \
 		${WRKSRC}/bash_completion
 
 do-install:
Index: distinfo
===================================================================
RCS file: /home/cvs/mports/shells/bash-completion/distinfo,v
retrieving revision 1.1
retrieving revision 1.2
diff -L shells/bash-completion/distinfo -L shells/bash-completion/distinfo -u -r1.1 -r1.2
--- shells/bash-completion/distinfo
+++ shells/bash-completion/distinfo
@@ -1,3 +1,4 @@
 MD5 (bash-completion-20060301.tar.gz) = 9bca1cf97e8f8c73e3ef560cc9dead21
 SHA256 (bash-completion-20060301.tar.gz) = 29b78834b975b29810f0bf1f15e5d3a6c003a137cfac7fea671bfaf8f58f5c0d
+RMD160 (bash-completion-20060301.tar.gz) = 12c9c11600e08f9b3547586d5a82441b1dfc290a
 SIZE (bash-completion-20060301.tar.gz) = 123300
--- /dev/null
+++ shells/bash-completion/files/patch-bash_completion
@@ -0,0 +1,19 @@
+--- bash_completion.old	Sat Sep 23 20:42:29 2006
++++ bash_completion	Sun Sep 24 10:55:26 2006
+@@ -5485,14 +5485,10 @@
+ 	local cur portsdir prev indexfile
+ 	local -a COMPREPLY2
+ 
+-	portsdir=${PORTSDIR:-/usr/ports}/
++	portsdir=${PORTSDIR:-/usr/mports}
+ 	cur=${COMP_WORDS[COMP_CWORD]}
+ 	prev=${COMP_WORDS[COMP_CWORD-1]}
+-	# First try INDEX-5
+-	indexfile=$portsdir/INDEX-5
+-	# Then INDEX if INDEX-5 does not exist or system is not FreeBSD 5.x
+-	[ "${OSTYPE%.*}" = "freebsd5" -a -f $indexfile ] ||
+-	  indexfile=$portsdir/INDEX
++	indexfile="${portsdir}/INDEX-${OSTYPE:7:1}"
+ 
+ 	[ "$prev" = "-l" -o "$prev" = "-L" -o "$prev" = "-o" ] && return 0
+ 


More information about the Midnightbsd-cvs mailing list