Chinaunix

标题: make后的文件保存路径 [打印本页]

作者: sunable    时间: 2010-01-06 15:18
标题: make后的文件保存路径
用ports make install后,会产生对应package的tbz文件吗?
如果有的话,tbz文件默认路径是什么?

如果没有的话,怎么产生package文件?

[ 本帖最后由 sunable 于 2010-1-7 09:44 编辑 ]
作者: lsstarboy    时间: 2010-01-06 15:40
命令:make package

来源:man ports
作者: dooros    时间: 2010-01-06 20:26
学习了 。
作者: sunable    时间: 2010-01-07 09:48
FreeBSD 8.0已经安装nginx.
再运行
cd /usr/ports/www/nginx
make package
在/usr/ports/packages(自己手工创建的文件夹)中并没有发现tbz文件。

[ 本帖最后由 sunable 于 2010-1-7 09:50 编辑 ]
作者: lsstarboy    时间: 2010-01-07 10:30
默认在你所在的ports目录下,除非你设置了PKGDIR参数(好像是这个,记不准确了)。

注:记错了,这个是编译时候用的。

[ 本帖最后由 lsstarboy 于 2010-1-7 10:35 编辑 ]
作者: lsstarboy    时间: 2010-01-07 10:31
这个是准确的:
man ports

package          Make a binary package for the port.  The port will be
                      installed if it has not already been.  The package is a
                      .tbz file that you can use to install the port on other
                      machines with pkg_add(1).  If the directory specified by
                      PACKAGES does not exist, the package will be put into
                      the current directory.  See PKGREPOSITORY and PKGFILE.

ENVIRONMENT
     You can change all of these.

     PORTSDIR      Location of the ports tree.  This is /usr/ports on FreeBSD
                   and OpenBSD, and /usr/pkgsrc on NetBSD.

     WRKDIRPREFIX  Where to create any temporary files.  Useful if PORTSDIR is
                   read-only (perhaps mounted from a CD-ROM).

     DISTDIR       Where to find/put distfiles, normally distfiles/ in
                   PORTSDIR.

     PACKAGES      Used only for the package target; the base directory for
                   the packages tree, normally packages/ in PORTSDIR.  If this
                   directory exists, the package tree will be (partially) con-
                   structed.  This directory does not have to exist; if it
                   does not, packages will be placed into the current direc-
                   tory, or you can define one of

                   PKGREPOSITORY  Directory to put the package in.

                   PKGFILE        The full path to the package.

[ 本帖最后由 lsstarboy 于 2010-1-7 10:34 编辑 ]




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2