cvsup-without-gui - обновляем систему
Процедура очень простая.
/usr/ports# make fetchindex
# cd /usr/ports/net/cvsup-without-gui
make install clean
при возникновении вопросов от libiconv выбрал все два пункта :). Вместе с необходимым установился и могучий язык Модула на котором написана эта утилитка.
===> Compressing manual pages for cvsup-without-gui-16.1h_3
===> Registering installation for cvsup-without-gui-16.1h_3
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/sbin/cvsupd
/usr/local/bin/cvsup
/usr/local/bin/cvpasswd
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
http://www.cvsup.org/
===> Cleaning for ezm3-1.2_1
===> Cleaning for gmake-3.81_2
===> Cleaning for gettext-0.16.1_3
===> Cleaning for libtool-1.5.24
===> Cleaning for libiconv-1.11_1
===> Cleaning for cvsup-without-gui-16.1h_3
site#
копируем конфиг в /usr/local/etc/
#cp /usr/share/examples/cvsup/standard-supfile /usr/local/etc/supfile
site# ee /usr/local/etc/supfile
отсюда беру сервер обновления исходных кодов и устанавливаю
*default host=cvsup5.ua.FreeBSD.org
ЗЫ сервера: Украина (на момент написания)cvsup2.ua.FreeBSD.org
cvsup3.ua.FreeBSD.org
cvsup5.ua.FreeBSD.org
cvsup6.ua.FreeBSD.org
cvsup7.ua.FreeBSD.org
выбираем любой из серверов. вот мы и все и установили и настроили. теперь обновимся
site# /usr/local/bin/cvsup -g -L 2 /usr/local/etc/supfile
Parsing supfile "/usr/local/etc/supfile"
Connecting to cvsup4.ua.FreeBSD.org
Connected to cvsup4.ua.FreeBSD.org
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Updating collection src-all/cvs
Edit src/UPDATING
Add delta 1.507.2.3.2.5 2008.04.16.23.58.52 cperciva
Add delta 1.507.2.3.2.6 2008.06.19.06.36.10 cperciva
Add delta 1.507.2.3.2.7 2008.07.13.18.42.38 cperciva
SetAttrs src/usr.bin/lex/mkskel.sh,v
SetAttrs src/usr.sbin/pkg_install/tkpkg,v
Shutting down connection to server
Finished successfully
site#
доп. литература:
Официальная документация FreeBSD
Есть такая статейка небольшая. В отличии от описаной процедуры я ничего не правил в конфигах кроме сервера обновлений.
- Войдите на сайт для отправки комментариев
пример скрипта
пример скрипта
# cat /root/bin/cvsupdate.sh============================
#!/bin/sh
PORTSDIR=/usr/ports
SRCDIR=/usr/src
CVSPORTS=/usr/share/examples/cvsup/ports-supfile
CVSSRC=/usr/share/examples/cvsup/standard-supfile
CVSUPCMD=/usr/local/bin/cvsup
# portsupdate
cd $PORTSDIR
$CVSUPCMD $CVSPORTS && make fetchindex
rm $PORTSDIR/*.bz*
echo "Ports updated" | mail -s "Ports updated" root@localhost
# srcupdate
cd $SRCDIR
$CVSUPCMD $CVSSRC
echo "System sources updated" | mail -s "System sources updated" root@localhost
============================
cat /etc/crontab | grep cvsupdate.sh
30 6 * * * root /root/bin/cvsupdate.sh