Below you will find pages that utilize the taxonomy term “Ports”
April 18, 2009
用wget加快ports下载
"\u003cp\u003e1.安装wget\u003c/p\u003e\n\u003cp\u003e#cd /usr/ports/ftp/wget/\u003c/p\u003e\n\u003cp\u003e#make install clean\u003c/p\u003e\n\u003cp\u003e2.修改/etc/make.conf\u003c/p\u003e\n\u003cp\u003eFETCH_CMD=wget -c -t 1\u003c/p\u003e\n\u003cp\u003eDISABLE_SIZE=yes #这行是必要的,否则…\u003c/p\u003e\n\u003cp\u003e如果你要wget穿透代理服务器,请加上下面两行\u003c/p\u003e\n\u003cp\u003eFETCH_ENV=http_proxy=http://proxy2.zsu.edu.cn:3128\u003c/p\u003e\n\u003cp\u003eFETCH_ENV=ftp_proxy=http://proxy2.zsu.edu.cn:3128\u003c/p\u003e\n\u003cp\u003e或者使用其他的穿越代理工具例如proxychains 或者socks5(runsocks)\u003c/p\u003e\n\u003cp\u003e则FETCH_CMD=proxychains wget或者runsocks wget\u003c/p\u003e"
February 4, 2009
ports中的make命令的可用参数
"\u003cp\u003e我们经常使用ports来安装程序,ports中的make命令还可以有很多的功能:\u003c/p\u003e\n\u003cp\u003e引用\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003efetch\u003c/strong\u003e – Retrieves ${DISTFILES} (and ${PATCHFILES} if defined) into ${DISTDIR} as necessary.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003efetch-list\u003c/strong\u003e – Show list of files that would be retrieved by fetch.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003efetch-recursive\u003c/strong\u003e – Retrieves ${DISTFILES} (and ${PATCHFILES} if defined), for port and dependencies into ${DISTDIR} as necessary.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003efetch-recursive-list\u003c/strong\u003e – Show list of files that would be retrieved by fetch-recursive.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003efetch-required\u003c/strong\u003e– Retrieves ${DISTFILES} (and ${PATCHFILES} if defined), for port and …\u003c/p\u003e"
January 1, 2009
升级FreeBSD的ports
"\u003cp\u003eXinsoft-BSD# cp /usr/share/examples/cvsup/ports-supfile /root\u003c/p\u003e\n\u003cp\u003eXinsoft-BSD# vi /etc/make.conf\u003c/p\u003e\n\u003ch1 id=\"added-by-root-xinoft-2006-02-05-035211\"\u003eadded by root [Xinoft] 2006-02-05 03:52:11\u003c/h1\u003e\n\u003ch1 id=\"for-cvsup\"\u003efor cvsup\u003c/h1\u003e\n\u003ch1 id=\"block_cvsup--beginsup_update-yes\"\u003eBlock_CVSUP :: beginSUP_UPDATE= yes\u003c/h1\u003e\n\u003cp\u003eSUP= /usr/local/bin/cvsup\u003c/p\u003e\n\u003cp\u003eSUPFLAGS= -g -L 2# cvsup[1-9].tw.FreeBSD.org\u003c/p\u003e\n\u003cp\u003eSUPHOST= \u003ca href=\"ftp://ftp.freebsdchina.org/\"\u003eftp.freebsdchina.org\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eSUPFILE= /usr/share/examples/cvsup/stable-supfile\u003c/p\u003e\n\u003cp\u003ePORTSSUPFILE= /root/ports-supfile\u003c/p\u003e\n\u003cp\u003eDOCSUPFILE= /usr/share/examples/cvsup/doc-supfileMASTER_SITE_BACKUP?= …\u003c/p\u003e"