Commit graph

13 commits

Author SHA1 Message Date
Rene Ladan
106810bf8f Remove support for unstaged ports.
Approved by:	bapt
2014-01-31 18:00:55 +00:00
Rene Ladan
be728bc0bb - kernel modules support SSP natively, so change the description
of SSP_UNSAFE [1]
- take advantage of rmdir -p to remove nested instances of KMODDIR if
  empty.  Some ports have KMODDIR=dir1/dir2

Submitted by:	antoine [1]
Approved by:	portmgr (bapt)
2014-01-24 23:08:17 +00:00
Baptiste Daroussin
b420248356 Properly add targets to the sequence they belong to, that now makes them predictable 2014-01-04 00:26:03 +00:00
Alexey Dokuchaev
32bb1cf264 Traditionally, most (if not all) tamperings with ${TMPPLIST} were done
silently within the ports (similar to extraction and patching phases).

Recently introduced Mk/Uses/kmod.mk does some grunt work for pkg-plist,
like @[un]exec /usr/sbin/kldxref ... stuff via ${ECHO_CMD}, which makes
build logs less neat.  Mute them and MKDIR, remove an extra whitespace,
and wrap one overly long line.

Approved by:	rene
2013-12-25 16:43:24 +00:00
Baptiste Daroussin
d93584fc42 Define the target in post section.
Remove the PHONY kmod-pre-install target and replace it with a real file target (well directory in this case)

Approved by:	rene
2013-11-20 12:43:29 +00:00
Baptiste Daroussin
8635d31369 Mark some targets .PHONY 2013-11-20 07:29:08 +00:00
Rene Ladan
af3e639e7d Do not try to remove /boot/modules, it is part of BSD.root.dist [1]
While here unquote an instance of /boot/modules.
Submitted by:	antoine [1]
2013-11-12 19:44:50 +00:00
Rene Ladan
dc28effcb6 Fix with bmake which requires KMODDDIR to be defined before use.
Submitted by:	marino
2013-11-12 11:40:54 +00:00
Rene Ladan
a850c2461f Change KMODDDIR to /boot/modules if it is set to /boot/kernel
This allows upgrading a kernel without breaking any installed kernel ports
because during the upgrade /boot/kernel is renamed to /boot/kernel.old ,
resulting in moved files.

While /boot/modules is the default, it might be overridden by bsd.own.mk to
/boot/kernel before kmod is included, so setting MODULES_WITH_WORLD has no
effect.
2013-11-08 09:44:24 +00:00
Rene Ladan
c61a61be20 Using stage does not magically enforce the use of sane package tools, so
always use the "@unexec rmdir" form in TMPPLIST.  @dirrmtry lines are
substituted with this in bsd.port.mk, but only when generating TMPPLIST.

While here update the description in the header.

Submitted by:	QAT for commit r332642 (8.4-QAT/i386)
2013-11-04 09:30:22 +00:00
Rene Ladan
7d59899f0c Use @unexec rmdir instead of @dirrmtry in the NO_STAGE case.
Submitted by:	vsevolod via IRC
2013-11-03 22:51:56 +00:00
Rene Ladan
4df4cd508b Make sure that kldxref(8) is not run when installing into the staging
directory to prevent orphaned linker.hints files.

Obtained from:	Porters Handbook section 6.1
2013-11-03 19:41:58 +00:00
Rene Ladan
4d17670e3d Add a new USES for kernel module ports.
USES=kmod takes no arguments and:
- adds kld to CATEGORIES
- sets SSP_UNSAFE
- sets IGNORE if the kernel sources are not found
- defines KMODDIR to /boot/modules by default, add it to
  PLIST_SUB and MAKE_ENV, and create it upon installation
- handles cross-referencing kernel modules upon installation and
  deinstallation

Approved by:	bapt
2013-10-31 11:34:46 +00:00