From owner-svn-doc-head@FreeBSD.ORG Fri Nov 8 20:13:40 2013 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 69155934; Fri, 8 Nov 2013 20:13:40 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 477E62E79; Fri, 8 Nov 2013 20:13:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA8KDeAp033960; Fri, 8 Nov 2013 20:13:40 GMT (envelope-from rene@svn.freebsd.org) Received: (from rene@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA8KDein033959; Fri, 8 Nov 2013 20:13:40 GMT (envelope-from rene@svn.freebsd.org) Message-Id: <201311082013.rA8KDein033959@svn.freebsd.org> From: Rene Ladan Date: Fri, 8 Nov 2013 20:13:40 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r43145 - head/en_US.ISO8859-1/books/porters-handbook X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2013 20:13:40 -0000 Author: rene Date: Fri Nov 8 20:13:39 2013 New Revision: 43145 URL: http://svnweb.freebsd.org/changeset/doc/43145 Log: Update for USES=kmod, most notably: - simplify the part on staging kernel module ports - rewrite the parts on checking for kernel sources Approved by: remko (mentor) Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/book.xml Fri Nov 8 15:56:47 2013 (r43144) +++ head/en_US.ISO8859-1/books/porters-handbook/book.xml Fri Nov 8 20:13:39 2013 (r43145) @@ -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 - .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. @@ -11989,11 +11975,6 @@ exec %%LOCALBASE%%/bin/java -jar %%DATAD - 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