8.5. Changing the names of `pkg-`*`` files
前一頁 | 章 8. The `pkg-`*`` files | 下一頁

## 8.5. Changing the names of `pkg-`*`` files

All the names of `pkg-`*`` files are defined using variables so you can change them in your `Makefile` if need be. This is especially useful when you are sharing the same `pkg-`*`` files among several ports or have to write to one of the above files (see writing to places other than `WRKDIR` for why it is a bad idea to write directly into the `pkg-`*`` subdirectory).

Here is a list of variable names and their default values. (`PKGDIR` defaults to `${MASTERDIR}`.)

Variable | Default value
--- | ---
`DESCR` | `${PKGDIR}/pkg-descr`
`PLIST` | `${PKGDIR}/pkg-plist`
`PKGINSTALL` | `${PKGDIR}/pkg-install`
`PKGDEINSTALL` | `${PKGDIR}/pkg-deinstall`
`PKGREQ` | `${PKGDIR}/pkg-req`
`PKGMESSAGE` | `${PKGDIR}/pkg-message`

Please change these variables rather than overriding `PKG_ARGS`. If you change `PKG_ARGS`, those files will not correctly be installed in `/var/db/pkg` upon install from a port.

前一頁 | 上一層 | 下一頁
8.4. `pkg-req` | 起始頁 | 8.6. Making use of `SUB_FILES` and `SUB_LIST`

本文及其他文件，可由此下載： ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/。

若有 FreeBSD 方面疑問，請先閱讀 FreeBSD 相關文件，如不能解決的話，再洽詢 <questions@FreeBSD.org>。
關於本文件的問題，請洽詢 <doc@FreeBSD.org>。