Bug 50445 - /usr/ports/mail/openwebmail installs into wrong dirs
Summary: /usr/ports/mail/openwebmail installs into wrong dirs
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: Yen-Ming Lee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-30 07:00 UTC by dhchen
Modified: 2003-03-30 18:42 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 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.