diff --git a/en_US.ISO8859-1/books/porters-handbook/book.xml b/en_US.ISO8859-1/books/porters-handbook/book.xml index 5c9cec6bc9..b1ab5966fa 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.xml +++ b/en_US.ISO8859-1/books/porters-handbook/book.xml @@ -2225,7 +2225,10 @@ PORTEPOCH= 1 Ports which install loadable kernel modules should have the virtual category kld in - their CATEGORIES line. + their CATEGORIES line. This is one + of the things handled automatically by adding + kmod to the USES + line. @@ -5322,27 +5325,8 @@ PORTVERSION= 1.0 Ports that install kernel modules must prepend the STAGEDIR variable to - their default destination, /boot/modules. Then the - pre-install target can be used to handle - the creation of this directory: - - pre-install: - ${MKDIR} ${STAGEDIR}/boot/modules - - &man.kldxref.8; should not be run when installing to - the temporary staging directory. To prevent this, define - theNO_XREF variable and add it - to MAKE_ENV in the port's - Makefile: - - MAKE_ENV+= KMODDIR=/boot/modules NO_XREF=yes - The hints files for the kernel loader should - be regenerated only when the package is installed or - deinstalled. Do this by invoking &man.kldxref.8; from - pkg-plist: - - @unexec kldxref /boot/modules -@exec kldxref /boot/modules + their destination, by default + /boot/modules. @@ -10046,9 +10030,11 @@ GROUPS= pulse pulse-access pulse-rt correct way to determine if the user has them installed: - .if !exists(${SRC_BASE}/sys/Makefile) -IGNORE= requires kernel sources to be installed -.endif + USES= kmod + + Apart from this check, the kmod feature + takes care of most items that these ports need to take into + account. @@ -11988,11 +11974,6 @@ exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/foo.jar "$@" &os; - - requires &os; kernel sources to build, but the - user does not have them installed - - has a distfile which may not be automatically fetched due to licensing restrictions