FreeBSD Bugzilla – Attachment 78946 Details for
Bug 113480
[PATCH] www/hastymail: fix path for the config file, don't install cruft
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
hastymail-1.5_2.patch
hastymail-1.5_2.patch (text/plain), 3.36 KB, created by
Jan Srzednicki
on 2007-06-08 16:00:09 UTC
(
hide
)
Description:
hastymail-1.5_2.patch
Filename:
MIME Type:
Creator:
Jan Srzednicki
Created:
2007-06-08 16:00:09 UTC
Size:
3.36 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/www/hastymail/Makefile /srv/home/winfried/tmp/ports/hastymail/Makefile >--- /usr/ports/www/hastymail/Makefile Sat May 19 11:06:16 2007 >+++ /srv/home/winfried/tmp/ports/hastymail/Makefile Fri Jun 8 16:47:31 2007 >@@ -7,7 +7,7 @@ > > PORTNAME= hastymail > PORTVERSION= 1.5 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= www > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} > MASTER_SITE_SUBDIR= hastymail >@@ -27,16 +27,30 @@ > > .include <bsd.port.pre.mk> > >+# Don't install automatically CVS directories, patched files and the default config file. >+FIND_SKIP_OPTS= -not -name hastymail.conf-example -not -name '*.orig' \ >+ -not -name '*.bak' -not -path '*/CVS/*' -not -name CVS >+ >+post-patch: >+ @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," \ >+ ${WRKSRC}/lib/constant.php >+ > pre-install: >- @${FIND} -s -d ${WRKSRC}/ -type f | ${SED} "s?${WRKSRC}?${INSTALL_DIR}?g" >${PLIST} >- @${FIND} -s -d ${WRKSRC}/ -type d | ${SED} "s?${WRKSRC}?@dirrm ${INSTALL_DIR}?g" >> ${PLIST} >+ @${FIND} -s -d ${WRKSRC}/ -type f ${FIND_SKIP_OPTS} | \ >+ ${SED} "s?${WRKSRC}?${INSTALL_DIR}?g" >${PLIST} >+ @${FIND} -s -d ${WRKSRC}/ -type d ${FIND_SKIP_OPTS} | \ >+ ${SED} "s?${WRKSRC}?@dirrm ${INSTALL_DIR}?g" >> ${PLIST} >+ @${ECHO_CMD} etc/hastymail.conf.sample >> ${PLIST} > > do-install: >- @${MKDIR} ${PREFIX}/${INSTALL_DIR} >- @cd ${WRKSRC} && ${FIND} . | ${PAX} -rw ${PREFIX}/${INSTALL_DIR} >- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${INSTALL_DIR} >+ @${MKDIR} ${PREFIX}/${INSTALL_DIR} >+ @cd ${WRKSRC} && ${FIND} . ${FIND_SKIP_OPTS} | \ >+ ${PAX} -rwd ${PREFIX}/${INSTALL_DIR} >+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${INSTALL_DIR} >+ @${INSTALL_DATA} ${WRKSRC}/hastymail.conf-example \ >+ ${PREFIX}/etc/hastymail.conf.sample > > post-install: >- @${CAT} ${PKGMESSAGE} >+ @${CAT} ${PKGMESSAGE} > > .include <bsd.port.post.mk> >diff -ruN --exclude=CVS /usr/ports/www/hastymail/files/patch-lib-constant.php /srv/home/winfried/tmp/ports/hastymail/files/patch-lib-constant.php >--- /usr/ports/www/hastymail/files/patch-lib-constant.php Thu Jan 1 01:00:00 1970 >+++ /srv/home/winfried/tmp/ports/hastymail/files/patch-lib-constant.php Fri Jun 8 16:36:03 2007 >@@ -0,0 +1,11 @@ >+--- lib/constant.php.orig Fri Jun 8 15:15:54 2007 >++++ lib/constant.php Fri Jun 8 15:16:10 2007 >+@@ -24,7 +24,7 @@ >+ */ >+ >+ /* absolute path to the configuration file */ >+-$config_file = '/etc/hastymail.conf'; >++$config_file = '%%PREFIX%%/etc/hastymail.conf'; >+ >+ /* hastymail version */ >+ $version = '1.5'; >diff -ruN --exclude=CVS /usr/ports/www/hastymail/files/pkg-message.in /srv/home/winfried/tmp/ports/hastymail/files/pkg-message.in >--- /usr/ports/www/hastymail/files/pkg-message.in Sat Nov 18 23:55:43 2006 >+++ /srv/home/winfried/tmp/ports/hastymail/files/pkg-message.in Fri Jun 8 15:36:15 2007 >@@ -1,12 +1,13 @@ > ****************************************************** > > You have successfully installed Hastymail webmail client. >-Dont forget to move config file to proper directory and >-to change that variable in hastymail/lib/constant.php >+Don't forget to edit your own config file. A sample config >+has been installed in: > >-$config_file = '/etc/hastymail.conf'; >+%%PREFIX%%/etc/hastymail.conf.sample > >-as needed. After that, follow the instructions in INSTALL >-file to configure Hastymail finally. >+The proper config file path is: >+ >+%%PREFIX%%/etc/hastymail.conf > > ******************************************************
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 113480
: 78946