Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2007 12:30:04 GMT
From:      Jarrod Sayers <jarrod@netleader.com.au>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/117737: [maintainer-update] net-mgmt/nagios-devel: Update to 3.0.b6
Message-ID:  <200711011230.lA1CU4mh012456@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/117737; it has been noted by GNATS.

From: Jarrod Sayers <jarrod@netleader.com.au>
To: bug-followup@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711011230.lA1CU4mh012456>