summaryrefslogtreecommitdiff
path: root/deskutils/horde4-mnemo/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-01-18 05:34:21 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-01-18 05:34:21 +0000
commit956668e909dcc6b3353e1104af4ca100e0f93886 (patch)
treec43bb650834b689fad10dc3d7327e6c9d5de91eb /deskutils/horde4-mnemo/Makefile
parentNew port: lang/cmucl-extra (diff)
New port: deskutils/mnemo, a web-based notes and memos application.
Mnemo is the Horde notes and memos application. It lets users keep free-text notes and other bits of information which doesn't fit as a contact, a todo item, an event, etc. It is very similar in functionality to the Palm Memo application. PR: ports/39204 Submitted by: Thierry Thomas <thierry@pompo.net>
Notes
Notes: svn path=/head/; revision=73373
Diffstat (limited to 'deskutils/horde4-mnemo/Makefile')
-rw-r--r--deskutils/horde4-mnemo/Makefile71
1 files changed, 71 insertions, 0 deletions
diff --git a/deskutils/horde4-mnemo/Makefile b/deskutils/horde4-mnemo/Makefile
new file mode 100644
index 000000000000..e1cfe0969d02
--- /dev/null
+++ b/deskutils/horde4-mnemo/Makefile
@@ -0,0 +1,71 @@
+# Ports collection makefile for: Mnemo
+# Date created: Sun May 19, 2002
+# Whom: Thierry Thomas (<thierry@pompo.net>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= mnemo
+PORTVERSION= 1.0
+CATEGORIES= deskutils www
+MASTER_SITES= ftp://ftp.horde.org/pub/mnemo/tarballs/%SUBDIR%/
+MASTER_SITE_SUBDIR= . old
+
+MAINTAINER= thierry@pompo.net
+
+RUN_DEPENDS= ${LOCALBASE}/www/horde/imp/index.php:${PORTSDIR}/mail/imp3
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+NO_BUILD= yes
+PLIST_SUB= HORDEDIR=${LHORDEDIR} MNEMODIR=${LMNEMODIR}
+USE_PERL5= yes
+
+DOCS= LICENSE README docs/CHANGES docs/CREDITS docs/INSTALL
+CONFFILE= conf.php html.php menu.php prefs.php
+SUB_DIRS= config graphics lib locale po scripts templates
+
+LHORDEDIR?= www/horde
+LMNEMODIR?= ${LHORDEDIR}/mnemo
+
+HORDEDIR= ${PREFIX}/${LHORDEDIR}
+MNEMODIR= ${PREFIX}/${LMNEMODIR}
+CONFDIR= ${MNEMODIR}/config
+
+HORDE_INC= ${LOCALBASE}/etc/horde
+
+do-install:
+ @${MKDIR} ${MNEMODIR}
+.for REP in ${SUB_DIRS}
+ @${CP} -Rp ${WRKSRC}/${REP} ${MNEMODIR}
+.endfor
+ @${CP} -p ${WRKSRC}/*.php ${MNEMODIR}
+.for FILE in ${CONFFILE}
+ @if [ ! -f ${CONFDIR}/${FILE} ]; then \
+ ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
+ fi
+.endfor
+ @${CHOWN} -R www:www ${MNEMODIR}
+ @${CHMOD} -R o-rwx ${CONFDIR}
+ @${CP} -p ${FILESDIR}/httpd.conf.mnemo ${HORDE_INC}
+ @${PERL} -pi -e "s:/home/httpd/html/horde/mnemo:${MNEMODIR}:g" \
+ ${HORDE_INC}/httpd.conf.mnemo
+ @${CP} -p ${HORDEDIR}/config/registry.php \
+ ${HORDEDIR}/config/registry.php.beforeMnemo
+ @${PERL} -pi -e "s://UNCOMMENTWHENINSTMNEMO::" ${HORDEDIR}/config/registry.php
+ @${CP} -p ${HORDEDIR}/config/registry.php \
+ ${HORDEDIR}/config/registry.php.afterMnemo
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+
+post-install:
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE} | \
+ ${SED} -e "s:%%MNEMODIR%%:${MNEMODIR}:g;s:%%PORTSDIR%%:${PORTSDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g;s:%%HORDEDIR%%:${HORDEDIR}:"
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>