ports/117737: [maintainer-update] net-mgmt/nagios-devel: Update to 3.0.b6
Jarrod Sayers
jarrod at netleader.com.au
Thu Nov 1 12:30:04 UTC 2007
The following reply was made to PR ports/117737; it has been noted by GNATS.
From: Jarrod Sayers <jarrod at netleader.com.au>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/117737: [maintainer-update] net-mgmt/nagios-devel: Update to 3.0.b6
Date: Thu, 1 Nov 2007 22:17:34 +1030
The attached patch did not include a fix for the ports pkg-plist file
which fails to remove several directories under /var/spool/nagios (aka
NAGIOSDIR) even if they are empty. The use of @dirrmtry to remove
these fails as when the packing list is created, a %D/ is prefixed to
the directory name. Directories outside of %D require the use of the
@dirrmtry's expanded form. The patch mentioned in the URL now
reflects the addition modification to pkg-plist and should be used in
preference to the file attached to this PR.
<thought>
I'm not sure of the implications in fixing the @dirrmtry tags ability
to remove directories outside of %D, i.e., fully qualified paths, but
ports/Mk/bsd.port.mk could be modified to do so:
PLIST_REINPLACE+= dirrmtryfq dirrmtry stopdaemon
PLIST_REINPLACE_DIRRMTRYFQ=s!^@dirrmtry \(/.*\)!@unexec rmdir \1 2>/
dev/null || true!
PLIST_REINPLACE_DIRRMTRY=s!^@dirrmtry \(.*\)!@unexec rmdir %D/\1 2>/
dev/null || true!
PLIST_REINPLACE_STOPDAEMON=s!^@stopdaemon \(.*\)!@unexec %D/etc/rc.d/
\1${RC_SUBR_SUFFIX} forcestop 2>/dev/null || true!
</thought>
Jarrod.
More information about the freebsd-ports-bugs
mailing list