Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 2008 10:29:01 GMT
From:      Frank Wall <fw@moov.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/127204: [patch] security/cyrus-sasl2 Fix pkg-plist to not force directory removal
Message-ID:  <200809081029.m88AT1Pp037577@www.freebsd.org>
Resent-Message-ID: <200809081030.m88AU713089643@freefall.freebsd.org>

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

>Number:         127204
>Category:       ports
>Synopsis:       [patch] security/cyrus-sasl2 Fix pkg-plist to not force directory removal
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 08 10:30:06 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Frank Wall
>Release:        7.0-RELEASE-p4
>Organization:
>Environment:
FreeBSD XXX 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #0: Tue Sep  2 19:32:35 UTC 2008     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
The pkg-plist of security/cyrus-sasl2 contains the parameter @dirrm. This conflicts with sendmail setups that make use of sasl2 for authentication. In this case you need to create /usr/local/lib/sasl2/Sendmail.conf and insert e.g. "pwcheck_method: saslauthd" for sasl2 authentication to work with sendmail.

Now when using the parameter @dirrm in the pkg-plist, the Sendmail.conf file gets removed when deleting or updating the port. This should be fixed by replacing @dirrm with @dirrmtry.
>How-To-Repeat:
1. install security/cyrus-sasl2 
2. create the file /usr/local/lib/sasl2/Sendmail.conf
3. delete (or update) security/cyrus-sasl2 
4. the file Sendmail.conf got removed :-(

>Fix:
see patch

Patch attached with submission follows:

--- pkg-plist.orig	2008-09-08 12:04:55.000000000 +0200
+++ pkg-plist	2008-09-08 12:05:26.000000000 +0200
@@ -109,5 +109,5 @@ sbin/saslpasswd2
 %%PORTDOCS%%%%DOCSDIR%%/html/windows.html
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/html
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm lib/sasl2
+@dirrmtry lib/sasl2
 @cwd %%PREFIX%%


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



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