In Section 3.4 of the Porter's Handbook, Procedure 3.1, step 6: I could not figure out how to make the pkg-add test step work. The step specifies a generic <package-filename>, which was not clear. I found a likely candidate in the work directory, but referencing it did not work. Perhaps I needed to specify a path. I perused Section 8 of the manual, but did not find an obvious solution. I am testing on FreeBSD 10.2, release, amd64. Thanks! https://www.freebsd.org/doc/en/books/porters-handbook/book.html#porting-testing
This is in the procedure for creating a new port, "short version". package-filename will be the value of PKGFILE: portsjail% cd www/apache24 portsjail% make -V PKGFILE /home/linimon/ports/www/apache24/apache24-2.4.25_1.txz Of course, it doesn't need the whole path. Next, please don't make an old fellow like me nervous by saying 'pkg-add'. That was our old system. The command you will want is 'pkg add' (no dash).
I removed the pkg add step. It was an old step that has not been needed ever since staging came along.
A commit references this bug: Author: mat Date: Fri Aug 4 13:42:28 UTC 2017 New revision: 50635 URL: https://svnweb.freebsd.org/changeset/doc/50635 Log: Remove the pkg add step. The package is already installed in the make install step. PR: 218311 Reported by: Steve Jacobson Stolen from: linimon Sponsored by: Absolight, The FreeBSD Foundation Changes: head/en_US.ISO8859-1/books/porters-handbook/quick-porting/chapter.xml