copy src and ports

copy src and ports

Post by JK » Sat, 19 Oct 2002 06:04:17



I've just downloaded the source and ports for OpenBSD 3.1 stable through
anoncvs. Can  I copy the two directories ( /src/ snd /ports/ ) over to
another OBSD31 machine (also fresh install) and then rebuild the kernel and
binaries (on both machines) or do I need to fetch the source again using
anoncvs for the other computer?
regards

JK

 
 
 

copy src and ports

Post by Harry Pehkon » Sat, 19 Oct 2002 14:17:45


Quote:> I've just downloaded the source and ports for OpenBSD 3.1 stable through
> anoncvs. Can  I copy the two directories ( /src/ snd /ports/ ) over to
> another OBSD31 machine (also fresh install) and then rebuild the kernel and
> binaries (on both machines)

You got it!

The /usr/src stuff stays fairly clean.  After a recompile, you'll find
that the only new files created will be at
/usr/src/sys/arch/${ARCH}/compile/ (such as, and I think limited to,
GENERIC, RAMDISK, RAMDISKB, RAMDISKC, RAMDISK_CD (I think you need to
create a release for the last 4)).  The effect of leaving those in
there is the message you get in dmesg:  ``OpenBSD 3.2 (GENERIC) #3:
Thu Oct 10 21:48:45 PDT 2002''.  If I delete the GENERIC stuff, the
next recompile will result in ``OpenBSD ... #1 ...'' instead of #4.

The /usr/ports stuff will get somewhat dirty fairly fast if you are
constantly making new ports and updating with cvs -- nothing that
stops it from working in the other computer, though.  For a home user
who just wants it to work, I don't see a problem.

Sorry -- I'm babbling.  In short, it should be fine.

Enjoy!
Harry.

 
 
 

1. Shell script - Copy files from Src to Dst from a sample test file

Hi Gurus,
I am trying to cp files from source to destination from file test but
somehow it doesn't work.
Here is my sample test file:
cat Sample
----------------------------------------------------------------------
/store/sharedstore/03-02-03-08-20-47/file1.doc
/store/sharedstore/03-02-03-08-20-47/file2.doc
/store/sharedstore/03-02-03-08-20-47/test1.doc
/store/sharedstore/03-02-03-08-20-47/test2.doc
/store/sharedstore/03-02-03-08-20-47/sample1.doc
/store/sharedstore/03-02-03-08-20-47/smple2.dwg
-------------------------------------------------------------------------
I have to copy files from Sample file say
/store/sharedstore/03-02-03-08-20-47/file1.doc to another location
/Backupstore/sharedstore/03-02-03-08-20-47/file1.doc and so on...
The destination location changes only the first mount point.

Any Help is greatly appreciated.
Regards

#!/bin/ksh

filename=Sample

# Check if we can read the file ...

if [ ! -r "$filename" ]; then
 echo "Cannot read $filename."
 exit 1
fi;

if [ -f makedirs ]
then
rm makedirs
fi

for line in `cat $filename`
do
srcfile=`echo $line`
destpath=`dirname $line`
echo $destpath >>makedirs
sed 's/\/store/\/pstore/' makedirs > dirs
cat dirs | while read file
        do
        if [ ! -d  "$file" ]
        then
        echo "mkdir -p $file"
        fi
        echo "cp $srcfile $file"
        done

#cp $srcfile $destfile
done

2. Apache RewriteRule problem

3. Matrox Mystique ands X.

4. Sponge is monitoring this group!!!!

5. Serial port to serial port copying software

6. Making MSIE5.1/OS X work with PINE?

7. making from src - /usr/src/lib/csu/i386

8. Install doesn't load... Reboots.

9. cvs commit: src/include pthread_np.h src/lib/libc_r/uthread Makefile.inc uthread_main_np.c

10. cvs commit: src/include pthread_np.h src/lib/libc_r/uthread

11. Compiling Python Imaging .src.rpm (was compiling .src.rpms)

12. oops, unpacked src.tr.gz in /usr not /usr/src

13. CUPS from Ports working, cups from src not