Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Jan 2001 10:36:36 -0500
From:      "Andresen,Jason R." <jandrese@mitre.org>
To:        Steven <steven@trance.org>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Ports question
Message-ID:  <3A549884.CCFFDB20@mitre.org>
References:  <NEBBLBKNKLDHDLHHPODBMEKICKAA.steven@trance.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Steven wrote:
> 
> Hi,
> 
> I want to install the port /usr/ports/graphics/vid but i am running 4.1
> which doesn't have this particular port in its ports distribution.
> 
> I checked on the site and it exists in the listing, so I assume that it is
> something which was introduced in version 4.2. The machine no longer has
> access to the internet via a fast network connection (now it just has a
> 28,8k modem), so downloading the latest ports distribution is not a viable
> option just for one program.
> 
> Is it possible for someone with 4.2 to tar this directory, then for me to
> untar it and for it to work without problems?

You can just FTP it yourself.

Heck back when I was on a modem, I even wrote a small script to do this
automatically (although it doesn't fetch the newest dependancies, so you
have to be careful).
---------------- Cut Here
-----------------------------------------------------
#!/usr/local/bin/zsh

PWD=`pwd`

if [[ "$1" == "" ]]
then
        echo "updateport portname"
        echo "You must be in the correct part of the ports tree"
        exit 1
fi

if [[ -z "`echo $PWD | grep /usr/ports/`" ]]
then
        echo "updateport portname"
        echo "You must be in the correct part of the ports tree"
        exit 2
fi

if [[ -d $1.old ]]
then
        sudo rm -rf $1.old
fi

if [[ -d $1 ]]
then
        sudo mv $1 $1.old
fi

DIR=`echo $PWD | sed 's/\/usr\/ports\///'`
DIST="/pub/FreeBSD/ports/ports-current/$DIR/$1.tar"
CMD="ncftpget"
#URL="ftp://ftp.freesoftware.com$DIST"
URL="ftp://ftp.freebsd.org$DIST"

# Get the file
sudo $CMD $URL

if [[ "$?" != "0" ]]
then
        sudo mv $1.old $1
else
        sudo tar -xvf $1.tar
fi
-------------------------------------------------------------------------------
It's not the best, but it gets the job done

-- 
   _  _    _  ___  ____  ___   ______________________________________
  / \/ \  | ||_ _||  _ \|___| | Jason Andresen -- jandrese@mitre.org
 / /\/\ \ | | | | | |/ /|_|_  | Views expressed may not reflect those 
/_/    \_\|_| |_| |_|\_\|___| | of the Mitre Corporation.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A549884.CCFFDB20>