ports/110942: [mail/dovecot] fix make package if NOPORTDOCS is defined
Sunpoet Po-Chuan Hsieh
sunpoet at sunpoet.net
Tue Mar 27 19:10:06 UTC 2007
>Number: 110942
>Category: ports
>Synopsis: [mail/dovecot] fix make package if NOPORTDOCS is defined
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 27 19:10:05 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Sunpoet Po-Chuan Hsieh
>Release: FreeBSD 6.2-STABLE i386
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD IRIS.sunpoet.net 6.2-STABLE FreeBSD 6.2-STABLE #1: Mon Feb 12 03:43:56 CST 2007 sunpoet at IRIS.sunpoet.net:/usr/obj/usr/src/sys/sunpoet i386
>Description:
The following files are not installed if NOPORTDOCS is defined:
1. etc/dovecot-ldap-example.conf
2. etc/dovecot-sql-example.conf
>How-To-Repeat:
% cd /usr/ports/mail/dovecot
% make package
...
===> Building package for dovecot-1.0.r28
Creating package /usr/ports/packages/All/dovecot-1.0.r28.tbz
Registering depends: libiconv-1.9.2_2.
Creating bzip'd tar ball in '/usr/ports/packages/All/dovecot-1.0.r28.tbz'
tar: etc/dovecot-ldap-example.conf: Cannot stat: No such file or directory
tar: etc/dovecot-sql-example.conf: Cannot stat: No such file or directory
pkg_create: make_dist: tar command failed with code 256
*** Error code 1
Stop in /usr/ports/mail/dovecot.
>Fix:
--- /usr/ports/mail/dovecot/Makefile.orig Mon Mar 26 17:00:05 2007
+++ /usr/ports/mail/dovecot/Makefile Wed Mar 28 02:35:06 2007
@@ -32,6 +32,7 @@
auth-protocol.txt securecoding.txt variables.txt
.else
CONFIGURE_ARGS+= --without-docs
+PLIST_SUB+= DOCS="@comment "
.endif
DOVECOT_UID?= 143
--- /usr/ports/mail/dovecot/pkg-plist.orig Mon Mar 26 17:00:05 2007
+++ /usr/ports/mail/dovecot/pkg-plist Wed Mar 28 02:34:41 2007
@@ -1,8 +1,8 @@
@comment $FreeBSD: ports/mail/dovecot/pkg-plist,v 1.25 2007/03/24 14:46:31 pav Exp $
@unexec if cmp -s %D/etc/dovecot-example.conf %D/etc/dovecot.conf; then rm -f %D/etc/dovecot.conf; fi
etc/dovecot-example.conf
-etc/dovecot-ldap-example.conf
-etc/dovecot-sql-example.conf
+%%DOCS%%etc/dovecot-ldap-example.conf
+%%DOCS%%etc/dovecot-sql-example.conf
@exec if [ ! -f %D/etc/dovecot.conf ] ; then cp -p %D/%F %B/dovecot.conf; fi
@dirrmtry include/dovecot
lib/dovecot/imap/lib01_acl_plugin.so
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list