接下來,必須檢驗是否有符合 port 的遊戲規則,包括打包該 port 為 package。 以下有幾個需要確認的重要地方:
若該 port 沒裝的東西,不要列在 pkg-plist
內。
若該 port 有裝的東西,請務必列在 pkg-plist
內。
The port can be installed using the
install
target. This verifies
that the install script works correctly.
The port can be deinstalled properly using the
deinstall
target. This
verifies that the deinstall script works correctly.
The port does not access network resources after the
fetch
target. This is important
for package builders, such as ports-mgmt/poudriere.
Make sure that make package
can be
run as a normal user (that is, not as
root
). If that
fails, NEED_ROOT=yes
must be added to
the port Makefile
.
make stage
make check-orphans
make package
make install
make deinstall
pkg add
package-filename
make package
(as user)
確認在任何階段都沒有任何警告出現。
Thorough automated testing can be done with
ports-mgmt/tinderbox or
ports-mgmt/poudriere from the
Ports Collection. These applications maintain
jails
where all of the steps shown above
can be tested without affecting the state of the host
system.
本文及其他文件,可由此下載: ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/。
若有 FreeBSD 方面疑問,請先閱讀
FreeBSD 相關文件,如不能解決的話,再洽詢
<questions@FreeBSD.org>。
關於本文件的問題,請洽詢
<doc@FreeBSD.org>。