ports/151467: New port: sysutils/autojump acts as a complement to cd

Neeraj Verma neeraj.verma.ports at vermatech.com
Fri Oct 15 03:30:11 UTC 2010


>Number:         151467
>Category:       ports
>Synopsis:       New port: sysutils/autojump acts as a complement to cd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 15 03:30:10 UTC 2010
>Closed-Date:
>Last-Modified:
>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 at 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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list