Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2001 01:49:29 GMT
From:      "Lanny Baron" <lnb@FreeBSDsystems.COM>
To:        Kevin G <keving@whackstar.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: CVsup'ing the Ports and Only the Ports
Message-ID:  <20010713014930.6998.qmail@panda.freebsdsystems.com>
In-Reply-To: <105102135878.20010712174741@whackstar.com> 
References:  <105102135878.20010712174741@whackstar.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Kevin,
To upgrade just your ports on a regular basis, even weekly and 
automatically, there is a few things you must do. I will assume you have a 
full time connection to the Internet in my example or that you have PPP 
 -auto set up. 

vi /usr/share/examples/cvsup/ports-supfile 

When you open that file, if you see a line that reads:
*default host=CHANGE_THIS.FreeBSD.org
change it to *default host=cvsup2.freebsd.org 

if you have a better than T-1 connection put a comment (#) on:
*default compress
so it becomes #*default compress
save the file and exit. 

Now you need a script that will automatically run at pre-determined times to 
upgrade the ports. 

Make a file called ports-upgrade, vi 
/dir/to/place-you-keep-scripts/ports-upgrade 

#!/bin/sh
cd /dir/to/place-you-keep-scripts/ports-upgrade
./ports-upgrade && \
echo "success with ports upgrade" | mail -s "HOSTNAME Ports upgraded 
successfully" keving@whackstar.com 

Save the file and exit. 

You now must make the file ports-upgrade executable. So, chmod 754 
/dir/to/place-you-keep-scripts/ports-upgrade 

Now lets say you want to upgrade every sunday morning at 4:30. 

As root, crontab -e
30 4 * * 1 /dir/to/place-you-keep-scripts/ports-upgrade > /dev/null 2>&1 

save and exit. 

Your done ;-) 

Regards,
Lanny
Kevin G writes: 

> Hello freebsd-questions, 
> 
>   What I would like to do; on a automagical (or semi-so) basis, update my
>   ports tree every 3 or 4 months. The box resides in a internet-connected
>   network. 
> 
>   I've read the manual and consulted a few other resource sites, but they (as I
>   understood them) don't really address how to do what I want to do. And had no
>   luck at all searching the mailing list archives. 
> 
>   I think I understand how to CVsup source and the tree, and then makeworld,
>   but nothing I have read deals with updating only the ports tree. I do not want
>   to go the makeworld route every 3 or 4 months. I'd prefer to do that on a as
>   needed basis at much longer intervals. 
> 
>   --
> Best regards,
>  Kevin                          mailto:keving@whackstar.com 
> 
>  
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
 


~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
Lanny Baron
And he said, Let there be light,
and FreeBSD was created and he saw
it was GOOD. He said,
Hey Kids Rock 'N' Roll FreeBSD!
Servers built with the power to Serve
http://www.FreeBSDsystems.com
1.877.963.1900 

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?20010713014930.6998.qmail>