From nobody@FreeBSD.org  Fri Oct 15 03:28:27 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8A34F106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Oct 2010 03:28:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 76BAC8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Oct 2010 03:28:27 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o9F3SR8l081637
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Oct 2010 03:28:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o9F3SRtG081636;
	Fri, 15 Oct 2010 03:28:27 GMT
	(envelope-from nobody)
Message-Id: <201010150328.o9F3SRtG081636@www.freebsd.org>
Date: Fri, 15 Oct 2010 03:28:27 GMT
From: Neeraj Verma <neeraj.verma.ports@vermatech.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: sysutils/autojump acts as a complement to cd
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         151467
>Category:       ports
>Synopsis:       New port: sysutils/autojump acts as a complement to cd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    stephen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 15 03:30:10 UTC 2010
>Closed-Date:    Mon Apr 30 03:30:20 UTC 2012
>Last-Modified:  Mon Apr 30 03:40:06 UTC 2012
>Originator:     Neeraj Verma
>Release:        8.1
>Organization:
Neeraj Verma
>Environment:
FreeBSD freebsddesktop.earthlink.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Autojump is a tool that acts as a complement to cd: it makes navigating your file system a lot faster. It works by maintaining a database of the directories you use the most from the command line, and allows you to jump back and forth between them, by typing just a few letters of the name of the directory you want to jump to.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	autojump
#	autojump/files
#	autojump/files/patch-autojump
#	autojump/files/patch-install.sh
#	autojump/pkg-descr
#	autojump/distinfo
#	autojump/Makefile
#
echo c - autojump
mkdir -p autojump > /dev/null 2>&1
echo c - autojump/files
mkdir -p autojump/files > /dev/null 2>&1
echo x - autojump/files/patch-autojump
sed 's/^X//' >autojump/files/patch-autojump << '6917d57faf6ecf383ae7da8503e66008'
X--- ./autojump.orig	2010-10-13 22:47:47.000000000 -0400
X+++ ./autojump	2010-10-13 22:41:08.000000000 -0400
X@@ -1,4 +1,4 @@
X-#!/usr/bin/python
X+#!/usr/local/bin/python
X #Copyright Joel Schaerer 2008, 2009
X #This file is part of autojump
X 
6917d57faf6ecf383ae7da8503e66008
echo x - autojump/files/patch-install.sh
sed 's/^X//' >autojump/files/patch-install.sh << 'dffdbfd25a1b39a4ce4177d40a358e55'
X--- ./install.sh.orig	2010-10-13 22:39:46.000000000 -0400
X+++ ./install.sh	2010-10-13 22:43:22.000000000 -0400
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X #Copyright Joel Schaerer 2008, 2009
X #This file is part of autojump
X 
X@@ -16,11 +16,11 @@
X #along with autojump.  If not, see <http://www.gnu.org/licenses/>.
X 
X function show_help {
X-        echo "sudo ./install.sh [--prefix /usr/local]"
X+        echo "./install.sh [--prefix /usr/local]"
X }
X 
X # Default install directory.
X-prefix=/usr
X+prefix=/usr/local
X 
X # Command line parsing
X while true; do
X@@ -41,32 +41,32 @@
X echo "Installing to ${prefix} ..."
X 
X # INSTALL AUTOJUMP
X-sudo mkdir -p ${prefix}/share/autojump/
X-sudo mkdir -p ${prefix}/bin/
X-sudo mkdir -p ${prefix}/share/man/man1/
X-sudo cp icon.png ${prefix}/share/autojump/
X-sudo cp jumpapplet ${prefix}/bin/
X-sudo cp autojump ${prefix}/bin/
X-sudo cp autojump.1 ${prefix}/share/man/man1/
X+mkdir -p ${prefix}/share/autojump/
X+mkdir -p ${prefix}/bin/
X+mkdir -p ${prefix}/share/man/man1/
X+cp icon.png ${prefix}/share/autojump/
X+cp jumpapplet ${prefix}/bin/
X+cp autojump ${prefix}/bin/
X+cp autojump.1 ${prefix}/share/man/man1/
X 
X-if [ -d "/etc/profile.d" ]; then
X-    sudo cp autojump.bash /etc/profile.d/
X-    sudo cp autojump.sh /etc/profile.d/
X+if [ -d "${prefix}/etc/profile.d" ]; then
X+    cp autojump.bash ${prefix}/etc/profile.d/
X+    cp autojump.sh ${prefix}/etc/profile.d/
X 
X     # Make sure that the code we just copied has been sourced.
X-    # check if .bashrc has sourced /etc/profile or /etc/profile.d/autojump.bash
X+    # check if .bashrc has sourced /etc/profile or ${prefix}/etc/profile.d/autojump.bash
X     if [ `grep -c "^[[:space:]]*source\|\. /etc/profile(\.d/autojump\.bash)[[:space:]]*$" ~/.bashrc` -eq 0 ]; then
X-        echo "Your .bashrc doesn't seem to source /etc/profile or /etc/profile.d/autojump.bash"
X-        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
X+        echo "Your .bashrc doesn't seem to source /etc/profile or ${prefix}/etc/profile.d/autojump.bash"
X+        echo "Adding the ${prefix}/etc/profile.d/autojump.bash to your .bashrc"
X         echo "" >> ~/.bashrc
X         echo "# Added by autojump install.sh" >> ~/.bashrc
X-        echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
X+        echo "source ${prefix}/etc/profile.d/autojump.bash" >> ~/.bashrc
X     fi
X     echo "Done!"
X     echo
X     echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump."
X else
X-    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
X+    echo "Your distribution does not have a ${prefix}/etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
X     read ans
X     if [ ${#ans} -gt 0 ]; then
X 	     if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
dffdbfd25a1b39a4ce4177d40a358e55
echo x - autojump/pkg-descr
sed 's/^X//' >autojump/pkg-descr << 'af87931262491898c6ab1cc3c3ddac55'
XAutojump is a tool that acts as a complement to cd: it makes navigating your filesystem a lot faster. It works by automagically maintaining a database of the directories you use the most from the command line, and allows you to jump back and forth between them, by typing just a few letters of the name of the directory you want to jump to.
X
XWWW: http://github.com/joelthelion/autojump/wiki
X
af87931262491898c6ab1cc3c3ddac55
echo x - autojump/distinfo
sed 's/^X//' >autojump/distinfo << '60a32d51eebaff511cac7ae3e366850a'
XMD5 (autojump_v13.tar.gz) = 13e4e6173f4ed63b8babb00fcd95f600
XSHA256 (autojump_v13.tar.gz) = 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153
XSIZE (autojump_v13.tar.gz) = 22723
60a32d51eebaff511cac7ae3e366850a
echo x - autojump/Makefile
sed 's/^X//' >autojump/Makefile << '64238b552e4fe3c222efa4fdde5e5897'
X# New ports collection makefile for:  autojump 
X# Date created:        12 October 2010
X# Whom:                verma
X#
X# $FreeBSD$
X#
X
XPORTNAME=      autojump
XDISTNAME=      autojump_v13
XPORTVERSION=   v13 
XDISTFILES=     autojump_v13.tar.gz
XCATEGORIES=    sysutils
XMASTER_SITES=  http://github.com/downloads/joelthelion/autojump/ \
X		http://www.vermatech.com/distfiles/
X
XMAINTAINER=    neeraj.verma.ports@vermatech.com
XCOMMENT=       Autojump is a tool that acts as a complement to cd: it makes navigating your filesystem a lot faster. It works by automagically maintaining a database of the directories you use the most from the command line, and allows you to jump back and forth between them, by typing just a few letters of the name of the directory you want to jump to.
X
XPLIST_FILES=	bin/autojump \
X		bin/jumpapplet \
X		share/autojump/icon.png \
X		share/man/man1/autojump.1 \
X		etc/profile.d/autojump.bash \
X		etc/profile.d/autojump.sh
X
XPLIST_DIRS=	share/autojump
X
XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
X
X.if !target(do-build)
Xdo-build:
X# do nothing since the program is all scripts based.
X.endif
X
X.if !target(do-install)
Xdo-install:
X	@(cd ${INSTALL_WRKSRC} && ./install.sh ) 
X.endif
X
X.include <bsd.port.mk>
X
64238b552e4fe3c222efa4fdde5e5897
exit



>Release-Note:
>Audit-Trail:

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc:  
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Sat, 16 Oct 2010 14:50:53 +0200

 > [new port for autojump]
 
 Upstream seems to offer a zsh version as well, why did you omit it?
 
 -- 
 Jilles Tjoelker

From: Neeraj Verma <neeraj.verma@vermatech.com>
To: Jilles Tjoelker <jilles@stack.nl>
Cc: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Sun, 17 Oct 2010 19:23:34 -0400

 The following has been modified to work with zsh.
 
 Use this instead...
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #       autojump
 #       autojump/files
 #       autojump/files/patch-autojump
 #       autojump/files/patch-install.zsh
 #       autojump/files/patch-install.sh
 #       autojump/pkg-descr
 #       autojump/distinfo
 #       autojump/Makefile
 #
 echo c - autojump
 mkdir -p autojump > /dev/null 2>&1
 echo c - autojump/files
 mkdir -p autojump/files > /dev/null 2>&1
 echo x - autojump/files/patch-autojump
 sed 's/^X//' >autojump/files/patch-autojump <<
 '6917d57faf6ecf383ae7da8503e66008'
 X--- ./autojump.orig    2010-10-01 10:49:18.000000000 -0400
 X+++ ./autojump 2010-10-17 19:00:36.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#!/usr/bin/python
 X+#!/usr/local/bin/python
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 6917d57faf6ecf383ae7da8503e66008
 echo x - autojump/files/patch-install.zsh
 sed 's/^X//' >autojump/files/patch-install.zsh <<
 'd02a62ee01389e4b53e4877dbeb4f3f9'
 X--- ./install.zsh.orig 2010-10-17 19:08:50.000000000 -0400
 X+++ ./install.zsh      2010-10-17 19:09:05.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#! /bin/zsh
 X+#! /usr/local/bin/zsh
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 X@@ -19,7 +19,7 @@
 X         echo "sudo ./install.sh [--prefix /usr/local]"
 X }
 X 
 X-prefix=/usr
 X+prefix=/usr/local
 X 
 X #command line parsing
 X while true; do
 X@@ -39,19 +39,19 @@
 X 
 X echo "Installing main files to ${prefix} ..."
 X 
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/share/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/share/man/man1/
 X 
 X # autocompletion file in the first directory of the FPATH variable
 X fail=true
 X for f in $fpath
 X do
 X-    sudo cp _j $f && fail=false && break
 X+    cp _j $f && fail=false && break
 X done
 X if $fail
 X then
 X@@ -61,18 +61,18 @@
 X     echo "Installed autocompletion file to $f"
 X fi
 X 
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.zsh /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X+if [ -d "/usr/local/etc/profile.d" ]; then
 X+    cp autojump.zsh /usr/local/etc/profile.d/
 X+    cp autojump.sh /usr/local/etc/profile.d/
 X     echo "Remember to add the line" 
 X-    echo "    source /etc/profile.d/autojump.zsh"
 X+    echo "    source /usr/local/etc/profile.d/autojump.zsh"
 X     echo "or"
 X-    echo "    source /etc/profile"
 X+    echo "    source /usr/local/etc/profile"
 X     echo "to your ~/.zshrc if it's not there already"
 X     echo
 X     echo "You need to source your ~/.zshrc (source ~/.zshrc) before
 you can start using autojump."
 X else
 X-    echo "Your distribution does not have a /etc/profile.d directory,
 the default that we install one of the scripts to. Would you like us to
 copy it into your ~/.zshrc file to make it work? (If you have done this
 once before, delete the old version before doing it again.) [y/n]"
 X+    echo "Your distribution does not have a /usr/local/etc/profile.d
 directory, the default that we install one of the scripts to. Would you
 like us to copy it into your ~/.zshrc file to make it work? (If you have
 done this once before, delete the old version before doing it again.)
 [y/n]"
 X     read ans
 X     if [ ${#ans} -gt 0 ]; then
 X       if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ];
 then
 d02a62ee01389e4b53e4877dbeb4f3f9
 echo x - autojump/files/patch-install.sh
 sed 's/^X//' >autojump/files/patch-install.sh <<
 'dffdbfd25a1b39a4ce4177d40a358e55'
 X--- ./install.sh.orig  2010-10-01 10:49:18.000000000 -0400
 X+++ ./install.sh       2010-10-17 19:00:36.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#!/bin/bash
 X+#!/usr/local/bin/bash
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 X@@ -16,11 +16,11 @@
 X #along with autojump.  If not, see <http://www.gnu.org/licenses/>.
 X 
 X function show_help {
 X-        echo "sudo ./install.sh [--prefix /usr/local]"
 X+        echo "./install.sh [--prefix /usr/local]"
 X }
 X 
 X # Default install directory.
 X-prefix=/usr
 X+prefix=/usr/local
 X 
 X # Command line parsing
 X while true; do
 X@@ -41,32 +41,32 @@
 X echo "Installing to ${prefix} ..."
 X 
 X # INSTALL AUTOJUMP
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/share/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/share/man/man1/
 X 
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.bash /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X+if [ -d "${prefix}/etc/profile.d" ]; then
 X+    cp autojump.bash ${prefix}/etc/profile.d/
 X+    cp autojump.sh ${prefix}/etc/profile.d/
 X 
 X     # Make sure that the code we just copied has been sourced.
 X-    # check if .bashrc has sourced /etc/profile
 or /etc/profile.d/autojump.bash
 X+    # check if .bashrc has sourced /etc/profile or
 ${prefix}/etc/profile.d/autojump.bash
 X     if [ `grep -c "^[[:space:]]*source\|\. /etc/profile(\.d/autojump
 \.bash)[[:space:]]*$" ~/.bashrc` -eq 0 ]; then
 X-        echo "Your .bashrc doesn't seem to source /etc/profile
 or /etc/profile.d/autojump.bash"
 X-        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
 X+        echo "Your .bashrc doesn't seem to source /etc/profile or
 ${prefix}/etc/profile.d/autojump.bash"
 X+        echo "Adding the ${prefix}/etc/profile.d/autojump.bash to
 your .bashrc"
 X         echo "" >> ~/.bashrc
 X         echo "# Added by autojump install.sh" >> ~/.bashrc
 X-        echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
 X+        echo "source ${prefix}/etc/profile.d/autojump.bash" >>
 ~/.bashrc
 X     fi
 X     echo "Done!"
 X     echo
 X     echo "You need to source your ~/.bashrc (source ~/.bashrc) before
 you can start using autojump."
 X else
 X-    echo "Your distribution does not have a /etc/profile.d directory,
 the default that we install one of the scripts to. Would you like us to
 copy it into your ~/.bashrc file to make it work? (If you have done this
 once before, delete the old version before doing it again.) [y/n]"
 X+    echo "Your distribution does not have a ${prefix}/etc/profile.d
 directory, the default that we install one of the scripts to. Would you
 like us to copy it into your ~/.bashrc file to make it work? (If you
 have done this once before, delete the old version before doing it
 again.) [y/n]"
 X     read ans
 X     if [ ${#ans} -gt 0 ]; then
 X            if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans =
 "Yes" ]; then
 dffdbfd25a1b39a4ce4177d40a358e55
 echo x - autojump/pkg-descr
 sed 's/^X//' >autojump/pkg-descr << 'af87931262491898c6ab1cc3c3ddac55'
 XAutojump is a tool that acts as a complement to cd: it makes navigating
 your filesystem a lot faster. It works by automagically maintaining a
 database of the directories you use the most from the command line, and
 allows you to jump back and forth between them, by typing just a few
 letters of the name of the directory you want to jump to.
 X
 XWWW: http://github.com/joelthelion/autojump/wiki
 X
 af87931262491898c6ab1cc3c3ddac55
 echo x - autojump/distinfo
 sed 's/^X//' >autojump/distinfo << '60a32d51eebaff511cac7ae3e366850a'
 XMD5 (autojump_v13.tar.gz) = 13e4e6173f4ed63b8babb00fcd95f600
 XSHA256 (autojump_v13.tar.gz) =
 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153
 XSIZE (autojump_v13.tar.gz) = 22723
 60a32d51eebaff511cac7ae3e366850a
 echo x - autojump/Makefile
 sed 's/^X//' >autojump/Makefile << '64238b552e4fe3c222efa4fdde5e5897'
 X# New ports collection makefile for:  autojump 
 X# Date created:        12 October 2010
 X# Whom:                Neeraj Verma <neeraj.verma.ports@vermatech.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=      autojump
 XDISTNAME=      autojump_v13
 XPORTVERSION=   v13 
 XDISTFILES=     autojump_v13.tar.gz
 XCATEGORIES=    sysutils
 XMASTER_SITES=  http://github.com/downloads/joelthelion/autojump/ \
 X               http://www.vermatech.com/distfiles/
 X
 XMAINTAINER=    neeraj.verma.ports@vermatech.com
 XCOMMENT=       Autojump is a tool that acts as a complement to cd: it
 makes navigating your filesystem a lot faster. It works by automagically
 maintaining a database of the directories you use the most from the
 command line, and allows you to jump back and forth between them, by
 typing just a few letters of the name of the directory you want to jump
 to.
 X
 XPLIST_FILES=   bin/autojump \
 X               bin/jumpapplet \
 X               share/autojump/icon.png \
 X               share/man/man1/autojump.1 \
 X               etc/profile.d/autojump.sh
 X
 XPLIST_FILES+=  etc/profile.d/autojump.bash
 X
 XOPTIONS=       ZSH "Install zsh version as well." On
 X
 X.include <bsd.port.options.mk>
 X
 X.if defined(WITH_ZSH)
 XPLIST_FILES+=  etc/profile.d/autojump.zsh
 XRUN_DEPENDS=   ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
 X               ${LOCALBASE}/bin/zsh:${PORTSDIR}/shells/zsh
 X.else
 XRUN_DEPENDS=   ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
 X.endif
 X
 XPLIST_DIRS=    share/autojump
 X
 X
 X.if !target(do-build)
 Xdo-build:
 X# do nothing since the program is all scripts based.
 X.endif
 X
 X.if !target(do-install)
 Xdo-install:
 X       @(cd ${INSTALL_WRKSRC} && ./install.sh ) 
 X.if defined(WITH_ZSH)
 X       @(cd ${INSTALL_WRKSRC} && ./install.zsh ) 
 X.endif
 X.endif
 X
 X.include <bsd.port.mk>
 X
 64238b552e4fe3c222efa4fdde5e5897
 exit
 
 
 
 
 On Sat, 2010-10-16 at 14:50 +0200, Jilles Tjoelker wrote:
 > > [new port for autojump]
 > 
 > Upstream seems to offer a zsh version as well, why did you omit it?
 > 
 
 

From: Neeraj Verma <neeraj.verma@vermatech.com>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc:  
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Sun, 17 Oct 2010 18:57:24 -0400

 Added zsh support...
 
 Use this instead:
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #       autojump
 #       autojump/files
 #       autojump/files/patch-autojump
 #       autojump/files/patch-install.sh
 #       autojump/pkg-descr
 #       autojump/distinfo
 #       autojump/Makefile
 #
 echo c - autojump
 mkdir -p autojump > /dev/null 2>&1
 echo c - autojump/files
 mkdir -p autojump/files > /dev/null 2>&1
 echo x - autojump/files/patch-autojump
 sed 's/^X//' >autojump/files/patch-autojump <<
 '6917d57faf6ecf383ae7da8503e66008'
 X--- ./autojump.orig    2010-10-13 22:47:47.000000000 -0400
 X+++ ./autojump 2010-10-13 22:41:08.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#!/usr/bin/python
 X+#!/usr/local/bin/python
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 6917d57faf6ecf383ae7da8503e66008
 echo x - autojump/files/patch-install.sh
 sed 's/^X//' >autojump/files/patch-install.sh <<
 'dffdbfd25a1b39a4ce4177d40a358e55'
 X--- ./install.sh.orig  2010-10-13 22:39:46.000000000 -0400
 X+++ ./install.sh       2010-10-13 22:43:22.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#!/bin/bash
 X+#!/usr/local/bin/bash
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 X@@ -16,11 +16,11 @@
 X #along with autojump.  If not, see <http://www.gnu.org/licenses/>.
 X 
 X function show_help {
 X-        echo "sudo ./install.sh [--prefix /usr/local]"
 X+        echo "./install.sh [--prefix /usr/local]"
 X }
 X 
 X # Default install directory.
 X-prefix=/usr
 X+prefix=/usr/local
 X 
 X # Command line parsing
 X while true; do
 X@@ -41,32 +41,32 @@
 X echo "Installing to ${prefix} ..."
 X 
 X # INSTALL AUTOJUMP
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/share/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/share/man/man1/
 X 
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.bash /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X+if [ -d "${prefix}/etc/profile.d" ]; then
 X+    cp autojump.bash ${prefix}/etc/profile.d/
 X+    cp autojump.sh ${prefix}/etc/profile.d/
 X 
 X     # Make sure that the code we just copied has been sourced.
 X-    # check if .bashrc has sourced /etc/profile
 or /etc/profile.d/autojump.bash
 X+    # check if .bashrc has sourced /etc/profile or
 ${prefix}/etc/profile.d/autojump.bash
 X     if [ `grep -c "^[[:space:]]*source\|\. /etc/profile(\.d/autojump
 \.bash)[[:space:]]*$" ~/.bashrc` -eq 0 ]; then
 X-        echo "Your .bashrc doesn't seem to source /etc/profile
 or /etc/profile.d/autojump.bash"
 X-        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
 X+        echo "Your .bashrc doesn't seem to source /etc/profile or
 ${prefix}/etc/profile.d/autojump.bash"
 X+        echo "Adding the ${prefix}/etc/profile.d/autojump.bash to
 your .bashrc"
 X         echo "" >> ~/.bashrc
 X         echo "# Added by autojump install.sh" >> ~/.bashrc
 X-        echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
 X+        echo "source ${prefix}/etc/profile.d/autojump.bash" >>
 ~/.bashrc
 X     fi
 X     echo "Done!"
 X     echo
 X     echo "You need to source your ~/.bashrc (source ~/.bashrc) before
 you can start using autojump."
 X else
 X-    echo "Your distribution does not have a /etc/profile.d directory,
 the default that we install one of the scripts to. Would you like us to
 copy it into your ~/.bashrc file to make it work? (If you have done this
 once before, delete the old version before doing it again.) [y/n]"
 X+    echo "Your distribution does not have a ${prefix}/etc/profile.d
 directory, the default that we install one of the scripts to. Would you
 like us to copy it into your ~/.bashrc file to make it work? (If you
 have done this once before, delete the old version before doing it
 again.) [y/n]"
 X     read ans
 X     if [ ${#ans} -gt 0 ]; then
 X            if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans =
 "Yes" ]; then
 dffdbfd25a1b39a4ce4177d40a358e55
 echo x - autojump/pkg-descr
 sed 's/^X//' >autojump/pkg-descr << 'af87931262491898c6ab1cc3c3ddac55'
 XAutojump is a tool that acts as a complement to cd: it makes navigating
 your filesystem a lot faster. It works by automagically maintaining a
 database of the directories you use the most from the command line, and
 allows you to jump back and forth between them, by typing just a few
 letters of the name of the directory you want to jump to.
 X
 XWWW: http://github.com/joelthelion/autojump/wiki
 X
 af87931262491898c6ab1cc3c3ddac55
 echo x - autojump/distinfo
 sed 's/^X//' >autojump/distinfo << '60a32d51eebaff511cac7ae3e366850a'
 XMD5 (autojump_v13.tar.gz) = 13e4e6173f4ed63b8babb00fcd95f600
 XSHA256 (autojump_v13.tar.gz) =
 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153
 XSIZE (autojump_v13.tar.gz) = 22723
 60a32d51eebaff511cac7ae3e366850a
 echo x - autojump/Makefile
 sed 's/^X//' >autojump/Makefile << '64238b552e4fe3c222efa4fdde5e5897'
 X# New ports collection makefile for:  autojump 
 X# Date created:        12 October 2010
 X# Whom:                Neeraj Verma <neeraj.verma.ports@vermatech.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=      autojump
 XDISTNAME=      autojump_v13
 XPORTVERSION=   v13 
 XDISTFILES=     autojump_v13.tar.gz
 XCATEGORIES=    sysutils
 XMASTER_SITES=  http://github.com/downloads/joelthelion/autojump/ \
 X               http://www.vermatech.com/distfiles/
 X
 XMAINTAINER=    neeraj.verma.ports@vermatech.com
 XCOMMENT=       Autojump is a tool that acts as a complement to cd: it
 makes navigating your filesystem a lot faster. It works by automagically
 maintaining a database of the directories you use the most from the
 command line, and allows you to jump back and forth between them, by
 typing just a few letters of the name of the directory you want to jump
 to.
 X
 XPLIST_FILES=   bin/autojump \
 X               bin/jumpapplet \
 X               share/autojump/icon.png \
 X               share/man/man1/autojump.1 \
 X               etc/profile.d/autojump.sh
 X
 XPLIST_FILES+=  etc/profile.d/autojump.bash
 X
 XOPTIONS=       ZSH "Install zsh version as well." On
 X
 X.include <bsd.port.options.mk>
 X
 X.if defined(WITH_ZSH)
 XPLIST_FILES+=  etc/profile.d/autojump.zsh
 XRUN_DEPENDS=   ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
 X               ${LOCALBASE}/bin/zsh:${PORTSDIR}/shells/zsh
 X.else
 XRUN_DEPENDS=   ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
 X.endif
 X
 XPLIST_DIRS=    share/autojump
 X
 X
 X.if !target(do-build)
 Xdo-build:
 X# do nothing since the program is all scripts based.
 X.endif
 X
 X.if !target(do-install)
 Xdo-install:
 X       @(cd ${INSTALL_WRKSRC} && ./install.sh ) 
 X.if defined(WITH_ZSH)
 X       @(cd ${INSTALL_WRKSRC} && ./install.zsh ) 
 X.endif
 X.endif
 X
 X.include <bsd.port.mk>
 X
 64238b552e4fe3c222efa4fdde5e5897
 exit
 

From: Baptiste Daroussin <bapt@freebsd.org>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc:  
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement to cd
Date: Mon, 7 Feb 2011 12:33:33 +0100

 Hi,
 
 Can you fix your ports to repects what is describe here:
 http://www.freebsd.org/doc/en/books/porters-handbook/ ?
 ports-mgmt/portlint and reading Mk/*.mk comments (header) may also help.
 
 
 What I can see so far:
 
 too long comment line
 duplicated RUN_DEPENDS line
 re invent of NO_BUILD macro
 bad do-install usage
 github mastersite not providing the distfile.
 bad PORTVERSION
 
 regards,
 Bapt
State-Changed-From-To: open->feedback 
State-Changed-By: bapt 
State-Changed-When: Sat May 7 15:25:42 UTC 2011 
State-Changed-Why:  
Waiting for sender feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151467 

From: neeraj verma <numberformat@gmail.com>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc:  
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement to cd
Date: Tue, 17 May 2011 20:41:50 -0400

 --000e0cd761d27acd8904a38227b5
 Content-Type: text/plain; charset=ISO-8859-1
 
 Thanks for looking at my submission. Here are my comments:
 
 1. I have fixed this. The comment line has been shortened.
 2. the duplicated RUN_DEPENDS line is not actually duplicated. It is part of
 an IF ELSE statement.
 3. I am not understanding what the reinvent of "NO_BUILD" macro means. Can
 you please elaborate?
 4. I have fixed this.
 5. I have fixed this.
 6. I spoke to the author about fixing his version and package naming scheme.
 He said he will not change it so I had to change my PORTVERSION value to be
 non standard. Is that OK?
 
 Let me know your thoughts and I will post the modified files.
 
 --000e0cd761d27acd8904a38227b5
 Content-Type: text/html; charset=ISO-8859-1
 
 Thanks for looking at my submission. Here are my comments:<br><br>1. I have fixed this. The comment line has been shortened.<br>2. the duplicated RUN_DEPENDS line is not actually duplicated. It is part of an IF ELSE statement.<br>
 
 3. I am not understanding what the reinvent of &quot;NO_BUILD&quot; macro means. Can you please elaborate?<br>4. I have fixed this.<br>5. I have fixed this.<br>6.
  I spoke to the author about fixing his version and package naming 
 scheme. He said he will not change it so I had to change my PORTVERSION 
 value to be non standard. Is that OK?<br><br>Let me know your thoughts and I will post the modified files.<br>
 
 --000e0cd761d27acd8904a38227b5--
Responsible-Changed-From-To: freebsd-ports-bugs->stephen 
Responsible-Changed-By: stephen 
Responsible-Changed-When: Fri Jul 1 03:00:19 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151467 

From: Stephen Montgomery-Smith <stephen@missouri.edu>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc:  
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Thu, 30 Jun 2011 22:08:30 -0500

 I'll have a go at committing your port.
 
 What bapt meant about "NO_BUILD" is that instead of using your construction:
 
 if !target(do-build)
 do-build:
 # do nothing since the program is all scripts based.
 .endif
 
 you could have just written:
 
 NO_BUILD=	yes
 
 As for the non-standard port labelling, maybe we could call the port 
 autojump.13 or something like that.  Something that portlint doesn't 
 object to.
 
 Anyway, send the modified shar file, and I'll see what i can do.

From: Neeraj Verma <neeraj.verma@vermatech.com>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc:  
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Mon, 04 Jul 2011 08:45:38 -0400

 --=-SzBvxOK063MwWNHD+Svf
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: 7bit
 
 Stephen,
 	Thanks for looking at my port submission. I have made the changes that
 you have mentioned. Please see attached.
 
 Thanks.
 
 --=-SzBvxOK063MwWNHD+Svf
 Content-Type: application/x-shellscript; name="shar-4.sh"
 Content-Disposition: attachment; filename="shar-4.sh"
 Content-Transfer-Encoding: 7bit
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	autojump
 #	autojump/files
 #	autojump/files/patch-autojump
 #	autojump/files/patch-install.zsh
 #	autojump/files/patch-install.sh
 #	autojump/distinfo
 #	autojump/pkg-descr
 #	autojump/Makefile
 #
 echo c - autojump
 mkdir -p autojump > /dev/null 2>&1
 echo c - autojump/files
 mkdir -p autojump/files > /dev/null 2>&1
 echo x - autojump/files/patch-autojump
 sed 's/^X//' >autojump/files/patch-autojump << '6917d57faf6ecf383ae7da8503e66008'
 X--- ./autojump.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./autojump	2010-10-17 19:00:36.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#!/usr/bin/python
 X+#!/usr/local/bin/python
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 6917d57faf6ecf383ae7da8503e66008
 echo x - autojump/files/patch-install.zsh
 sed 's/^X//' >autojump/files/patch-install.zsh << 'd02a62ee01389e4b53e4877dbeb4f3f9'
 X--- ./install.zsh.orig	2010-10-17 19:08:50.000000000 -0400
 X+++ ./install.zsh	2010-10-17 19:09:05.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#! /bin/zsh
 X+#! /usr/local/bin/zsh
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 X@@ -19,7 +19,7 @@
 X         echo "sudo ./install.sh [--prefix /usr/local]"
 X }
 X 
 X-prefix=/usr
 X+prefix=/usr/local
 X 
 X #command line parsing
 X while true; do
 X@@ -39,19 +39,19 @@
 X 
 X echo "Installing main files to ${prefix} ..."
 X 
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/share/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/share/man/man1/
 X 
 X # autocompletion file in the first directory of the FPATH variable
 X fail=true
 X for f in $fpath
 X do
 X-    sudo cp _j $f && fail=false && break
 X+    cp _j $f && fail=false && break
 X done
 X if $fail
 X then
 X@@ -61,18 +61,18 @@
 X     echo "Installed autocompletion file to $f"
 X fi
 X 
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.zsh /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X+if [ -d "/usr/local/etc/profile.d" ]; then
 X+    cp autojump.zsh /usr/local/etc/profile.d/
 X+    cp autojump.sh /usr/local/etc/profile.d/
 X     echo "Remember to add the line" 
 X-    echo "    source /etc/profile.d/autojump.zsh"
 X+    echo "    source /usr/local/etc/profile.d/autojump.zsh"
 X     echo "or"
 X-    echo "    source /etc/profile"
 X+    echo "    source /usr/local/etc/profile"
 X     echo "to your ~/.zshrc if it's not there already"
 X     echo
 X     echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump."
 X else
 X-    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.zshrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X+    echo "Your distribution does not have a /usr/local/etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.zshrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X     read ans
 X     if [ ${#ans} -gt 0 ]; then
 X 	if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 d02a62ee01389e4b53e4877dbeb4f3f9
 echo x - autojump/files/patch-install.sh
 sed 's/^X//' >autojump/files/patch-install.sh << 'dffdbfd25a1b39a4ce4177d40a358e55'
 X--- ./install.sh.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./install.sh	2010-10-17 19:00:36.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#!/bin/bash
 X+#!/usr/local/bin/bash
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 X@@ -16,11 +16,11 @@
 X #along with autojump.  If not, see <http://www.gnu.org/licenses/>.
 X 
 X function show_help {
 X-        echo "sudo ./install.sh [--prefix /usr/local]"
 X+        echo "./install.sh [--prefix /usr/local]"
 X }
 X 
 X # Default install directory.
 X-prefix=/usr
 X+prefix=/usr/local
 X 
 X # Command line parsing
 X while true; do
 X@@ -41,32 +41,32 @@
 X echo "Installing to ${prefix} ..."
 X 
 X # INSTALL AUTOJUMP
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/share/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/share/man/man1/
 X 
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.bash /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X+if [ -d "${prefix}/etc/profile.d" ]; then
 X+    cp autojump.bash ${prefix}/etc/profile.d/
 X+    cp autojump.sh ${prefix}/etc/profile.d/
 X 
 X     # Make sure that the code we just copied has been sourced.
 X-    # check if .bashrc has sourced /etc/profile or /etc/profile.d/autojump.bash
 X+    # check if .bashrc has sourced /etc/profile or ${prefix}/etc/profile.d/autojump.bash
 X     if [ `grep -c "^[[:space:]]*source\|\. /etc/profile(\.d/autojump\.bash)[[:space:]]*$" ~/.bashrc` -eq 0 ]; then
 X-        echo "Your .bashrc doesn't seem to source /etc/profile or /etc/profile.d/autojump.bash"
 X-        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
 X+        echo "Your .bashrc doesn't seem to source /etc/profile or ${prefix}/etc/profile.d/autojump.bash"
 X+        echo "Adding the ${prefix}/etc/profile.d/autojump.bash to your .bashrc"
 X         echo "" >> ~/.bashrc
 X         echo "# Added by autojump install.sh" >> ~/.bashrc
 X-        echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
 X+        echo "source ${prefix}/etc/profile.d/autojump.bash" >> ~/.bashrc
 X     fi
 X     echo "Done!"
 X     echo
 X     echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump."
 X else
 X-    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X+    echo "Your distribution does not have a ${prefix}/etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X     read ans
 X     if [ ${#ans} -gt 0 ]; then
 X 	     if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 dffdbfd25a1b39a4ce4177d40a358e55
 echo x - autojump/distinfo
 sed 's/^X//' >autojump/distinfo << '60a32d51eebaff511cac7ae3e366850a'
 XMD5 (autojump_v13.tar.gz) = 13e4e6173f4ed63b8babb00fcd95f600
 XSHA256 (autojump_v13.tar.gz) = 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153
 XSIZE (autojump_v13.tar.gz) = 22723
 60a32d51eebaff511cac7ae3e366850a
 echo x - autojump/pkg-descr
 sed 's/^X//' >autojump/pkg-descr << 'af87931262491898c6ab1cc3c3ddac55'
 XAutojump is a tool that acts as a complement to cd: it makes navigating your
 Xfilesystem a lot faster. It works by automagically maintaining a database of
 Xthe directories you use the most from the command line, and allows you to jump
 Xback and forth between them, by typing just a few letters of the name of the
 Xdirectory you want to jump to.
 X
 XWWW: http://github.com/joelthelion/autojump/wiki
 af87931262491898c6ab1cc3c3ddac55
 echo x - autojump/Makefile
 sed 's/^X//' >autojump/Makefile << '64238b552e4fe3c222efa4fdde5e5897'
 X# New ports collection makefile for:  autojump
 X# Date created:        12 October 2010
 X# Whom:                Neeraj Verma <neeraj.verma.ports@vermatech.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=      autojump
 XPORTVERSION=   13
 XCATEGORIES=    sysutils
 XMASTER_SITES=  http://github.com/downloads/joelthelion/autojump/ \
 X		http://www.vermatech.com/distfiles/
 XDISTNAME=      autojump_v13
 XDISTFILES=     autojump_v13.tar.gz
 X
 XMAINTAINER=    neeraj.verma.ports@vermatech.com
 X
 XCOMMENT=       Autojump is a tool that acts as a complement to cd.
 X
 XNO_BUILD=      YES
 X
 XPLIST_FILES=	bin/autojump \
 X		bin/jumpapplet \
 X		share/autojump/icon.png \
 X		share/man/man1/autojump.1
 X
 XOPTIONS=	ZSH "Install zsh version as well." On
 X
 X.include <bsd.port.options.mk>
 X
 X.if defined(WITH_ZSH)
 XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
 X		${LOCALBASE}/bin/zsh:${PORTSDIR}/shells/zsh
 X.else
 XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
 X.endif
 X
 XPLIST_DIRS=	share/autojump
 X
 Xdo-install:
 X.if defined(WITH_ZSH)
 X	@(cd ${INSTALL_WRKSRC} && ./install.zsh )
 X.else
 X	@(cd ${INSTALL_WRKSRC} && ./install.sh )
 X.endif
 X
 X.include <bsd.port.mk>
 64238b552e4fe3c222efa4fdde5e5897
 exit
 
 
 --=-SzBvxOK063MwWNHD+Svf--
 

From: Stephen Montgomery-Smith <stephen@missouri.edu>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc:  
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Mon, 04 Jul 2011 11:33:19 -0500

 This is a multi-part message in MIME format.
 --------------050906090507040705010503
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 There are a few more things needed to get this port into shape.
 
 First, there is a port ports-mgmt/portlint which installs a program 
 called portlint.  Run "portlint -abt" from within your port, and it will 
 print a lot of errors.  I am attaching a shar file in which I have 
 corrected these errors.
 
 Second, you need to make sure that "make deinstall" really does remove 
 everything - directories as well as files.  What I do is this
 
 find /usr/local | sort > fff-1
 make install deinstall
 find /usr/local | sort > fff-2
 diff fff1 fff2
 
 to see if there is anything left behind.  You have quite a few files and 
 directories left over.  (In fact, "make install deinstall" should really 
 leave /usr/local as it was before, and the FreeBSD people compute 
 checksums of each file and see if it was as before.)
 
 Third, the man pages should be stored in man/man1, not in 
 share/man/man1.  Then you don't put then in PLIST_FILES, but in MAN1 
 (see 
 http://www.freebsd.org/doc/en/books/porters-handbook/makefile-manpages.html). 
   So you will need to patch the installation files.
 
 Fourth, the install program changes /root/.bashrc or whatever.  But this 
 should really by done by each individual user.  It would be better if 
 your port would write instructions to the screen (use pkg-message). 
 Hopefully these instructions are also in the man pages.
 
 Also, if the port writes to various system wide profiles, it will have 
 to restore them on deinstallation.  This job is sufficiently complex 
 that you need to use a pkg-plist file instead of PLIST_FILE and 
 PLIST_DIR in Makefile.
 
 Fifth, this port is not "prefix friendly."  If the user of the port 
 happens to have PREFIX=/bubbly/boo/boo, then when the port is installed, 
 everything should be in /bubbly/boo/boo, and all the installed scripts 
 should be modified to know that this is what ${prefix} is.  I see places 
 where prefix is hard coded in the installation scripts.
 
 Generally this port will need a lot of work before it fits well into the 
 FreeBSD ports structure.  If you need help, you can reply to this 
 message, and I will see what I can do (time constraints being what they 
 are).
 
 --------------050906090507040705010503
 Content-Type: application/x-shar;
  name="autojump.shar"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="autojump.shar"
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	autojump
 #	autojump/files
 #	autojump/files/patch-autojump
 #	autojump/files/patch-install.zsh
 #	autojump/files/patch-install.sh
 #	autojump/distinfo
 #	autojump/pkg-descr
 #	autojump/Makefile
 #
 echo c - autojump
 mkdir -p autojump > /dev/null 2>&1
 echo c - autojump/files
 mkdir -p autojump/files > /dev/null 2>&1
 echo x - autojump/files/patch-autojump
 sed 's/^X//' >autojump/files/patch-autojump << '6917d57faf6ecf383ae7da8503e66008'
 X--- ./autojump.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./autojump	2010-10-17 19:00:36.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#!/usr/bin/python
 X+#!/usr/local/bin/python
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 6917d57faf6ecf383ae7da8503e66008
 echo x - autojump/files/patch-install.zsh
 sed 's/^X//' >autojump/files/patch-install.zsh << 'd02a62ee01389e4b53e4877dbeb4f3f9'
 X--- ./install.zsh.orig	2010-10-17 19:08:50.000000000 -0400
 X+++ ./install.zsh	2010-10-17 19:09:05.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#! /bin/zsh
 X+#! /usr/local/bin/zsh
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 X@@ -19,7 +19,7 @@
 X         echo "sudo ./install.sh [--prefix /usr/local]"
 X }
 X 
 X-prefix=/usr
 X+prefix=/usr/local
 X 
 X #command line parsing
 X while true; do
 X@@ -39,19 +39,19 @@
 X 
 X echo "Installing main files to ${prefix} ..."
 X 
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/share/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/share/man/man1/
 X 
 X # autocompletion file in the first directory of the FPATH variable
 X fail=true
 X for f in $fpath
 X do
 X-    sudo cp _j $f && fail=false && break
 X+    cp _j $f && fail=false && break
 X done
 X if $fail
 X then
 X@@ -61,18 +61,18 @@
 X     echo "Installed autocompletion file to $f"
 X fi
 X 
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.zsh /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X+if [ -d "/usr/local/etc/profile.d" ]; then
 X+    cp autojump.zsh /usr/local/etc/profile.d/
 X+    cp autojump.sh /usr/local/etc/profile.d/
 X     echo "Remember to add the line" 
 X-    echo "    source /etc/profile.d/autojump.zsh"
 X+    echo "    source /usr/local/etc/profile.d/autojump.zsh"
 X     echo "or"
 X-    echo "    source /etc/profile"
 X+    echo "    source /usr/local/etc/profile"
 X     echo "to your ~/.zshrc if it's not there already"
 X     echo
 X     echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump."
 X else
 X-    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.zshrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X+    echo "Your distribution does not have a /usr/local/etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.zshrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X     read ans
 X     if [ ${#ans} -gt 0 ]; then
 X 	if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 d02a62ee01389e4b53e4877dbeb4f3f9
 echo x - autojump/files/patch-install.sh
 sed 's/^X//' >autojump/files/patch-install.sh << 'dffdbfd25a1b39a4ce4177d40a358e55'
 X--- ./install.sh.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./install.sh	2010-10-17 19:00:36.000000000 -0400
 X@@ -1,4 +1,4 @@
 X-#!/bin/bash
 X+#!/usr/local/bin/bash
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 X@@ -16,11 +16,11 @@
 X #along with autojump.  If not, see <http://www.gnu.org/licenses/>.
 X 
 X function show_help {
 X-        echo "sudo ./install.sh [--prefix /usr/local]"
 X+        echo "./install.sh [--prefix /usr/local]"
 X }
 X 
 X # Default install directory.
 X-prefix=/usr
 X+prefix=/usr/local
 X 
 X # Command line parsing
 X while true; do
 X@@ -41,32 +41,32 @@
 X echo "Installing to ${prefix} ..."
 X 
 X # INSTALL AUTOJUMP
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/share/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/share/man/man1/
 X 
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.bash /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X+if [ -d "${prefix}/etc/profile.d" ]; then
 X+    cp autojump.bash ${prefix}/etc/profile.d/
 X+    cp autojump.sh ${prefix}/etc/profile.d/
 X 
 X     # Make sure that the code we just copied has been sourced.
 X-    # check if .bashrc has sourced /etc/profile or /etc/profile.d/autojump.bash
 X+    # check if .bashrc has sourced /etc/profile or ${prefix}/etc/profile.d/autojump.bash
 X     if [ `grep -c "^[[:space:]]*source\|\. /etc/profile(\.d/autojump\.bash)[[:space:]]*$" ~/.bashrc` -eq 0 ]; then
 X-        echo "Your .bashrc doesn't seem to source /etc/profile or /etc/profile.d/autojump.bash"
 X-        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
 X+        echo "Your .bashrc doesn't seem to source /etc/profile or ${prefix}/etc/profile.d/autojump.bash"
 X+        echo "Adding the ${prefix}/etc/profile.d/autojump.bash to your .bashrc"
 X         echo "" >> ~/.bashrc
 X         echo "# Added by autojump install.sh" >> ~/.bashrc
 X-        echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
 X+        echo "source ${prefix}/etc/profile.d/autojump.bash" >> ~/.bashrc
 X     fi
 X     echo "Done!"
 X     echo
 X     echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump."
 X else
 X-    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X+    echo "Your distribution does not have a ${prefix}/etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X     read ans
 X     if [ ${#ans} -gt 0 ]; then
 X 	     if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 dffdbfd25a1b39a4ce4177d40a358e55
 echo x - autojump/distinfo
 sed 's/^X//' >autojump/distinfo << '60a32d51eebaff511cac7ae3e366850a'
 XSHA256 (autojump_v13.tar.gz) = 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153
 XSIZE (autojump_v13.tar.gz) = 22723
 60a32d51eebaff511cac7ae3e366850a
 echo x - autojump/pkg-descr
 sed 's/^X//' >autojump/pkg-descr << 'af87931262491898c6ab1cc3c3ddac55'
 XAutojump is a tool that acts as a complement to cd: it makes navigating your
 Xfilesystem a lot faster. It works by automagically maintaining a database of
 Xthe directories you use the most from the command line, and allows you to jump
 Xback and forth between them, by typing just a few letters of the name of the
 Xdirectory you want to jump to.
 X
 XWWW: http://github.com/joelthelion/autojump/wiki
 af87931262491898c6ab1cc3c3ddac55
 echo x - autojump/Makefile
 sed 's/^X//' >autojump/Makefile << '64238b552e4fe3c222efa4fdde5e5897'
 X# New ports collection makefile for:  autojump
 X# Date created:        12 October 2010
 X# Whom:                Neeraj Verma <neeraj.verma.ports@vermatech.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	autojump
 XPORTVERSION=	13
 XCATEGORIES=	sysutils
 XMASTER_SITES=	http://github.com/downloads/joelthelion/autojump/ \
 X		http://www.vermatech.com/distfiles/
 XDISTNAME=	autojump_v13
 X
 XMAINTAINER=	neeraj.verma.ports@vermatech.com
 XCOMMENT=	Autojump is a tool that acts as a complement to cd
 X
 XNO_BUILD=	YES
 X
 XPLIST_FILES=	bin/autojump \
 X		bin/jumpapplet \
 X		share/autojump/icon.png \
 X		share/man/man1/autojump.1
 X
 XOPTIONS=	ZSH "Install zsh version as well." On
 X
 X.include <bsd.port.options.mk>
 X
 X.if defined(WITH_ZSH)
 XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
 X		${LOCALBASE}/bin/zsh:${PORTSDIR}/shells/zsh
 X.else
 XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
 X.endif
 X
 XPLIST_DIRS=	share/autojump
 X
 Xdo-install:
 X.if defined(WITH_ZSH)
 X	@(cd ${INSTALL_WRKSRC} && ./install.zsh )
 X.else
 X	@(cd ${INSTALL_WRKSRC} && ./install.sh )
 X.endif
 X
 X.include <bsd.port.mk>
 64238b552e4fe3c222efa4fdde5e5897
 exit
 
 
 --------------050906090507040705010503--

From: Neeraj Verma <neeraj.verma@vermatech.com>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc: Stephen Montgomery-Smith <stephen@missouri.edu>
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Sun, 04 Dec 2011 00:21:52 -0500

 Thanks for your feedback. I took the latest version you posted and made
 the following changes:
 
 * Tested the make deinstall functionality. Everything seems to be in
 order. The only remaining files are those of the dependencies (bash, zsh
 and python). Please let me know if there are files that remained.
 
 * Python has been added to the list of dependencies for this port. It
 was missing before.
 
 * The location of the man file has been fixed and tested.
 
 * The port has been changed not to touch ~/.bashrc and or ~/.zshrc. a
 pkg-message has been added to notify the user of the system wide
 profiles it does modify. ( the port no longer asks the user if they want
 to modify any file )
 
 * The /etc/profile and/or /etc/zshrc are modified upon installation and
 de-installation of the port. 
 
 * verified the port is prefix friendly. Please let me know if you find
 any places where it is hard coded.
 
 Below is the most up-to-date SHAR of this port. 
 
 I know that there are a couple of things that still might need to be
 done. I am awaiting your response.
 
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	autojump
 #	autojump/files
 #	autojump/files/patch-autojump
 #	autojump/files/patch-install.sh
 #	autojump/files/patch-install.zsh
 #	autojump/distinfo
 #	autojump/pkg-descr
 #	autojump/Makefile
 #	autojump/pkg-message
 #	autojump/pkg-deinstall
 #	autojump/pkg-install
 #
 echo c - autojump
 mkdir -p autojump > /dev/null 2>&1
 echo c - autojump/files
 mkdir -p autojump/files > /dev/null 2>&1
 echo x - autojump/files/patch-autojump
 sed 's/^X//' >autojump/files/patch-autojump <<
 '6917d57faf6ecf383ae7da8503e66008'
 X--- ./autojump.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./autojump	2011-12-03 17:58:54.000000000 -0500
 X@@ -1,4 +1,4 @@
 X-#!/usr/bin/python
 X+#!/usr/local/bin/python
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 6917d57faf6ecf383ae7da8503e66008
 echo x - autojump/files/patch-install.sh
 sed 's/^X//' >autojump/files/patch-install.sh <<
 'dffdbfd25a1b39a4ce4177d40a358e55'
 X--- ./install.sh.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./install.sh	2011-12-03 23:04:22.000000000 -0500
 X@@ -1,4 +1,4 @@
 X-#!/bin/bash
 X+#!/usr/local/bin/bash
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 X@@ -16,11 +16,11 @@
 X #along with autojump.  If not, see <http://www.gnu.org/licenses/>.
 X 
 X function show_help {
 X-        echo "sudo ./install.sh [--prefix /usr/local]"
 X+        echo "./install.sh [--prefix /usr/local]"
 X }
 X 
 X # Default install directory.
 X-prefix=/usr
 X+prefix=/usr/local
 X 
 X # Command line parsing
 X while true; do
 X@@ -41,56 +41,10 @@
 X echo "Installing to ${prefix} ..."
 X 
 X # INSTALL AUTOJUMP
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X-
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.bash /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X-
 X-    # Make sure that the code we just copied has been sourced.
 X-    # check if .bashrc has sourced /etc/profile
 or /etc/profile.d/autojump.bash
 X-    if [ `grep -c "^[[:space:]]*source\|\. /etc/profile(\.d/autojump
 \.bash)[[:space:]]*$" ~/.bashrc` -eq 0 ]; then
 X-        echo "Your .bashrc doesn't seem to source /etc/profile
 or /etc/profile.d/autojump.bash"
 X-        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
 X-        echo "" >> ~/.bashrc
 X-        echo "# Added by autojump install.sh" >> ~/.bashrc
 X-        echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
 X-    fi
 X-    echo "Done!"
 X-    echo
 X-    echo "You need to source your ~/.bashrc (source ~/.bashrc) before
 you can start using autojump."
 X-else
 X-    echo "Your distribution does not have a /etc/profile.d directory,
 the default that we install one of the scripts to. Would you like us to
 copy it into your ~/.bashrc file to make it work? (If you have done this
 once before, delete the old version before doing it again.) [y/n]"
 X-    read ans
 X-    if [ ${#ans} -gt 0 ]; then
 X-	     if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ];
 then
 X-
 X-                # Answered yes. Go ahead and add the autojump code
 X-	        echo "" >> ~/.bashrc
 X-	        echo "#autojump" >> ~/.bashrc
 X-	        cat autojump.bash | grep -v "^#" >> ~/.bashrc
 X-
 X-                # Since OSX uses .bash_profile, we need to make sure
 that .bashrc is properly sourced.
 X-                # Makes the assumption that if they have a line:
 source ~/.bashrc or . ~/.bashrc, that
 X-                # .bashrc has been properly sourced and you don't need
 to add it.
 X-                OS=`uname`
 X-                if [ $OS == 'Darwin' -a `grep -c "^[[:space:]]*source
 \|\. ~/\.bashrc[[:space:]]*$" ~/.bash_profile` -eq 0 ]; then
 X-                    echo "You are using OSX and your .bash_profile
 doesn't seem to be sourcing .bashrc"
 X-                    echo "Adding source ~/.bashrc to your bashrc"
 X-                    echo -e "\n# Get the aliases and functions" >>
 ~/.bash_profile
 X-                    echo -e "if [ -f ~/.bashrc ]; then\n  . ~/.bashrc
 \nfi" >> ~/.bash_profile
 X-                fi
 X-                echo "You need to source your ~/.bashrc (source
 ~/.bashrc) before you can start using autojump."
 X-	     else
 X-	         echo "Then you need to put autojump.sh, or the code from it,
 somewhere where it will get read. Good luck!"
 X-	     fi
 X-    else
 X-        echo "Then you need to put autojump.sh, or the code from it,
 somewhere where it will get read. Good luck!"
 X-    fi
 X-fi
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/man/man1/
 dffdbfd25a1b39a4ce4177d40a358e55
 echo x - autojump/files/patch-install.zsh
 sed 's/^X//' >autojump/files/patch-install.zsh <<
 'd02a62ee01389e4b53e4877dbeb4f3f9'
 X--- ./install.zsh.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./install.zsh	2011-12-03 23:25:09.000000000 -0500
 X@@ -1,4 +1,4 @@
 X-#! /bin/zsh
 X+#! /usr/local/bin/zsh
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 X@@ -19,7 +19,7 @@
 X         echo "sudo ./install.sh [--prefix /usr/local]"
 X }
 X 
 X-prefix=/usr
 X+prefix=/usr/local
 X 
 X #command line parsing
 X while true; do
 X@@ -39,19 +39,19 @@
 X 
 X echo "Installing main files to ${prefix} ..."
 X 
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/man/man1/
 X 
 X # autocompletion file in the first directory of the FPATH variable
 X fail=true
 X for f in $fpath
 X do
 X-    sudo cp _j $f && fail=false && break
 X+    cp _j $f && fail=false && break
 X done
 X if $fail
 X then
 X@@ -60,32 +60,3 @@
 X else
 X     echo "Installed autocompletion file to $f"
 X fi
 X-
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.zsh /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X-    echo "Remember to add the line" 
 X-    echo "    source /etc/profile.d/autojump.zsh"
 X-    echo "or"
 X-    echo "    source /etc/profile"
 X-    echo "to your ~/.zshrc if it's not there already"
 X-    echo
 X-    echo "You need to source your ~/.zshrc (source ~/.zshrc) before
 you can start using autojump."
 X-else
 X-    echo "Your distribution does not have a /etc/profile.d directory,
 the default that we install one of the scripts to. Would you like us to
 copy it into your ~/.zshrc file to make it work? (If you have done this
 once before, delete the old version before doing it again.) [y/n]"
 X-    read ans
 X-    if [ ${#ans} -gt 0 ]; then
 X-	if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 X-	    echo "" >> ~/.zshrc
 X-	    echo "#autojump" >> ~/.zshrc
 X-	    cat autojump.zsh >> ~/.zshrc
 X-            echo "Done!"
 X-            echo
 X-            echo "You need to source your ~/.zshrc (source ~/.zshrc)
 before you can start using autojump."
 X-	else
 X-	    echo "Then you need to put autojump.zsh, or the code from it,
 somewhere where it will get read. Good luck!"
 X-	fi
 X-    else
 X-    	    echo "Then you need to put autojump.zsh, or the code from it,
 somewhere where it will get read. Good luck!"
 X-    fi
 X-fi
 d02a62ee01389e4b53e4877dbeb4f3f9
 echo x - autojump/distinfo
 sed 's/^X//' >autojump/distinfo << '60a32d51eebaff511cac7ae3e366850a'
 XSHA256 (autojump_v13.tar.gz) =
 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153
 XSIZE (autojump_v13.tar.gz) = 22723
 60a32d51eebaff511cac7ae3e366850a
 echo x - autojump/pkg-descr
 sed 's/^X//' >autojump/pkg-descr << 'af87931262491898c6ab1cc3c3ddac55'
 XAutojump is a tool that acts as a complement to cd: it makes navigating
 your
 Xfilesystem a lot faster. It works by automagically maintaining a
 database of
 Xthe directories you use the most from the command line, and allows you
 to jump
 Xback and forth between them, by typing just a few letters of the name
 of the
 Xdirectory you want to jump to.
 X
 XWWW: http://github.com/joelthelion/autojump/wiki
 af87931262491898c6ab1cc3c3ddac55
 echo x - autojump/Makefile
 sed 's/^X//' >autojump/Makefile << '64238b552e4fe3c222efa4fdde5e5897'
 X# New ports collection makefile for:  autojump
 X# Date created:        12 October 2011
 X# Whom:                Neeraj Verma <neeraj.verma.ports@vermatech.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	autojump
 XPORTVERSION=	13
 XCATEGORIES=	sysutils
 XMASTER_SITES=	http://github.com/downloads/joelthelion/autojump/ \
 X		http://www.vermatech.com/distfiles/
 XDISTNAME=	autojump_v13
 X
 XMAINTAINER=	neeraj.verma.ports@vermatech.com
 XCOMMENT=	Autojump is a tool that acts as a complement to cd
 X
 XNO_BUILD=	YES
 X
 XPLIST_FILES=	bin/autojump \
 X		bin/jumpapplet \
 X		share/autojump/icon.png \
 X		man/man1/autojump.1 
 X
 XOPTIONS=	ZSH "Install zsh version as well." On
 X
 X.include <bsd.port.options.mk>
 X
 X.if defined(WITH_ZSH)
 XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
 X		${LOCALBASE}/bin/zsh:${PORTSDIR}/shells/zsh \
 X		${LOCALBASE}/bin/python:${PORTSDIR}/lang/python 
 X.else
 XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
 X		${LOCALBASE}/bin/python:${PORTSDIR}/lang/python 
 X.endif
 X
 XPLIST_DIRS=	share/autojump
 X
 Xdo-install:
 X.if defined(WITH_ZSH)
 X	@(cd ${INSTALL_WRKSRC} && ./install.zsh )
 X.else
 X	@(cd ${INSTALL_WRKSRC} && ./install.sh )
 X.endif
 X	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME}
 POST-INSTALL
 X
 Xpost-install:
 X	@${CAT} ${PKGMESSAGE}
 X
 X.include <bsd.port.mk>
 64238b552e4fe3c222efa4fdde5e5897
 echo x - autojump/pkg-message
 sed 's/^X//' >autojump/pkg-message << '0c84fd6d3e4beddb2ab714012913806a'
 X**************************************************************
 X* AutoJump installed
 X**************************************************************
 X* Note: Your /etc/profile was changed for this installation.
 X* changes will be reverted when you un-install the package. 
 X**************************************************************
 0c84fd6d3e4beddb2ab714012913806a
 echo x - autojump/pkg-deinstall
 sed 's/^X//' >autojump/pkg-deinstall <<
 '8202d45a1a2656e1318046a72bd04ea7'
 X#!/bin/sh
 X
 Xcase $2 in
 XPOST-DEINSTALL)
 X	rm -f /etc/profile.autojump
 X	rm -f /etc/zshrc.autojump
 X	# delete the source (.) line from the /etc/profile and /etc/zshrc
 X	sed -i '' -e '/profile.autojump/d' /etc/profile
 X	sed -i '' -e '/zshrc.autojump/d' /etc/zshrc
 X	;;
 Xesac
 8202d45a1a2656e1318046a72bd04ea7
 echo x - autojump/pkg-install
 sed 's/^X//' >autojump/pkg-install << '7f92930a482aac056bffddcf4b02b53e'
 X#!/bin/sh
 X
 Xcase $2 in
 XPOST-INSTALL)
 X	cp work/autojump_v13/autojump.bash /etc/profile.autojump
 X	cp work/autojump_v13/autojump.zsh /etc/zshrc.autojump
 X	echo ". /etc/profile.autojump" >> /etc/profile
 X	echo ". /etc/zshrc.autojump" >> /etc/zshrc
 X	;;
 Xesac
 7f92930a482aac056bffddcf4b02b53e
 exit
 
 

From: Stephen Montgomery-Smith <stephen@missouri.edu>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc:  
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Fri, 23 Dec 2011 19:10:21 -0600

 I cannot read the last shar file you submitted.  Could you email it as 
 an attachment?  Or put it on a web page somewhere and send the link?
 
 Thanks, Stephen
 
 
 

From: Neeraj Verma <neeraj.verma@vermatech.com>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc: stephen@missouri.edu
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Fri, 23 Dec 2011 22:55:49 -0500

 --=-H3C3dfVvcydrN6He8jrt
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 
 Please see attached.
 
 
 --=-H3C3dfVvcydrN6He8jrt
 Content-Type: application/x-shar; name="autojump.shar"
 Content-Disposition: attachment; filename="autojump.shar"
 Content-Transfer-Encoding: 7bit
 
 #!/bin/sh
 # This is a shell archive (produced by GNU sharutils 4.6.3).
 # To extract the files from this archive, save it to some FILE, remove
 # everything before the `#!/bin/sh' line above, then type `sh FILE'.
 #
 lock_dir=_sh06727
 # Made on 2011-12-23 22:48 EST by <verma@verma-desktop>.
 # Source directory was `/home/verma'.
 #
 # Existing files will *not* be overwritten, unless `-c' is specified.
 #
 # This shar contains:
 # length mode       name
 # ------ ---------- ------------------------------------------
 #    131 -rw-rw---- autojump/distinfo
 #    391 -rw-rw---- autojump/pkg-descr
 #    264 -rw-rw---- autojump/pkg-deinstall
 #    332 -rw-rw---- autojump/pkg-message
 #   3802 -rw-rw---- autojump/files/patch-install.sh
 #    238 -rw-rw---- autojump/files/patch-autojump
 #   2576 -rw-rw---- autojump/files/patch-install.zsh
 #   1265 -rw-rw---- autojump/Makefile
 #    250 -rw-rw---- autojump/pkg-install
 #
 MD5SUM=${MD5SUM-md5sum}
 f=`${MD5SUM} --version | egrep '^md5sum .*(core|text)utils'`
 test -n "${f}" && md5check=true || md5check=false
 ${md5check} || \
   echo 'Note: not verifying md5sums.  Consider installing GNU coreutils.'
 save_IFS="${IFS}"
 IFS="${IFS}:"
 gettext_dir=FAILED
 locale_dir=FAILED
 first_param="$1"
 for dir in $PATH
 do
   if test "$gettext_dir" = FAILED && test -f $dir/gettext \
      && ($dir/gettext --version >/dev/null 2>&1)
   then
     case `$dir/gettext --version 2>&1 | sed 1q` in
       *GNU*) gettext_dir=$dir ;;
     esac
   fi
   if test "$locale_dir" = FAILED && test -f $dir/shar \
      && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
   then
     locale_dir=`$dir/shar --print-text-domain-dir`
   fi
 done
 IFS="$save_IFS"
 if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
 then
   echo=echo
 else
   TEXTDOMAINDIR=$locale_dir
   export TEXTDOMAINDIR
   TEXTDOMAIN=sharutils
   export TEXTDOMAIN
   echo="$gettext_dir/gettext -s"
 fi
 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null
 then if (echo -n test; echo 1,2,3) | grep n >/dev/null
      then shar_n= shar_c='
 '
      else shar_n=-n shar_c= ; fi
 else shar_n= shar_c='\c' ; fi
 f=shar-touch.$$
 st1=200112312359.59
 st2=123123592001.59
 st2tr=123123592001.5 # old SysV 14-char limit
 st3=1231235901
 
 if touch -am -t ${st1} ${f} >/dev/null 2>&1 && \
    test ! -f ${st1} && test -f ${f}; then
   shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
 
 elif touch -am ${st2} ${f} >/dev/null 2>&1 && \
    test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then
   shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
 
 elif touch -am ${st3} ${f} >/dev/null 2>&1 && \
    test ! -f ${st3} && test -f ${f}; then
   shar_touch='touch -am $3$4$5$6$2 "$8"'
 
 else
   shar_touch=:
   echo
   ${echo} 'WARNING: not restoring timestamps.  Consider getting and'
   ${echo} 'installing GNU `touch'\'', distributed in GNU coreutils...'
   echo
 fi
 rm -f ${st1} ${st2} ${st2tr} ${st3} ${f}
 #
 if test ! -d ${lock_dir}
 then : ; else ${echo} 'lock directory '${lock_dir}' exists'
   exit 1
 fi
 if mkdir ${lock_dir}
 then ${echo} 'x - created lock directory `'${lock_dir}\''.'
 else ${echo} 'x - failed to create lock directory `'${lock_dir}\''.'
   exit 1
 fi
 # ============= autojump/distinfo ==============
 if test ! -d 'autojump'; then
   mkdir 'autojump'
 if test $? -eq 0
 then ${echo} 'x - created directory `autojump'\''.'
 else ${echo} 'x - failed to create directory `autojump'\''.'
   exit 1
 fi
 fi
 if test -f 'autojump/distinfo' && test "$first_param" != -c; then
   ${echo} 'x -SKIPPING autojump/distinfo (file already exists)'
 else
 ${echo} 'x - extracting autojump/distinfo (text)'
   sed 's/^X//' << 'SHAR_EOF' > 'autojump/distinfo' &&
 SHA256 (autojump_v13.tar.gz) = 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153
 SIZE (autojump_v13.tar.gz) = 22723
 SHAR_EOF
   (set 20 11 12 04 00 05 34 'autojump/distinfo'; eval "$shar_touch") &&
   chmod 0660 'autojump/distinfo'
 if test $? -ne 0
 then ${echo} 'restore of autojump/distinfo failed'
 fi
   if ${md5check}
   then (
        ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'autojump/distinfo: MD5 check failed'
        ) << SHAR_EOF
 28763a642f016bdd2417f8aecb2bc4ab  autojump/distinfo
 SHAR_EOF
   else
 test `LC_ALL=C wc -c < 'autojump/distinfo'` -ne 131 && \
   ${echo} 'restoration warning:  size of autojump/distinfo is not 131'
   fi
 fi
 # ============= autojump/pkg-descr ==============
 if test ! -d 'autojump'; then
   mkdir 'autojump'
 if test $? -eq 0
 then ${echo} 'x - created directory `autojump'\''.'
 else ${echo} 'x - failed to create directory `autojump'\''.'
   exit 1
 fi
 fi
 if test -f 'autojump/pkg-descr' && test "$first_param" != -c; then
   ${echo} 'x -SKIPPING autojump/pkg-descr (file already exists)'
 else
 ${echo} 'x - extracting autojump/pkg-descr (text)'
   sed 's/^X//' << 'SHAR_EOF' > 'autojump/pkg-descr' &&
 Autojump is a tool that acts as a complement to cd: it makes navigating your
 filesystem a lot faster. It works by automagically maintaining a database of
 the directories you use the most from the command line, and allows you to jump
 back and forth between them, by typing just a few letters of the name of the
 directory you want to jump to.
 X
 WWW: http://github.com/joelthelion/autojump/wiki
 SHAR_EOF
   (set 20 11 07 04 08 11 43 'autojump/pkg-descr'; eval "$shar_touch") &&
   chmod 0660 'autojump/pkg-descr'
 if test $? -ne 0
 then ${echo} 'restore of autojump/pkg-descr failed'
 fi
   if ${md5check}
   then (
        ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'autojump/pkg-descr: MD5 check failed'
        ) << SHAR_EOF
 67147f0c6274440a0d94da30f354b12a  autojump/pkg-descr
 SHAR_EOF
   else
 test `LC_ALL=C wc -c < 'autojump/pkg-descr'` -ne 391 && \
   ${echo} 'restoration warning:  size of autojump/pkg-descr is not 391'
   fi
 fi
 # ============= autojump/pkg-deinstall ==============
 if test -f 'autojump/pkg-deinstall' && test "$first_param" != -c; then
   ${echo} 'x -SKIPPING autojump/pkg-deinstall (file already exists)'
 else
 ${echo} 'x - extracting autojump/pkg-deinstall (text)'
   sed 's/^X//' << 'SHAR_EOF' > 'autojump/pkg-deinstall' &&
 #!/bin/sh
 X
 case $2 in
 POST-DEINSTALL)
 X	rm -f /etc/profile.autojump
 X	rm -f /etc/zshrc.autojump
 X	# delete the source (.) line from the /etc/profile and /etc/zshrc
 X	sed -i '' -e '/profile.autojump/d' /etc/profile
 X	sed -i '' -e '/zshrc.autojump/d' /etc/zshrc
 X	;;
 esac
 SHAR_EOF
   (set 20 11 12 04 00 05 34 'autojump/pkg-deinstall'; eval "$shar_touch") &&
   chmod 0660 'autojump/pkg-deinstall'
 if test $? -ne 0
 then ${echo} 'restore of autojump/pkg-deinstall failed'
 fi
   if ${md5check}
   then (
        ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'autojump/pkg-deinstall: MD5 check failed'
        ) << SHAR_EOF
 dff413c20278e4f9bbd2fea27f1a73f0  autojump/pkg-deinstall
 SHAR_EOF
   else
 test `LC_ALL=C wc -c < 'autojump/pkg-deinstall'` -ne 264 && \
   ${echo} 'restoration warning:  size of autojump/pkg-deinstall is not 264'
   fi
 fi
 # ============= autojump/pkg-message ==============
 if test -f 'autojump/pkg-message' && test "$first_param" != -c; then
   ${echo} 'x -SKIPPING autojump/pkg-message (file already exists)'
 else
 ${echo} 'x - extracting autojump/pkg-message (text)'
   sed 's/^X//' << 'SHAR_EOF' > 'autojump/pkg-message' &&
 **************************************************************
 * AutoJump installed
 **************************************************************
 * Note: Your /etc/profile was changed for this installation.
 * changes will be reverted when you un-install the package. 
 **************************************************************
 SHAR_EOF
   (set 20 11 12 04 00 05 34 'autojump/pkg-message'; eval "$shar_touch") &&
   chmod 0660 'autojump/pkg-message'
 if test $? -ne 0
 then ${echo} 'restore of autojump/pkg-message failed'
 fi
   if ${md5check}
   then (
        ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'autojump/pkg-message: MD5 check failed'
        ) << SHAR_EOF
 20181c952cda6ad44e34aaf8333a75b5  autojump/pkg-message
 SHAR_EOF
   else
 test `LC_ALL=C wc -c < 'autojump/pkg-message'` -ne 332 && \
   ${echo} 'restoration warning:  size of autojump/pkg-message is not 332'
   fi
 fi
 # ============= autojump/files/patch-install.sh ==============
 if test ! -d 'autojump/files'; then
   mkdir 'autojump/files'
 if test $? -eq 0
 then ${echo} 'x - created directory `autojump/files'\''.'
 else ${echo} 'x - failed to create directory `autojump/files'\''.'
   exit 1
 fi
 fi
 if test -f 'autojump/files/patch-install.sh' && test "$first_param" != -c; then
   ${echo} 'x -SKIPPING autojump/files/patch-install.sh (file already exists)'
 else
 ${echo} 'x - extracting autojump/files/patch-install.sh (text)'
   sed 's/^X//' << 'SHAR_EOF' > 'autojump/files/patch-install.sh' &&
 --- ./install.sh.orig	2010-10-01 10:49:18.000000000 -0400
 +++ ./install.sh	2011-12-03 23:04:22.000000000 -0500
 @@ -1,4 +1,4 @@
 -#!/bin/bash
 +#!/usr/local/bin/bash
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 @@ -16,11 +16,11 @@
 X #along with autojump.  If not, see <http://www.gnu.org/licenses/>.
 X 
 X function show_help {
 -        echo "sudo ./install.sh [--prefix /usr/local]"
 +        echo "./install.sh [--prefix /usr/local]"
 X }
 X 
 X # Default install directory.
 -prefix=/usr
 +prefix=/usr/local
 X 
 X # Command line parsing
 X while true; do
 @@ -41,56 +41,10 @@
 X echo "Installing to ${prefix} ..."
 X 
 X # INSTALL AUTOJUMP
 -sudo mkdir -p ${prefix}/share/autojump/
 -sudo mkdir -p ${prefix}/bin/
 -sudo mkdir -p ${prefix}/share/man/man1/
 -sudo cp icon.png ${prefix}/share/autojump/
 -sudo cp jumpapplet ${prefix}/bin/
 -sudo cp autojump ${prefix}/bin/
 -sudo cp autojump.1 ${prefix}/share/man/man1/
 -
 -if [ -d "/etc/profile.d" ]; then
 -    sudo cp autojump.bash /etc/profile.d/
 -    sudo cp autojump.sh /etc/profile.d/
 -
 -    # Make sure that the code we just copied has been sourced.
 -    # check if .bashrc has sourced /etc/profile or /etc/profile.d/autojump.bash
 -    if [ `grep -c "^[[:space:]]*source\|\. /etc/profile(\.d/autojump\.bash)[[:space:]]*$" ~/.bashrc` -eq 0 ]; then
 -        echo "Your .bashrc doesn't seem to source /etc/profile or /etc/profile.d/autojump.bash"
 -        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
 -        echo "" >> ~/.bashrc
 -        echo "# Added by autojump install.sh" >> ~/.bashrc
 -        echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
 -    fi
 -    echo "Done!"
 -    echo
 -    echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump."
 -else
 -    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 -    read ans
 -    if [ ${#ans} -gt 0 ]; then
 -	     if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 -
 -                # Answered yes. Go ahead and add the autojump code
 -	        echo "" >> ~/.bashrc
 -	        echo "#autojump" >> ~/.bashrc
 -	        cat autojump.bash | grep -v "^#" >> ~/.bashrc
 -
 -                # Since OSX uses .bash_profile, we need to make sure that .bashrc is properly sourced.
 -                # Makes the assumption that if they have a line: source ~/.bashrc or . ~/.bashrc, that
 -                # .bashrc has been properly sourced and you don't need to add it.
 -                OS=`uname`
 -                if [ $OS == 'Darwin' -a `grep -c "^[[:space:]]*source\|\. ~/\.bashrc[[:space:]]*$" ~/.bash_profile` -eq 0 ]; then
 -                    echo "You are using OSX and your .bash_profile doesn't seem to be sourcing .bashrc"
 -                    echo "Adding source ~/.bashrc to your bashrc"
 -                    echo -e "\n# Get the aliases and functions" >> ~/.bash_profile
 -                    echo -e "if [ -f ~/.bashrc ]; then\n  . ~/.bashrc\nfi" >> ~/.bash_profile
 -                fi
 -                echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump."
 -	     else
 -	         echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!"
 -	     fi
 -    else
 -        echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!"
 -    fi
 -fi
 +mkdir -p ${prefix}/share/autojump/
 +mkdir -p ${prefix}/bin/
 +mkdir -p ${prefix}/man/man1/
 +cp icon.png ${prefix}/share/autojump/
 +cp jumpapplet ${prefix}/bin/
 +cp autojump ${prefix}/bin/
 +cp autojump.1 ${prefix}/man/man1/
 SHAR_EOF
   (set 20 11 12 04 00 05 34 'autojump/files/patch-install.sh'; eval "$shar_touch") &&
   chmod 0660 'autojump/files/patch-install.sh'
 if test $? -ne 0
 then ${echo} 'restore of autojump/files/patch-install.sh failed'
 fi
   if ${md5check}
   then (
        ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'autojump/files/patch-install.sh: MD5 check failed'
        ) << SHAR_EOF
 a2f8e283bd73f228c0ce8d63444f12bf  autojump/files/patch-install.sh
 SHAR_EOF
   else
 test `LC_ALL=C wc -c < 'autojump/files/patch-install.sh'` -ne 3802 && \
   ${echo} 'restoration warning:  size of autojump/files/patch-install.sh is not 3802'
   fi
 fi
 # ============= autojump/files/patch-autojump ==============
 if test ! -d 'autojump/files'; then
   mkdir 'autojump/files'
 if test $? -eq 0
 then ${echo} 'x - created directory `autojump/files'\''.'
 else ${echo} 'x - failed to create directory `autojump/files'\''.'
   exit 1
 fi
 fi
 if test -f 'autojump/files/patch-autojump' && test "$first_param" != -c; then
   ${echo} 'x -SKIPPING autojump/files/patch-autojump (file already exists)'
 else
 ${echo} 'x - extracting autojump/files/patch-autojump (text)'
   sed 's/^X//' << 'SHAR_EOF' > 'autojump/files/patch-autojump' &&
 --- ./autojump.orig	2010-10-01 10:49:18.000000000 -0400
 +++ ./autojump	2011-12-03 17:58:54.000000000 -0500
 @@ -1,4 +1,4 @@
 -#!/usr/bin/python
 +#!/usr/local/bin/python
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 SHAR_EOF
   (set 20 11 12 04 00 05 34 'autojump/files/patch-autojump'; eval "$shar_touch") &&
   chmod 0660 'autojump/files/patch-autojump'
 if test $? -ne 0
 then ${echo} 'restore of autojump/files/patch-autojump failed'
 fi
   if ${md5check}
   then (
        ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'autojump/files/patch-autojump: MD5 check failed'
        ) << SHAR_EOF
 10e47f4c75012ebe93e29454bee7c66c  autojump/files/patch-autojump
 SHAR_EOF
   else
 test `LC_ALL=C wc -c < 'autojump/files/patch-autojump'` -ne 238 && \
   ${echo} 'restoration warning:  size of autojump/files/patch-autojump is not 238'
   fi
 fi
 # ============= autojump/files/patch-install.zsh ==============
 if test -f 'autojump/files/patch-install.zsh' && test "$first_param" != -c; then
   ${echo} 'x -SKIPPING autojump/files/patch-install.zsh (file already exists)'
 else
 ${echo} 'x - extracting autojump/files/patch-install.zsh (text)'
   sed 's/^X//' << 'SHAR_EOF' > 'autojump/files/patch-install.zsh' &&
 --- ./install.zsh.orig	2010-10-01 10:49:18.000000000 -0400
 +++ ./install.zsh	2011-12-03 23:25:09.000000000 -0500
 @@ -1,4 +1,4 @@
 -#! /bin/zsh
 +#! /usr/local/bin/zsh
 X #Copyright Joel Schaerer 2008, 2009
 X #This file is part of autojump
 X 
 @@ -19,7 +19,7 @@
 X         echo "sudo ./install.sh [--prefix /usr/local]"
 X }
 X 
 -prefix=/usr
 +prefix=/usr/local
 X 
 X #command line parsing
 X while true; do
 @@ -39,19 +39,19 @@
 X 
 X echo "Installing main files to ${prefix} ..."
 X 
 -sudo mkdir -p ${prefix}/share/autojump/
 -sudo mkdir -p ${prefix}/bin/
 -sudo mkdir -p ${prefix}/share/man/man1/
 -sudo cp icon.png ${prefix}/share/autojump/
 -sudo cp jumpapplet ${prefix}/bin/
 -sudo cp autojump ${prefix}/bin/
 -sudo cp autojump.1 ${prefix}/share/man/man1/
 +mkdir -p ${prefix}/share/autojump/
 +mkdir -p ${prefix}/bin/
 +mkdir -p ${prefix}/man/man1/
 +cp icon.png ${prefix}/share/autojump/
 +cp jumpapplet ${prefix}/bin/
 +cp autojump ${prefix}/bin/
 +cp autojump.1 ${prefix}/man/man1/
 X 
 X # autocompletion file in the first directory of the FPATH variable
 X fail=true
 X for f in $fpath
 X do
 -    sudo cp _j $f && fail=false && break
 +    cp _j $f && fail=false && break
 X done
 X if $fail
 X then
 @@ -60,32 +60,3 @@
 X else
 X     echo "Installed autocompletion file to $f"
 X fi
 -
 -if [ -d "/etc/profile.d" ]; then
 -    sudo cp autojump.zsh /etc/profile.d/
 -    sudo cp autojump.sh /etc/profile.d/
 -    echo "Remember to add the line" 
 -    echo "    source /etc/profile.d/autojump.zsh"
 -    echo "or"
 -    echo "    source /etc/profile"
 -    echo "to your ~/.zshrc if it's not there already"
 -    echo
 -    echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump."
 -else
 -    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.zshrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 -    read ans
 -    if [ ${#ans} -gt 0 ]; then
 -	if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 -	    echo "" >> ~/.zshrc
 -	    echo "#autojump" >> ~/.zshrc
 -	    cat autojump.zsh >> ~/.zshrc
 -            echo "Done!"
 -            echo
 -            echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump."
 -	else
 -	    echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!"
 -	fi
 -    else
 -    	    echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!"
 -    fi
 -fi
 SHAR_EOF
   (set 20 11 12 04 00 05 34 'autojump/files/patch-install.zsh'; eval "$shar_touch") &&
   chmod 0660 'autojump/files/patch-install.zsh'
 if test $? -ne 0
 then ${echo} 'restore of autojump/files/patch-install.zsh failed'
 fi
   if ${md5check}
   then (
        ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'autojump/files/patch-install.zsh: MD5 check failed'
        ) << SHAR_EOF
 22373011a3a692e704298cde4f27556d  autojump/files/patch-install.zsh
 SHAR_EOF
   else
 test `LC_ALL=C wc -c < 'autojump/files/patch-install.zsh'` -ne 2576 && \
   ${echo} 'restoration warning:  size of autojump/files/patch-install.zsh is not 2576'
   fi
 fi
 # ============= autojump/Makefile ==============
 if test -f 'autojump/Makefile' && test "$first_param" != -c; then
   ${echo} 'x -SKIPPING autojump/Makefile (file already exists)'
 else
 ${echo} 'x - extracting autojump/Makefile (text)'
   sed 's/^X//' << 'SHAR_EOF' > 'autojump/Makefile' &&
 # New ports collection makefile for:  autojump
 # Date created:        12 October 2011
 # Whom:                Neeraj Verma <neeraj.verma.ports@vermatech.com>
 #
 # $FreeBSD$
 #
 X
 PORTNAME=	autojump
 PORTVERSION=	13
 CATEGORIES=	sysutils
 MASTER_SITES=	http://github.com/downloads/joelthelion/autojump/ \
 X		http://www.vermatech.com/distfiles/
 DISTNAME=	autojump_v13
 X
 MAINTAINER=	neeraj.verma.ports@vermatech.com
 COMMENT=	Autojump is a tool that acts as a complement to cd
 X
 NO_BUILD=	YES
 X
 PLIST_FILES=	bin/autojump \
 X		bin/jumpapplet \
 X		share/autojump/icon.png \
 X		man/man1/autojump.1 
 X
 OPTIONS=	ZSH "Install zsh version as well." On
 X
 X.include <bsd.port.options.mk>
 X
 X.if defined(WITH_ZSH)
 RUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
 X		${LOCALBASE}/bin/zsh:${PORTSDIR}/shells/zsh \
 X		${LOCALBASE}/bin/python:${PORTSDIR}/lang/python 
 X.else
 RUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
 X		${LOCALBASE}/bin/python:${PORTSDIR}/lang/python 
 X.endif
 X
 PLIST_DIRS=	share/autojump
 X
 do-install:
 X.if defined(WITH_ZSH)
 X	@(cd ${INSTALL_WRKSRC} && ./install.zsh )
 X.else
 X	@(cd ${INSTALL_WRKSRC} && ./install.sh )
 X.endif
 X	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 X
 post-install:
 X	@${CAT} ${PKGMESSAGE}
 X
 X.include <bsd.port.mk>
 SHAR_EOF
   (set 20 11 12 04 00 05 34 'autojump/Makefile'; eval "$shar_touch") &&
   chmod 0660 'autojump/Makefile'
 if test $? -ne 0
 then ${echo} 'restore of autojump/Makefile failed'
 fi
   if ${md5check}
   then (
        ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'autojump/Makefile: MD5 check failed'
        ) << SHAR_EOF
 49f99695ddb1c32ec753fecd7ede61de  autojump/Makefile
 SHAR_EOF
   else
 test `LC_ALL=C wc -c < 'autojump/Makefile'` -ne 1265 && \
   ${echo} 'restoration warning:  size of autojump/Makefile is not 1265'
   fi
 fi
 # ============= autojump/pkg-install ==============
 if test -f 'autojump/pkg-install' && test "$first_param" != -c; then
   ${echo} 'x -SKIPPING autojump/pkg-install (file already exists)'
 else
 ${echo} 'x - extracting autojump/pkg-install (text)'
   sed 's/^X//' << 'SHAR_EOF' > 'autojump/pkg-install' &&
 #!/bin/sh
 X
 case $2 in
 POST-INSTALL)
 X	cp work/autojump_v13/autojump.bash /etc/profile.autojump
 X	cp work/autojump_v13/autojump.zsh /etc/zshrc.autojump
 X	echo ". /etc/profile.autojump" >> /etc/profile
 X	echo ". /etc/zshrc.autojump" >> /etc/zshrc
 X	;;
 esac
 SHAR_EOF
   (set 20 11 12 04 00 05 34 'autojump/pkg-install'; eval "$shar_touch") &&
   chmod 0660 'autojump/pkg-install'
 if test $? -ne 0
 then ${echo} 'restore of autojump/pkg-install failed'
 fi
   if ${md5check}
   then (
        ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'autojump/pkg-install: MD5 check failed'
        ) << SHAR_EOF
 1290a1841966b46aa2620aa4cde49fcd  autojump/pkg-install
 SHAR_EOF
   else
 test `LC_ALL=C wc -c < 'autojump/pkg-install'` -ne 250 && \
   ${echo} 'restoration warning:  size of autojump/pkg-install is not 250'
   fi
 fi
 if rm -fr ${lock_dir}
 then ${echo} 'x - removed lock directory `'${lock_dir}\''.'
 else ${echo} 'x - failed to remove lock directory `'${lock_dir}\''.'
   exit 1
 fi
 exit 0
 
 --=-H3C3dfVvcydrN6He8jrt--
 

From: Stephen Montgomery-Smith <stephen@missouri.edu>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc:  
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Sun, 25 Dec 2011 15:06:17 -0600

 This is a multi-part message in MIME format.
 --------------080304020109090208050806
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 I made quite a large number of changes to your submission.  Can you 
 check it over and make sure it still does what you want it to do?
 
 1.  I spent some time making it PREFIX friendly.
 2.  I made sure that it would install properly as a package.  You can 
 check this yourself by doing "make package; make deinstall; make clean; 
 pkg_add autojump-13.tbz".  The problem is that ${WRKSRC} will not be 
 present when the package is being installed.  For this reason, I copied 
 autojump.bash and autojump.zsh into ${PREFIX}/share/autojump.
 
 Things you might or might not want to do.
 3.  Notice I put conditionals in pkg-install so that it would only 
 modify the files if they exist.  Maybe you want to make similar changes 
 to pkg-deinstall.
 4.  Look at the shells/bash port.  It has a pkg-install that acts 
 differently when the person doesn't have write access to /etc.  It is 
 possible to install a port without being root.
 5.  Instead of using "cp" in the install scripts, you might want to 
 consider using "install."  This is probably more a matter of style than 
 anything else, but you are relying on the person who wrapped the source 
 tarball to have got his permissions correct on the various files.
 
 
 
 --------------080304020109090208050806
 Content-Type: application/x-shar;
  name="autojump.shar"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="autojump.shar"
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	autojump
 #	autojump/files
 #	autojump/files/pkg-install.in
 #	autojump/files/patch-install.sh
 #	autojump/files/patch-install.zsh
 #	autojump/distinfo
 #	autojump/pkg-descr
 #	autojump/pkg-deinstall
 #	autojump/pkg-message
 #	autojump/Makefile
 #
 echo c - autojump
 mkdir -p autojump > /dev/null 2>&1
 echo c - autojump/files
 mkdir -p autojump/files > /dev/null 2>&1
 echo x - autojump/files/pkg-install.in
 sed 's/^X//' >autojump/files/pkg-install.in << '1a91626665b63d74c4c3b546275099fe'
 X#!/bin/sh
 X
 Xcase $2 in
 XPOST-INSTALL)
 X	if [ -e /etc/profile ]; then \
 X		cp %%PREFIX%%/share/autojump/autojump.bash /etc/profile.autojump
 X		echo ". /etc/profile.autojump" >> /etc/profile
 X	fi
 X	if [ -e /etc/zshrc ]; then \
 X		cp  %%PREFIX%%/share/autojump/autojump.zsh /etc/zshrc.autojump
 X		echo ". /etc/zshrc.autojump" >> /etc/zshrc
 X	fi
 X	;;
 Xesac
 1a91626665b63d74c4c3b546275099fe
 echo x - autojump/files/patch-install.sh
 sed 's/^X//' >autojump/files/patch-install.sh << 'dffdbfd25a1b39a4ce4177d40a358e55'
 X--- ./install.sh.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./install.sh	2011-12-03 23:04:22.000000000 -0500
 X@@ -41,56 +41,12 @@
 X echo "Installing to ${prefix} ..."
 X 
 X # INSTALL AUTOJUMP
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X-
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.bash /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X-
 X-    # Make sure that the code we just copied has been sourced.
 X-    # check if .bashrc has sourced /etc/profile or /etc/profile.d/autojump.bash
 X-    if [ `grep -c "^[[:space:]]*source\|\. /etc/profile(\.d/autojump\.bash)[[:space:]]*$" ~/.bashrc` -eq 0 ]; then
 X-        echo "Your .bashrc doesn't seem to source /etc/profile or /etc/profile.d/autojump.bash"
 X-        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
 X-        echo "" >> ~/.bashrc
 X-        echo "# Added by autojump install.sh" >> ~/.bashrc
 X-        echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
 X-    fi
 X-    echo "Done!"
 X-    echo
 X-    echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump."
 X-else
 X-    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X-    read ans
 X-    if [ ${#ans} -gt 0 ]; then
 X-	     if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 X-
 X-                # Answered yes. Go ahead and add the autojump code
 X-	        echo "" >> ~/.bashrc
 X-	        echo "#autojump" >> ~/.bashrc
 X-	        cat autojump.bash | grep -v "^#" >> ~/.bashrc
 X-
 X-                # Since OSX uses .bash_profile, we need to make sure that .bashrc is properly sourced.
 X-                # Makes the assumption that if they have a line: source ~/.bashrc or . ~/.bashrc, that
 X-                # .bashrc has been properly sourced and you don't need to add it.
 X-                OS=`uname`
 X-                if [ $OS == 'Darwin' -a `grep -c "^[[:space:]]*source\|\. ~/\.bashrc[[:space:]]*$" ~/.bash_profile` -eq 0 ]; then
 X-                    echo "You are using OSX and your .bash_profile doesn't seem to be sourcing .bashrc"
 X-                    echo "Adding source ~/.bashrc to your bashrc"
 X-                    echo -e "\n# Get the aliases and functions" >> ~/.bash_profile
 X-                    echo -e "if [ -f ~/.bashrc ]; then\n  . ~/.bashrc\nfi" >> ~/.bash_profile
 X-                fi
 X-                echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump."
 X-	     else
 X-	         echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!"
 X-	     fi
 X-    else
 X-        echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!"
 X-    fi
 X-fi
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp autojump.bash ${prefix}/share/autojump/
 X+cp autojump.zsh ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/man/man1/
 dffdbfd25a1b39a4ce4177d40a358e55
 echo x - autojump/files/patch-install.zsh
 sed 's/^X//' >autojump/files/patch-install.zsh << 'd02a62ee01389e4b53e4877dbeb4f3f9'
 X--- ./install.zsh.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./install.zsh	2011-12-03 23:25:09.000000000 -0500
 X@@ -39,19 +39,21 @@
 X 
 X echo "Installing main files to ${prefix} ..."
 X 
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp autojump.bash ${prefix}/share/autojump/
 X+cp autojump.zsh ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/man/man1/
 X 
 X # autocompletion file in the first directory of the FPATH variable
 X fail=true
 X for f in $fpath
 X do
 X-    sudo cp _j $f && fail=false && break
 X+    cp _j $f && fail=false && break
 X done
 X if $fail
 X then
 X@@ -60,32 +60,3 @@
 X else
 X     echo "Installed autocompletion file to $f"
 X fi
 X-
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.zsh /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X-    echo "Remember to add the line" 
 X-    echo "    source /etc/profile.d/autojump.zsh"
 X-    echo "or"
 X-    echo "    source /etc/profile"
 X-    echo "to your ~/.zshrc if it's not there already"
 X-    echo
 X-    echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump."
 X-else
 X-    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.zshrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X-    read ans
 X-    if [ ${#ans} -gt 0 ]; then
 X-	if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 X-	    echo "" >> ~/.zshrc
 X-	    echo "#autojump" >> ~/.zshrc
 X-	    cat autojump.zsh >> ~/.zshrc
 X-            echo "Done!"
 X-            echo
 X-            echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump."
 X-	else
 X-	    echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!"
 X-	fi
 X-    else
 X-    	    echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!"
 X-    fi
 X-fi
 d02a62ee01389e4b53e4877dbeb4f3f9
 echo x - autojump/distinfo
 sed 's/^X//' >autojump/distinfo << '60a32d51eebaff511cac7ae3e366850a'
 XSHA256 (autojump_v13.tar.gz) = 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153
 XSIZE (autojump_v13.tar.gz) = 22723
 60a32d51eebaff511cac7ae3e366850a
 echo x - autojump/pkg-descr
 sed 's/^X//' >autojump/pkg-descr << 'af87931262491898c6ab1cc3c3ddac55'
 XAutojump is a tool that acts as a complement to cd: it makes navigating your
 Xfilesystem a lot faster. It works by automagically maintaining a database of
 Xthe directories you use the most from the command line, and allows you to jump
 Xback and forth between them, by typing just a few letters of the name of the
 Xdirectory you want to jump to.
 X
 XWWW: http://github.com/joelthelion/autojump/wiki
 af87931262491898c6ab1cc3c3ddac55
 echo x - autojump/pkg-deinstall
 sed 's/^X//' >autojump/pkg-deinstall << '8202d45a1a2656e1318046a72bd04ea7'
 X#!/bin/sh
 X
 Xcase $2 in
 XPOST-DEINSTALL)
 X	rm -f /etc/profile.autojump
 X	rm -f /etc/zshrc.autojump
 X	# delete the source (.) line from the /etc/profile and /etc/zshrc
 X	sed -i '' -e '/profile.autojump/d' /etc/profile
 X	sed -i '' -e '/zshrc.autojump/d' /etc/zshrc
 X	;;
 Xesac
 8202d45a1a2656e1318046a72bd04ea7
 echo x - autojump/pkg-message
 sed 's/^X//' >autojump/pkg-message << '0c84fd6d3e4beddb2ab714012913806a'
 X**************************************************************
 X* AutoJump installed
 X**************************************************************
 X* Note: Your /etc/profile was changed for this installation.
 X* changes will be reverted when you un-install the package. 
 X**************************************************************
 0c84fd6d3e4beddb2ab714012913806a
 echo x - autojump/Makefile
 sed 's/^X//' >autojump/Makefile << '64238b552e4fe3c222efa4fdde5e5897'
 X# New ports collection makefile for:  autojump
 X# Date created:        12 October 2011
 X# Whom:                Neeraj Verma <neeraj.verma.ports@vermatech.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	autojump
 XPORTVERSION=	13
 XCATEGORIES=	sysutils
 XMASTER_SITES=	http://github.com/downloads/joelthelion/autojump/ \
 X		http://www.vermatech.com/distfiles/
 XDISTNAME=	autojump_v13
 X
 XMAINTAINER=	neeraj.verma.ports@vermatech.com
 XCOMMENT=	Autojump is a tool that acts as a complement to cd
 X
 XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
 X
 XUSE_PYTHON_RUN=	YES
 X
 XNO_BUILD=	YES
 X
 XSUB_FILES+=	pkg-install
 X
 XPLIST_FILES=	bin/autojump \
 X		bin/jumpapplet \
 X		share/autojump/autojump.bash \
 X		share/autojump/autojump.zsh \
 X		share/autojump/icon.png
 XMAN1=		autojump.1
 X
 XOPTIONS=	ZSH "Install zsh version as well." On
 X
 X.include <bsd.port.options.mk>
 X
 X.if defined(WITH_ZSH)
 XRUN_DEPENDS+=	${LOCALBASE}/bin/zsh:${PORTSDIR}/shells/zsh
 XPLIST_FILES+=	 share/zsh/site-functions/_j
 X.endif
 X
 XPLIST_DIRS=	share/autojump
 X
 Xpost-patch:
 X	@${REINPLACE_CMD} 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/autojump
 X	@${REINPLACE_CMD} -e 's|/usr$$|${PREFIX}|' -e 's|/usr/local|${PREFIX}|' -e 's|/bin/bash|${PREFIX}/bin/bash|' ${WRKSRC}/install.sh
 X	@${REINPLACE_CMD} -e 's|/usr$$|${PREFIX}|' -e 's|/usr/local|${PREFIX}|' -e 's|/bin/zsh|${PREFIX}/bin/zsh|' ${WRKSRC}/install.zsh
 X
 Xdo-install:
 X.if defined(WITH_ZSH)
 X	@(cd ${INSTALL_WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./install.zsh )
 X.else
 X	@(cd ${INSTALL_WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./install.sh )
 X.endif
 X	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 X
 Xpost-install:
 X	@${CAT} ${PKGMESSAGE}
 X
 X.include <bsd.port.mk>
 64238b552e4fe3c222efa4fdde5e5897
 exit
 
 
 --------------080304020109090208050806--

From: Neeraj Verma <neeraj.verma@vermatech.com>
To: bug-followup@FreeBSD.org, neeraj.verma.ports@vermatech.com
Cc:  
Subject: Re: ports/151467: New port: sysutils/autojump acts as a complement
 to cd
Date: Sat, 24 Mar 2012 00:08:33 -0400

 --=-dQ9MSHGFKxu/3WCCdX1q
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: 7bit
 
 Stephen,
 
 The following are the changes:
 
 * added conditionals to during pkg-deinstall process
 * Fixed broken link to Master site 
 * Changed DISTNAME to  use ${portversion}
 * Tested functionality to make sure everything still worked.
 
 As soon as this port is published, look into the remaining items.
 
 Let me know if anything else is needed.
 
 Thanks.
 
 --=-dQ9MSHGFKxu/3WCCdX1q
 Content-Type: application/x-shar; name="autojump.shar"
 Content-Disposition: attachment; filename="autojump.shar"
 Content-Transfer-Encoding: 7bit
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	autojump
 #	autojump/files
 #	autojump/files/pkg-install.in
 #	autojump/files/patch-install.sh
 #	autojump/files/patch-install.zsh
 #	autojump/distinfo
 #	autojump/pkg-descr
 #	autojump/pkg-deinstall
 #	autojump/pkg-message
 #	autojump/Makefile
 #
 echo c - autojump
 mkdir -p autojump > /dev/null 2>&1
 echo c - autojump/files
 mkdir -p autojump/files > /dev/null 2>&1
 echo x - autojump/files/pkg-install.in
 sed 's/^X//' >autojump/files/pkg-install.in << '1a91626665b63d74c4c3b546275099fe'
 X#!/bin/sh
 X
 Xcase $2 in
 XPOST-INSTALL)
 X	if [ -e /etc/profile ]; then \
 X		cp %%PREFIX%%/share/autojump/autojump.bash /etc/profile.autojump
 X		echo ". /etc/profile.autojump" >> /etc/profile
 X	fi
 X	if [ -e /etc/zshrc ]; then \
 X		cp  %%PREFIX%%/share/autojump/autojump.zsh /etc/zshrc.autojump
 X		echo ". /etc/zshrc.autojump" >> /etc/zshrc
 X	fi
 X	;;
 Xesac
 1a91626665b63d74c4c3b546275099fe
 echo x - autojump/files/patch-install.sh
 sed 's/^X//' >autojump/files/patch-install.sh << 'dffdbfd25a1b39a4ce4177d40a358e55'
 X--- ./install.sh.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./install.sh	2011-12-03 23:04:22.000000000 -0500
 X@@ -41,56 +41,12 @@
 X echo "Installing to ${prefix} ..."
 X 
 X # INSTALL AUTOJUMP
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X-
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.bash /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X-
 X-    # Make sure that the code we just copied has been sourced.
 X-    # check if .bashrc has sourced /etc/profile or /etc/profile.d/autojump.bash
 X-    if [ `grep -c "^[[:space:]]*source\|\. /etc/profile(\.d/autojump\.bash)[[:space:]]*$" ~/.bashrc` -eq 0 ]; then
 X-        echo "Your .bashrc doesn't seem to source /etc/profile or /etc/profile.d/autojump.bash"
 X-        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
 X-        echo "" >> ~/.bashrc
 X-        echo "# Added by autojump install.sh" >> ~/.bashrc
 X-        echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
 X-    fi
 X-    echo "Done!"
 X-    echo
 X-    echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump."
 X-else
 X-    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.bashrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X-    read ans
 X-    if [ ${#ans} -gt 0 ]; then
 X-	     if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 X-
 X-                # Answered yes. Go ahead and add the autojump code
 X-	        echo "" >> ~/.bashrc
 X-	        echo "#autojump" >> ~/.bashrc
 X-	        cat autojump.bash | grep -v "^#" >> ~/.bashrc
 X-
 X-                # Since OSX uses .bash_profile, we need to make sure that .bashrc is properly sourced.
 X-                # Makes the assumption that if they have a line: source ~/.bashrc or . ~/.bashrc, that
 X-                # .bashrc has been properly sourced and you don't need to add it.
 X-                OS=`uname`
 X-                if [ $OS == 'Darwin' -a `grep -c "^[[:space:]]*source\|\. ~/\.bashrc[[:space:]]*$" ~/.bash_profile` -eq 0 ]; then
 X-                    echo "You are using OSX and your .bash_profile doesn't seem to be sourcing .bashrc"
 X-                    echo "Adding source ~/.bashrc to your bashrc"
 X-                    echo -e "\n# Get the aliases and functions" >> ~/.bash_profile
 X-                    echo -e "if [ -f ~/.bashrc ]; then\n  . ~/.bashrc\nfi" >> ~/.bash_profile
 X-                fi
 X-                echo "You need to source your ~/.bashrc (source ~/.bashrc) before you can start using autojump."
 X-	     else
 X-	         echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!"
 X-	     fi
 X-    else
 X-        echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!"
 X-    fi
 X-fi
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp autojump.bash ${prefix}/share/autojump/
 X+cp autojump.zsh ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/man/man1/
 dffdbfd25a1b39a4ce4177d40a358e55
 echo x - autojump/files/patch-install.zsh
 sed 's/^X//' >autojump/files/patch-install.zsh << 'd02a62ee01389e4b53e4877dbeb4f3f9'
 X--- ./install.zsh.orig	2010-10-01 10:49:18.000000000 -0400
 X+++ ./install.zsh	2011-12-03 23:25:09.000000000 -0500
 X@@ -39,19 +39,21 @@
 X 
 X echo "Installing main files to ${prefix} ..."
 X 
 X-sudo mkdir -p ${prefix}/share/autojump/
 X-sudo mkdir -p ${prefix}/bin/
 X-sudo mkdir -p ${prefix}/share/man/man1/
 X-sudo cp icon.png ${prefix}/share/autojump/
 X-sudo cp jumpapplet ${prefix}/bin/
 X-sudo cp autojump ${prefix}/bin/
 X-sudo cp autojump.1 ${prefix}/share/man/man1/
 X+mkdir -p ${prefix}/share/autojump/
 X+mkdir -p ${prefix}/bin/
 X+mkdir -p ${prefix}/man/man1/
 X+cp icon.png ${prefix}/share/autojump/
 X+cp autojump.bash ${prefix}/share/autojump/
 X+cp autojump.zsh ${prefix}/share/autojump/
 X+cp jumpapplet ${prefix}/bin/
 X+cp autojump ${prefix}/bin/
 X+cp autojump.1 ${prefix}/man/man1/
 X 
 X # autocompletion file in the first directory of the FPATH variable
 X fail=true
 X for f in $fpath
 X do
 X-    sudo cp _j $f && fail=false && break
 X+    cp _j $f && fail=false && break
 X done
 X if $fail
 X then
 X@@ -60,32 +60,3 @@
 X else
 X     echo "Installed autocompletion file to $f"
 X fi
 X-
 X-if [ -d "/etc/profile.d" ]; then
 X-    sudo cp autojump.zsh /etc/profile.d/
 X-    sudo cp autojump.sh /etc/profile.d/
 X-    echo "Remember to add the line" 
 X-    echo "    source /etc/profile.d/autojump.zsh"
 X-    echo "or"
 X-    echo "    source /etc/profile"
 X-    echo "to your ~/.zshrc if it's not there already"
 X-    echo
 X-    echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump."
 X-else
 X-    echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.zshrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
 X-    read ans
 X-    if [ ${#ans} -gt 0 ]; then
 X-	if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
 X-	    echo "" >> ~/.zshrc
 X-	    echo "#autojump" >> ~/.zshrc
 X-	    cat autojump.zsh >> ~/.zshrc
 X-            echo "Done!"
 X-            echo
 X-            echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump."
 X-	else
 X-	    echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!"
 X-	fi
 X-    else
 X-    	    echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!"
 X-    fi
 X-fi
 d02a62ee01389e4b53e4877dbeb4f3f9
 echo x - autojump/distinfo
 sed 's/^X//' >autojump/distinfo << '60a32d51eebaff511cac7ae3e366850a'
 XSHA256 (autojump_v13.tar.gz) = 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153
 XSIZE (autojump_v13.tar.gz) = 22723
 60a32d51eebaff511cac7ae3e366850a
 echo x - autojump/pkg-descr
 sed 's/^X//' >autojump/pkg-descr << 'af87931262491898c6ab1cc3c3ddac55'
 XAutojump is a tool that acts as a complement to cd: it makes navigating your
 Xfilesystem a lot faster. It works by automagically maintaining a database of
 Xthe directories you use the most from the command line, and allows you to jump
 Xback and forth between them, by typing just a few letters of the name of the
 Xdirectory you want to jump to.
 X
 XWWW: http://github.com/joelthelion/autojump/wiki
 af87931262491898c6ab1cc3c3ddac55
 echo x - autojump/pkg-deinstall
 sed 's/^X//' >autojump/pkg-deinstall << '8202d45a1a2656e1318046a72bd04ea7'
 X#!/bin/sh
 X
 Xcase $2 in
 XPOST-DEINSTALL)
 X	rm -f /etc/profile.autojump
 X	rm -f /etc/zshrc.autojump
 X	# delete the source (.) line from the /etc/profile and /etc/zshrc
 X	if [ -f /etc/profile ] ; then 
 X            sed -i '' -e '/profile.autojump/d' /etc/profile
 X        fi
 X        if [ -f /etc/zshrc ] ; then
 X	    sed -i '' -e '/zshrc.autojump/d' /etc/zshrc
 X        fi
 X	;;
 Xesac
 8202d45a1a2656e1318046a72bd04ea7
 echo x - autojump/pkg-message
 sed 's/^X//' >autojump/pkg-message << '0c84fd6d3e4beddb2ab714012913806a'
 X**************************************************************
 X* AutoJump installed
 X**************************************************************
 X* Note: Your /etc/profile was changed for this installation.
 X* changes will be reverted when you un-install the package. 
 X**************************************************************
 0c84fd6d3e4beddb2ab714012913806a
 echo x - autojump/Makefile
 sed 's/^X//' >autojump/Makefile << '64238b552e4fe3c222efa4fdde5e5897'
 X# New ports collection makefile for:  autojump
 X# Date created:        12 October 2011
 X# Whom:                Neeraj Verma <neeraj.verma.ports@vermatech.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	autojump
 XPORTVERSION=	13
 XCATEGORIES=	sysutils
 XMASTER_SITES=	http://cloud.github.com/downloads/joelthelion/autojump/ \
 X		http://www.vermatech.com/distfiles/
 XDISTNAME=	autojump_v${PORTVERSION}
 XEXTRACT_SUFX=	.tar.gz
 X
 XMAINTAINER=	neeraj.verma.ports@vermatech.com
 XCOMMENT=	Autojump is a tool that acts as a complement to cd
 X
 XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
 X
 XUSE_PYTHON_RUN=	YES
 X
 XNO_BUILD=	YES
 X
 XSUB_FILES+=	pkg-install
 X
 XPLIST_FILES=	bin/autojump \
 X		bin/jumpapplet \
 X		share/autojump/autojump.bash \
 X		share/autojump/autojump.zsh \
 X		share/autojump/icon.png
 XMAN1=		autojump.1
 X
 XOPTIONS=	ZSH "Install zsh version as well." On
 X
 X.include <bsd.port.options.mk>
 X
 X.if defined(WITH_ZSH)
 XRUN_DEPENDS+=	${LOCALBASE}/bin/zsh:${PORTSDIR}/shells/zsh
 XPLIST_FILES+=	 share/zsh/site-functions/_j
 X.endif
 X
 XPLIST_DIRS=	share/autojump
 X
 Xpost-patch:
 X	@${REINPLACE_CMD} 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/autojump
 X	@${REINPLACE_CMD} -e 's|/usr$$|${PREFIX}|' -e 's|/usr/local|${PREFIX}|' -e 's|/bin/bash|${PREFIX}/bin/bash|' ${WRKSRC}/install.sh
 X	@${REINPLACE_CMD} -e 's|/usr$$|${PREFIX}|' -e 's|/usr/local|${PREFIX}|' -e 's|/bin/zsh|${PREFIX}/bin/zsh|' ${WRKSRC}/install.zsh
 X
 Xdo-install:
 X.if defined(WITH_ZSH)
 X	@(cd ${INSTALL_WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./install.zsh )
 X.else
 X	@(cd ${INSTALL_WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./install.sh )
 X.endif
 X	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 X
 Xpost-install:
 X	@${CAT} ${PKGMESSAGE}
 X
 X.include <bsd.port.mk>
 64238b552e4fe3c222efa4fdde5e5897
 exit
 
 
 --=-dQ9MSHGFKxu/3WCCdX1q--
 
State-Changed-From-To: feedback->closed 
State-Changed-By: stephen 
State-Changed-When: Mon Apr 30 03:29:50 UTC 2012 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151467 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/151467: commit references a PR
Date: Mon, 30 Apr 2012 03:28:54 +0000 (UTC)

 stephen     2012-04-30 03:28:38 UTC
 
   FreeBSD ports repository
 
   Modified files:
     sysutils             Makefile 
   Added files:
     sysutils/autojump    Makefile distinfo pkg-deinstall pkg-descr 
                          pkg-message 
     sysutils/autojump/files patch-install.sh patch-install.zsh 
                             pkg-install.in 
   Log:
   - New port sysutils/autojump
   
   Autojump is a tool that acts as a complement to cd: it makes navigating your
   filesystem a lot faster. It works by automagically maintaining a database of
   the directories you use the most from the command line, and allows you to jump
   back and forth between them, by typing just a few letters of the name of the
   directory you want to jump to.
   
   PR:             ports/151467
   Submitted by:   Neeraj Verma <neeraj.verma.ports@vermatech.com>
   
   Revision  Changes    Path
   1.1397    +1 -0      ports/sysutils/Makefile
   1.1       +61 -0     ports/sysutils/autojump/Makefile (new)
   1.1       +2 -0      ports/sysutils/autojump/distinfo (new)
   1.1       +68 -0     ports/sysutils/autojump/files/patch-install.sh (new)
   1.1       +65 -0     ports/sysutils/autojump/files/patch-install.zsh (new)
   1.1       +14 -0     ports/sysutils/autojump/files/pkg-install.in (new)
   1.1       +15 -0     ports/sysutils/autojump/pkg-deinstall (new)
   1.1       +7 -0      ports/sysutils/autojump/pkg-descr (new)
   1.1       +6 -0      ports/sysutils/autojump/pkg-message (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
