HomeFreeBSD

Cleanly remove zfs-modules-devel headers

Description

Cleanly remove zfs-modules-devel headers

Add the /usr/src/zfs-<version>-<release>/<kernel> directory to
the zfs-modules-devel package. This ensures that this directory
will be removed when the package is removed.

We do not include the higher level /usr/src/zfs-<version>-<release>
directory since there may be builds for multiple kernels. Instead,
a %postun rmdir is added which attempts to remove this directory.
It will only succeed when the last zfs-modules-devel-* package
for this specific release is removed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Aug 13 2012, 10:47 PM
Parents
rGbafc4e9e2ac3: Suppress 'zfs_sb_create' memory warning
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG9ca431763e2d: Cleanly remove zfs-modules-devel headers (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Aug 13 2012, 11:35 PM