Bug 50445

Summary: /usr/ports/mail/openwebmail installs into wrong dirs
Product: Ports & Packages Reporter: dhchen <dhchen>
Component: Individual Port(s)Assignee: Yen-Ming Lee <leeym>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description dhchen 2003-03-30 07:00:26 UTC
/usr/ports/mail/openwebmail installs into wrong dirs

The program files should install into /usr/local/www/cgi-bin/openwebmail,
but Makefile installs them into /usr/local/www/cgi-bin/openwebmail/openwebmail,
and it causes the installation fail(cannot chmod to openwebmail/etc/session)

Fix: The following fix should work:



do-install:
-       @${CP} -R ${WRKSRC}/cgi-bin/openwebmail ${OWCGIDIR}
-       @${CP} -R ${WRKSRC}/data/openwebmail ${OWDATADIR}
+       @${CP} -R ${WRKSRC}/cgi-bin/openwebmail/ ${OWCGIDIR}
+       @${CP} -R ${WRKSRC}/data/openwebmail/ ${OWDATADIR}
        @${CHOWN} -R root:mail ${OWCGIDIR}
        @${CHMOD} 0770 ${OWCGIDIR}/etc/sessions ${OWCGIDIR}/etc/users
        @${CHMOD} 4755 ${OWCGIDIR}/openwebmail*pl--k05UvgmPsXb9x1AgKgC9YVWQmx4nkaD5X2PBOlFxs8YW2InH
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile~   Sun Mar 30 11:58:57 2003
+++ Makefile    Sun Mar 30 13:46:28 2003
@@ -78,8 +78,8 @@
 .endif
How-To-Repeat: cd /usr/ports/mail/openwebmail && make install
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2003-03-30 07:32:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->leeym

Over to maintainter.
Comment 2 Yen-Ming Lee freebsd_committer freebsd_triage 2003-03-30 18:39:14 UTC
State Changed
From-To: open->closed

No, it's **NOT** a bug itself. 

You should remove previously installed files and directories, and then 
install new port. 

However, if this patch will help you, I'll commit it anyway.