12.2. `WRKDIR`
Prev | Chapter 12. Dos and Don'ts | Next

## 12.2. `WRKDIR`

Do not write anything to files outside `WRKDIR`. `WRKDIR` is the only place that is guaranteed to be writable during the port build (see installing ports from a CDROM for an example of building ports from a read-only tree). If you need to modify one of the `pkg-`*`` files, do so by redefining a variable, not by writing over it.

Prev | Up | Next
Chapter 12. Dos and Don'ts | Home | 12.3. `WRKDIRPREFIX`

This, and other documents, can be downloaded from http://ftp.FreeBSD.org/pub/FreeBSD/doc/

For questions about FreeBSD, read the documentation before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.