From nobody@FreeBSD.org  Sun May  1 15:59:57 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6AFA3106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 May 2011 15:59:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 59C0F8FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 May 2011 15:59:57 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p41FxuDk025812
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 1 May 2011 15:59:56 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p41Fxu59025808;
	Sun, 1 May 2011 15:59:56 GMT
	(envelope-from nobody)
Message-Id: <201105011559.p41Fxu59025808@red.freebsd.org>
Date: Sun, 1 May 2011 15:59:56 GMT
From: Goran Lowkrantz <goran.lowkrantz@ismobile.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nullmailer package can't install as directory only create in ports install
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156755
>Category:       ports
>Synopsis:       mail/nullmailer package can't install as directory only create in ports install
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    glarkin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 01 16:00:22 UTC 2011
>Closed-Date:    Mon May 02 15:23:24 EDT 2011
>Last-Modified:  Mon May  2 19:30:11 UTC 2011
>Originator:     Goran Lowkrantz
>Release:        FreeBSD 8.2-STABLE
>Organization:
isMobuile AB
>Environment:
FreeBSD midgard.glz.hidden-powers.com 8.2-STABLE FreeBSD 8.2-STABLE #97: Sat Apr  2 18:50:40 CEST 2011     root@midgard.glz.hidden-powers.com:/usr/obj/usr/src/sys/SERVER  amd64

>Description:
pkg_add of a nullmailer package create from current ports failes with

Creating "/usr/local/etc/nullmailer/me.sample".
./+INSTALL: cannot create /usr/local/etc/nullmailer/me.sample: No such file or directory
pkg_add: install script returned error status

This is due to the fact that the etc/nullmailer directory is create with a Makefile command in post-install:

 @${INSTALL_DATA} -c ${FILESDIR}/remotes.sample ${PREFIX}/etc/nullmailer/

During package installation this line is not executed so when the installation script runs it fails with the above error.
>How-To-Repeat:
Build a package of nullmailer nullmailer-1.05_2,1 and try to install using pkg_add.
>Fix:
Either add a line 
mkdir -p %%PREFIX%%/etc/nullmailer

to the pkg-install.in file or change the way the remote.samples is included in the package.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->glarkin 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun May 1 20:13:21 UTC 2011 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156755 
State-Changed-From-To: open->closed 
State-Changed-By: glarkin 
State-Changed-When: Mon May 2 15:23:13 EDT 2011 
State-Changed-Why:  
Committed, thank you! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156755 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156755: commit references a PR
Date: Mon,  2 May 2011 19:23:00 +0000 (UTC)

 glarkin     2011-05-02 19:22:45 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/nullmailer      Makefile pkg-plist 
     mail/nullmailer/files nullmailer.in 
   Log:
   - Fixed package installation problems caused by missing ETCDIR [1]
   - Incorporated rc.d script patch [2]
   - Fixed incorrect use of @ignore in pkg-plist (it ignores the next file
     listed in pkg-plist, not the one on the same line as the directive)
   - Remove the me.sample file from ETCDIR
   - Bumped PORTREVISION
   
   PR:             ports/156755 (based on)
   Submitted by:   Goran Lowkrantz <goran.lowkrantz@ismobile.com> [1]
   Suggested by:   dougb [2]
   
   Revision  Changes    Path
   1.22      +3 -3      ports/mail/nullmailer/Makefile
   1.5       +8 -2      ports/mail/nullmailer/files/nullmailer.in
   1.9       +5 -4      ports/mail/nullmailer/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
