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`

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.