ports/145741: [PATCH] security/logcheck: fix pkg-plist to delete directories installed out of PREFIX (on /var)
Sahil Tandon
sahil at FreeBSD.org
Fri Apr 16 03:20:01 UTC 2010
>Number: 145741
>Category: ports
>Synopsis: [PATCH] security/logcheck: fix pkg-plist to delete directories installed out of PREFIX (on /var)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 16 03:20:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Sahil Tandon
>Release: FreeBSD 9.0-CURRENT i386
>Organization:
>Environment:
>Description:
- Fix pkg-plist to delete directories installed out of PREFIX (on /var)
>How-To-Repeat:
- Install and then deinstall security/logcheck; notice that the empty /var/foo directories remain; this is because the @dirrmtry macro prepends PREFIX to its arguments, so we reset PREFIX to '/' at end of pkg-plist just before @dirrmtry macros are used to remove directories relative to '/'.
>Fix:
--- logcheck.diff begins here ---
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/security/logcheck/pkg-plist,v
retrieving revision 1.12
diff -u -r1.12 pkg-plist
--- pkg-plist 18 Jan 2010 22:38:04 -0000 1.12
+++ pkg-plist 16 Apr 2010 03:06:17 -0000
@@ -212,6 +212,7 @@
@dirrm %%ETCDIR%%
@dirrm %%DATADIR%%/detectrotate
@dirrm %%DATADIR%%
+ at cwd /
@exec mkdir -p /var/db/logcheck
@dirrmtry /var/db/logcheck
@exec mkdir -p /var/run/logcheck
--- logcheck.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list