aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-12-09 06:26:44 +0800
committermiwi <miwi@FreeBSD.org>2006-12-09 06:26:44 +0800
commit8595a3df575cf83bdf431a8765e1603a97e00144 (patch)
tree02158e6d12ab844ce84d305d76575ea9b156ad96 /mail
parent1e3e87df3b1b07550fd89af2f41e8615a0dd5ff5 (diff)
downloadfreebsd-ports-gnome-8595a3df575cf83bdf431a8765e1603a97e00144.tar.gz
freebsd-ports-gnome-8595a3df575cf83bdf431a8765e1603a97e00144.tar.zst
freebsd-ports-gnome-8595a3df575cf83bdf431a8765e1603a97e00144.zip
- Update to 20061207
Submitted by: ade@ (thanks) Approved by: maintainer
Diffstat (limited to 'mail')
-rw-r--r--mail/roundcube/Makefile33
-rw-r--r--mail/roundcube/distinfo6
2 files changed, 35 insertions, 4 deletions
diff --git a/mail/roundcube/Makefile b/mail/roundcube/Makefile
index 1e97ddece946..80fcf8e3e761 100644
--- a/mail/roundcube/Makefile
+++ b/mail/roundcube/Makefile
@@ -16,7 +16,7 @@ DISTFILES= ${PORTNAME}-${PORTVERSION:S/.${SNAPSHOT}//}-${SNAPSHOT}${EXTRACT_SUFX
MAINTAINER= farrokhi@FreeBSD.org
COMMENT= Fully skinnable XHTML/CSS webmail written in PHP
-SNAPSHOT= 20061202
+SNAPSHOT= 20061207
WRKSRC= ${WRKDIR}/${PORTNAME}mail
NO_BUILD= yes
@@ -42,6 +42,13 @@ SUB_FILES= pkg-install
SUB_LIST= RCUBEROOT=${RCUBEROOT}
PKGDEINSTALL= ${PKGINSTALL}
+.if defined(WITH_REPLACE_MAIL_URL) && !empty(WITH_REPLACE_MAIL_URL)
+MAIL= ${WITH_REPLACE_MAIL_URL}
+REINPLACE_ARGS= -i ""
+.else
+MAIL= mail
+.endif
+PLIST_SUB+= MAIL=${MAIL}
LOCALBASE?= /usr/local
.if exists(${LOCALBASE}/etc/php.conf)
@@ -78,6 +85,30 @@ USE_PHP?= yes
.include "${PORTSDIR}/Mk/bsd.php.mk"
+.if defined(WITH_REPLACE_MAIL_URL)
+post-patch:
+ @${REINPLACE_CMD} "s/'mail'/'${MAIL}'/g" ${WRKSRC}/index.php \
+ ${WRKSRC}/program/include/main.inc \
+ ${WRKSRC}/program/js/app.js
+ @${REINPLACE_CMD} "s/_task=mail/_task=${MAIL}/g" \
+ ${WRKSRC}/program/steps/mail/rss.inc
+ @${REINPLACE_CMD} "s/command=\"mail\"/command=\"${MAIL}\"/g" \
+ ${WRKSRC}/skins/default/includes/header.html \
+ ${WRKSRC}/skins/default/includes/taskbar.html
+ @${REINPLACE_CMD} "s/mail.gif/${MAIL}.gif/g" \
+ ${WRKSRC}/skins/default/common.css
+ @${REINPLACE_CMD} "s/mail.css/${MAIL}.css/g" \
+ ${WRKSRC}/skins/default/templates/*.html
+ @${MV} ${WRKSRC}/skins/default/images/buttons/mail.gif \
+ ${WRKSRC}/skins/default/images/buttons/${MAIL}.gif
+ @${MV} ${WRKSRC}/skins/default/images/buttons/mail.png \
+ ${WRKSRC}/skins/default/images/buttons/${MAIL}.png
+ @${MV} ${WRKSRC}/skins/default/mail.css \
+ ${WRKSRC}/skins/default/${MAIL}.css
+ @${MV} ${WRKSRC}/skins/default/templates/mail.html \
+ ${WRKSRC}/skins/default/templates/${MAIL}.html
+.endif
+
do-install:
${MKDIR} ${RCUBEROOT}
.for i in ${RCUBECOMP}
diff --git a/mail/roundcube/distinfo b/mail/roundcube/distinfo
index c0aa6a5f21b1..e41f775d0487 100644
--- a/mail/roundcube/distinfo
+++ b/mail/roundcube/distinfo
@@ -1,3 +1,3 @@
-MD5 (roundcube-0.1-20061202.tar.bz2) = f518170bb7c9328d31f221e2e6b3ccda
-SHA256 (roundcube-0.1-20061202.tar.bz2) = 5a26abbdeab029d4515b434180e2cf2d787fe7df794b59a3c2de5e58e68789c4
-SIZE (roundcube-0.1-20061202.tar.bz2) = 718043
+MD5 (roundcube-0.1-20061207.tar.bz2) = 5f02b2a34e85f18de16960bd6ca6becb
+SHA256 (roundcube-0.1-20061207.tar.bz2) = a36627b123d491abf626eb5467d903d5e9a0ee49031643e0345ae0604a277878
+SIZE (roundcube-0.1-20061207.tar.bz2) = 718487