Bug 156755 - mail/nullmailer package can't install as directory only create in ports install
Summary: mail/nullmailer package can't install as directory only create in ports install
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Greg Larkin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 17:00 UTC by Goran Lowkrantz
Modified: 2011-05-02 20:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Goran Lowkrantz 2011-05-01 17:00:22 UTC
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.

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.
How-To-Repeat: Build a package of nullmailer nullmailer-1.05_2,1 and try to install using pkg_add.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-05-01 21:13:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->glarkin

Fix synopsis and assign.
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-05-02 20:23:00 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"
Comment 3 Greg Larkin freebsd_committer freebsd_triage 2011-05-02 20:23:13 UTC
State Changed
From-To: open->closed

Committed, thank you!