Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jul 1999 00:40:05 -0400 (EDT)
From:      adrian@ubergeeks.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/12584: cyrus packing list is incomplete
Message-ID:  <199907100440.AAA17647@terrafirma.cstone.net>

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

>Number:         12584
>Category:       ports
>Synopsis:       directories made during 'make install' are not in the package
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul  9 21:40:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Adrian Filipi-Martin
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
Ubergeeks Consulting
>Environment:

	3.2-R with ports from -STABLE as of 7/8/99.

>Description:

	Several directories are made during the 'make install' target of the port
	that are not also made when installing the package.

>How-To-Repeat:

	Make the package, remove it.  Remove /usr/local/etc/imap*, /var/pwcheck
	and /var/spool/imap.  Then install the package.  Notice the absence of
	these directories.

>Fix:
	
	Apply the following patch which adds the necessary commands to the
	package packing list.  (Note, this could probably be done in a
	cleaner manner, but this works.)

--- Makefile.orig	Fri Jul  9 18:17:26 1999
+++ Makefile	Sat Jul 10 00:12:12 1999
@@ -59,14 +59,15 @@
 			${PREFIX}/share/doc/cyrus/html
 		@${ECHO} share/doc/cyrus/html/${file}.html >>${TMPPLIST}
 .endfor
-		@${ECHO} "@dirrm share/doc/cyrus/html"
-		@${ECHO} "@dirrm share/doc/cyrus"
+		@${ECHO} "@dirrm share/doc/cyrus/html" >>${TMPPLIST}
+		@${ECHO} "@dirrm share/doc/cyrus" >>${TMPPLIST}
 .endif
 		${INSTALL_DATA} ${FILESDIR}/imapd.conf \
 			${PREFIX}/etc/imapd.conf.dist
 		${INSTALL_DATA} ${FILESDIR}/inetd.conf.cyrus \
 			${PREFIX}/etc/
-		${INSTALL} -d -m 750 -o cyrus -g cyrus /var/spool/imap \
+		${INSTALL} -d -m 750 -o cyrus -g cyrus \
+			/var/spool/imap \
 			${PREFIX}/etc/imap \
 			${PREFIX}/etc/imap/user \
 			${PREFIX}/etc/imap/quota \
@@ -76,6 +77,25 @@
 		${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
 		${TOUCH} ${PREFIX}/etc/imap/mailboxes
 		chmod 640 ${PREFIX}/etc/imap/mailboxes
+		chown cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
+		@${ECHO} "@exec mkdir %D/etc/imap" >>${TMPPLIST}
+.for dir in user quota proc log msg
+		@${ECHO} "@exec mkdir %D/etc/imap/${dir}" >>${TMPPLIST}
+		@${ECHO} "@dirrm etc/imap/${dir}" >>${TMPPLIST}
+.endfor
+		@${ECHO} "@exec cp /dev/null %D/etc/imap/mailboxes" >>${TMPPLIST}
+		@${ECHO} "@exec chown -R cyrus:cyrus %D/etc/imap" >>${TMPPLIST}
+		@${ECHO} "@exec chmod -R g-w,o= %D/etc/imap" >>${TMPPLIST}
+		@${ECHO} "@mode u=rwx,go=" >>${TMPPLIST}
+		@${ECHO} "@exec mkdir /var/pwcheck" >>${TMPPLIST}
+		@${ECHO} "@exec chown cyrus:cyrus /var/pwcheck" >>${TMPPLIST}
+		@${ECHO} "@exec chmod go= /var/pwcheck" >>${TMPPLIST}
+		@${ECHO} "@exec mkdir /var/spool/imap" >>${TMPPLIST}
+		@${ECHO} "@exec chown cyrus:cyrus /var/spool/imap" >>${TMPPLIST}
+		@${ECHO} "@exec chmod g-w,o= /var/spool/imap" >>${TMPPLIST}
+		@${ECHO} "@cwd /var" >>${TMPPLIST}
+		@${ECHO} "@dirrm pwcheck" >>${TMPPLIST}
+		@${ECHO} "@dirrm spool/imap" >>${TMPPLIST}
 		@sed -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/cyrus.sh \
 			>${PREFIX}/etc/rc.d/cyrus.sh
 		@chmod 0755 ${PREFIX}/etc/rc.d/cyrus.sh

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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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