Chapter 3. ¦p¦ó¨ú±o¤¤¤å³nÅé

Table of Contents
3.1. ¤¤¤å³nÅ鯸¥x
3.2. µ½¥ÎÀÉ®×·j´M¨t²Î(archie)

½Ð°Ñ¦Ò ¦w¸ËÀ³¥Î³nÅé¡GThe Ports collection¡C

¦b¦w¸Ë³nÅé«e¡A³Ì¦n¥ý§ó·s Ports Tree¡A¦b¦¹´£¨Ñµ§ªÌ¹ï©ó Ports ªº³]©w¡A «ØÄ³¥ý¥Ñ¦w¸Ë¥úºÐ¤¤¿ï¾Ü Ports Collection ¥ý¦w¸Ë¦n«á¡A ¦A¨Ó§ó·s Ports Tree¡A³o¼Ë¤l§ó·sªº®É¶¡·|¤ñ¸ûµu¡A ¦w¸Ë¦n°ò¥»ªº Ports Tree «á¡A¦w¸Ë cvsup-devel¡AµM«á§ó·s Ports Tree «á¡A ´N¥i¥H¥Î make install ¨Ó¦w¸Ë©Ò¦³³Ì·sªº³nÅéÅo¡C

    # cd /usr/ports/net/cvsup-devel
    # make -DWITHOUT_X11 install

±µµÛ³]©w¦n /etc/make.conf¡C

    SUP_UPDATE=    yes
    SUP=        /usr/local/bin/cvsup
    SUPFLAGS=   -g -L 2
    #
    # SUPHOST ¥Nªí­n¨ì­þ¥x CVSup¡A½Ð§ï¦¨Â÷±z¤ñ¸ûªñªº Server¡C
    SUPHOST=    cvsup.tw.FreeBSD.org
    #
    # ¦pªG±z¬O¥Î -stable¡A½Ð¥Î stable-supfile (¥Ø«eªº -stable ¬O 4.3)
    # ¦pªG±z¬O¥Î -current¡A½Ð¥Î standard-supfile (¥Ø«eªº -current ¬O 5.0)
    SUPFILE=    /usr/share/examples/cvsup/stable-supfile
    PORTSSUPFILE=   /usr/share/examples/cvsup/ports-supfile
    DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile
       

±µµÛ´N¨ì /usr/ports ©³¤U¿é¤J make update¡A´N·|¶}©l§ó·sªº°Ê§@¤F¡C

¦pªGµLªk¨ú±o cvsup-bin¡A¥i¥H¿é¤J¥H¤Uªº«ü¥O¨ú±o¨Ã¦w¸Ë¡C

    # fetch ftp://ftp.tw.freebsd.org/pub/CVSup/CVSup-bin.tgz
    # pkg_add CVSup-bin.tgz
       

¦pªG¤£·Q³]©w /etc/make.conf¡A ¤]¥i¥H°õ¦æ cvsup -g -L 2 -h cvsup.tw.FreeBSD.org /usr/share/examples/cvsup/ports-supfile ¹F¦¨¦P¼Ëªº®ÄªG¡C

3.1. ¤¤¤å³nÅ鯸¥x

¦pªG¦³ºô¸ôªº¸Ü¡A¨º»ò¦w¸Ë³nÅé¹ï FreeBSD ¦Ó¨¥±N¬O¤@¥ó«D±`®e©öªº¨Æ±¡¡A ¥u­n­×§ï /etc/make.conf «ü¦V¤@¨Ç°ê¤º¸û¤jªº FreeBSD mirror ¯¸¥x¡A¦ÛµM´N·|À°±z§ä¨ì±z­nªº³nÅé¡C

    MASTER_SITE_BACKUP?=    \
        ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
        ftp://ftp2.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
        ftp://ftp3.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
        ftp://ftp4.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
        ftp://ftp5.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
        ftp://ftp7.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
        ftp://ftp8.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
        ftp://ftp9.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/
    MASTER_SITE_OVERRIDE?=  ${MASTER_SITE_BACKUP}

ftp6.tw.freebsd.org ¥Ø«e¤£´£¨Ñ distfiles¡C

µM«á¦A¨ì±z­nªº ports ¤¤¥´¤J make install ³o¼Ë¦w¸Ë³nÅé´N¤£·|¶]¨ì°ê¥~¥h§ìÀɮפF¡C