Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 2009 15:19:26 GMT
From:      Oleg Ginzburg <oleg.ginzburg@nevosoft.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/137215: www/mod_security ports has wrong pkg-plist with WITH_MLOGC=yes
Message-ID:  <200907281519.n6SFJQR4064271@www.freebsd.org>
Resent-Message-ID: <200907281520.n6SFK1CQ061515@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137215
>Category:       ports
>Synopsis:       www/mod_security ports has wrong pkg-plist with WITH_MLOGC=yes
>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:   Tue Jul 28 15:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Oleg Ginzburg
>Release:        8.0-BETA2
>Organization:
>Environment:
FreeBSD gizmo.nevosoft.local 8.0-BETA2 FreeBSD 8.0-BETA2 #3: Mon Jul 27 12:05:59 MSD 2009     root@gizmo.nevosoft.local:/usr/obj/usr/src/sys/WKS-GENERIC  amd64
>Description:
Records in Makefile 
"PLIST_FILES+=   ${PREFIX}/bin/mlogc" add extra PREFIX in standart configuration.
As result, content has full path 

grep mlogc$ /var/db/pkg/mod_security-2.5.9/+CONTENTS
/usr/local/bin/mlogc


and this make incorrect pkg_delete procedure:

--
pkg_delete: file '/usr/local//usr/local/bin/mlogc' doesn't exist
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
--

>How-To-Repeat:
make WITH_MLOGC=yes -C /usr/ports/www/mod_security install && make WITH_MLOGC=yes -C /usr/ports/www/mod_security deinstall
>Fix:
diff -ruN mod_security.bak/Makefile mod_security/Makefile
--- mod_security.bak/Makefile   2009-07-28 19:08:39.000000000 +0400
+++ mod_security/Makefile       2009-07-28 19:17:40.000000000 +0400
@@ -45,7 +45,7 @@
 .if !defined(SKIP_RULES)
 SUB_FILES+=    pkg-message.rules
 .if defined(WITH_MLOGC)
-PLIST_FILES+=  ${PREFIX}/bin/mlogc
+PLIST_FILES+=  bin/mlogc
 .endif
 PLIST_DIRS+=   ${APACHEETCDIR}/Includes/mod_security2/optional_rules
 PLIST_DIRS+=   ${APACHEETCDIR}/Includes/mod_security2


>Release-Note:
>Audit-Trail:
>Unformatted:



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