Cvsup FreeBSD


##cara buildworld awal cvsup dulu
cd /usr/ports/net/cvsup-without-gui
make && make install && make clean
mkdir -p /usr/local/etc/cvsup/sup
ee /usr/local/etc/cvsup/sup/supfile
kopi paste text berikut :
*default host=cvsup11.FreeBSD.org (Pick a mirror near you.see the list here)
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default release=cvs tag=RELENG_6 (Use “RELENG_6_0″ for 6.0-RELEASE)
*default delete use-rel-suffix
*default compress
src-all
ports-all tag=.

Install the portupgrade
# cd /usr/ports/sysutils/portupgrade
# make && make install && make clean
ee /usr/local/bin/cvsrun
kopi paste
#! /bin/sh
# cvsrun – Weekly CVSup Run

echo “Subject: `hostname` weekly cvsup run”
/usr/local/bin/cvsup -g -L 2 /usr/local/etc/cvsup/sup/supfile
echo “”
if [ $# -eq 1 ] ; then
if [ $1 = “-i” ] ; then
/usr/local/sbin/portsdb -Uu 2>&1
echo
fi
fi
echo “”
echo “cvsrun done.”

# chmod 0700 /usr/local/bin/cvsrun

ee /usr/local/bin/portreport

#! /bin/sh
#
# portreport – Port Version Report

echo Subject: `hostname` port version report
echo Content-type: text/html
echo
echo
echo “

portversion -v

echo

echo End of Report.

echo “

# chmod 0700 /usr/local/bin/portreport

ee /etc/crontab to run CVSup setiap malam jumat

# Run cvsup every Friday night at 10:00 pm.

0 22 * * 5 root /usr/local/bin/cvsrun -i | sendmail root; /usr/local/bin/portreport | sendmail root

# /usr/local/bin/cvsrun -i

sambil menunggu kita bisa buat kopi and nyedot malboro …nikmatt

lanjut…

# /usr/local/bin/cvsrun
ee /etc/make.conf
CFLAGS= -O -pipe
COPTFLAGS= -O -pipe
NO_PROFILE= true

# cp -Rp /etc /etc.old

Remove old /usr/obj:

# cd /usr/obj
# chflags -R noschg *
# rm -rf *

# Compile the sources:

# cd /usr/src
# make buildworld

# env -i make buildworld

#cd /usr/src/sys/i386/conf
# cp GENERIC YOURKERNEL

# make kernel KERNCONF=YOURKERNEL

# shutdown -r now

ok boot -s

# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a

# cd /usr/src
# make installworld

# shutdown -r now

THE END

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: