Home arrow Journal arrow Ignore some directories when doing cvsup to ports tree
Ignore some directories when doing cvsup to ports tree PDF
Monday, 16 April 2012
If you want to sync ports tree but you do not want to sync some directories from /usr/ports, for example /usr/ports/japanese, if you are a non-Japanese spoker and you are not interested in having an updated version of that directory, you could use a refuse file.

If we want only English ports we will run from command line the following commands:

  echo "doc/bn_*" >>refuse
  echo "doc/da_*" >>refuse
  echo "doc/de_*" >>refuse
  echo "doc/el_*"  >>refuse
  echo "doc/es_*" >>refuse
  echo "doc/fr_*" >>refuse
  echo "doc/hu_*" >>refuse
  echo "doc/id_*" >>refuse
  echo "doc/it_*" >>refuse
  echo "doc/ja_*" >>refuse
  echo "doc/mn_*" >>refuse
  echo "doc/nl_*" >>refuse
  echo "doc/no_*" >>refuse
  echo "doc/pl_*" >>refuse
  echo "doc/pt_*" >>refuse
  echo "doc/ro_*" >>refuse
  echo "doc/ru_*" >>refuse
  echo "doc/sr_*" >>refuse
  echo "doc/tr_*" >>refuse
  echo "doc/zh_*" >>refuse
  echo "ports/arabic" >>refuse
  echo "ports/chinese" >>refuse
  echo "ports/french" >>refuse
  echo "ports/german" >>refuse
  echo "ports/hebrew" >>refuse
  echo "ports/hungarian" >>refuse
  echo "ports/japanese" >>refuse
  echo "ports/korean" >>refuse
  echo "ports/polish" >>refuse
  echo "ports/portuguese" >>refuse
  echo "ports/russian" >>refuse
  echo "ports/ukrainian" >>refuse
  echo "ports/vietnamese" >>refuse

  cp refuse /usr/sup/


Note that last line copies the refuse file to /usr/sup.

(Note that some would create /var/db/sup and will copy refuse file there).

Then when we will run:

  csup -Ls cvs-supfile

the previous directories will be ignored when doing csup process.

Here is an example of cvs-supfile that you will need, that updates kernel, world and ports:

cvs-supfile
# ------------- cvs-supfile --------------
*default host=cvsup11.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs
*default delete use-rel-suffix
*default tag=RELENG_9_0
*default compress
src-all
ports-all tag=.
# ------------ end cvs-supfile ----------


Last Updated ( Sunday, 29 April 2012 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?