[prev in list] [next in list] [prev in thread] [next in thread] 

List:       crux
Subject:    Would like new functionality in ports.
From:       Magnus Boden <mb () ozaba ! cx>
Date:       2002-06-23 21:10:05
[Download RAW message or body]

Hello,

Below is a patch to the ports command.


25a26,27
> source /etc/ports.conf
> 
44c46,48
<     (cd $ROOT && cvsup $OPT_PASSIVE -g -L 1 -r 0 -c .sup /etc/ports/supfile)
---
>     for i in $SOURCES; do
>         (cd $ROOT && cvsup $OPT_PASSIVE -g -L 1 -r 0 -c .sup /etc/ports/$i.supfile)
>     done
71,75c75,81
< 	    port_version=`cd $ROOT/$port; . Pkgfile; echo $version-$release`
< 	    if [ "$installed_version" != "$port_version" ]; then
< 		echo "${port%/*} $package $port_version $installed_version" >> $output
< 		found_diff="yes"
< 	    fi
---
> 	    for p in $port; do
> 	        port_version=`cd $ROOT/$p; . Pkgfile; echo $version-$release`
> 	        if [ "$installed_version" != "$port_version" ]; then
> 		    echo "${p%/*} $package $port_version $installed_version" >> $output
> 		    found_diff="yes"
> 	        fi
>             done

And this is the /etc/ports.conf

#
# /etc/ports.conf: ports(8) configuration
#

SOURCES="crux tantoine"

# End of file

As you can guess I have renamed /etc/ports/supfile to
/etc/ports/crux.supfile and I have my own supfile called
tantoine.supfile.

Like I guess most of you crux users do, I and my friends have our own cvs
repository for packages not in per's repository or for packages that
isn't compiled with the same flags as we would like (mutt --enable-imap
for example).

The answer isn't to include these packages in per's cvs because some
packages are for our own applications that are of interest only to us.

This feels like a simple solution that could be included in the ports
command, please comment on this Per.




for p in $ports; do
   blaha
done

Is because if the same package exists in diffrent directories
(base,myowndir) then ports -d breaks.

Regards
Magnus

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic