diff options
author | edwin <edwin@FreeBSD.org> | 2003-01-18 13:34:21 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-01-18 13:34:21 +0800 |
commit | 6df6e06482358550380a2d955c8fa18b4ee4a603 (patch) | |
tree | 9011bd56077621f9fb5925b7bd7f5712fe8cc95d /deskutils/mnemo | |
parent | dab5c43fa041641364abe59862b98af4ee123ec3 (diff) | |
download | freebsd-ports-gnome-6df6e06482358550380a2d955c8fa18b4ee4a603.tar.gz freebsd-ports-gnome-6df6e06482358550380a2d955c8fa18b4ee4a603.tar.zst freebsd-ports-gnome-6df6e06482358550380a2d955c8fa18b4ee4a603.zip |
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>
Diffstat (limited to 'deskutils/mnemo')
-rw-r--r-- | deskutils/mnemo/Makefile | 71 | ||||
-rw-r--r-- | deskutils/mnemo/distinfo | 1 | ||||
-rw-r--r-- | deskutils/mnemo/files/httpd.conf.mnemo | 31 | ||||
-rw-r--r-- | deskutils/mnemo/files/patch-config_conf.php.dist | 21 | ||||
-rw-r--r-- | deskutils/mnemo/pkg-comment | 1 | ||||
-rw-r--r-- | deskutils/mnemo/pkg-descr | 6 | ||||
-rw-r--r-- | deskutils/mnemo/pkg-message | 21 | ||||
-rw-r--r-- | deskutils/mnemo/pkg-plist | 139 |
8 files changed, 291 insertions, 0 deletions
diff --git a/deskutils/mnemo/Makefile b/deskutils/mnemo/Makefile new file mode 100644 index 000000000000..e1cfe0969d02 --- /dev/null +++ b/deskutils/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> diff --git a/deskutils/mnemo/distinfo b/deskutils/mnemo/distinfo new file mode 100644 index 000000000000..fafa72d55847 --- /dev/null +++ b/deskutils/mnemo/distinfo @@ -0,0 +1 @@ +MD5 (mnemo-1.0.tar.gz) = 4fb4be095eea041fa7503b14dd03e435 diff --git a/deskutils/mnemo/files/httpd.conf.mnemo b/deskutils/mnemo/files/httpd.conf.mnemo new file mode 100644 index 000000000000..c87a3b7ef1c1 --- /dev/null +++ b/deskutils/mnemo/files/httpd.conf.mnemo @@ -0,0 +1,31 @@ +# This is included in Apache's httpd.conf for Mnemo +# +# For security, don't serve pages from the Mnemo configuration and +# library directories. +# +<Directory "/home/httpd/html/horde/mnemo/config"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mnemo/lib"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mnemo/locale"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mnemo/po"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mnemo/scripts"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mnemo/templates"> + order deny,allow + deny from all +</Directory> +# End of Mnemo configuration ================ + diff --git a/deskutils/mnemo/files/patch-config_conf.php.dist b/deskutils/mnemo/files/patch-config_conf.php.dist new file mode 100644 index 000000000000..d3a504dd3711 --- /dev/null +++ b/deskutils/mnemo/files/patch-config_conf.php.dist @@ -0,0 +1,21 @@ +--- config/conf.php.dist.orig Mon Apr 22 20:39:23 2002 ++++ config/conf.php.dist Sun May 19 11:10:29 2002 +@@ -42,12 +42,12 @@ + // Below is an example configuration for an sql driver, in this case + // MySQL. + $conf['storage']['params'] = array(); +-// $conf['storage']['params']['phptype'] = 'mysql'; +-// $conf['storage']['params']['hostspec'] = 'localhost'; +-// $conf['storage']['params']['username'] = 'horde'; +-// $conf['storage']['params']['password'] = '*****'; +-// $conf['storage']['params']['database'] = 'horde'; +-// $conf['storage']['params']['table'] = 'mnemo_memos'; ++$conf['storage']['params']['phptype'] = 'mysql'; ++$conf['storage']['params']['hostspec'] = 'localhost'; ++$conf['storage']['params']['username'] = 'hordemgr'; ++$conf['storage']['params']['password'] = 'hordemgr'; ++$conf['storage']['params']['database'] = 'horde'; ++$conf['storage']['params']['table'] = 'mnemo_memos'; + + + /** diff --git a/deskutils/mnemo/pkg-comment b/deskutils/mnemo/pkg-comment new file mode 100644 index 000000000000..852b7b7de1b4 --- /dev/null +++ b/deskutils/mnemo/pkg-comment @@ -0,0 +1 @@ +Mnemo is the Horde notes and memos application diff --git a/deskutils/mnemo/pkg-descr b/deskutils/mnemo/pkg-descr new file mode 100644 index 000000000000..fbe52997ba27 --- /dev/null +++ b/deskutils/mnemo/pkg-descr @@ -0,0 +1,6 @@ +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. + +WWW: http://horde.org/ diff --git a/deskutils/mnemo/pkg-message b/deskutils/mnemo/pkg-message new file mode 100644 index 000000000000..df8570e3f82c --- /dev/null +++ b/deskutils/mnemo/pkg-message @@ -0,0 +1,21 @@ +************************************************************************ +Mnemo has been installed in %%MNEMODIR%% with your blank +configuration files. + +Horde and IMP must be configured; if not, see: +- %%PORTSDIR%%/www/horde2/pkg-message +- %%PORTSDIR%%/mail/imp3/pkg-message + +Then, you have to create the table mnemo_memos, from the SQL script +%%MNEMODIR%%/scripts/drivers/mnemo_memos.sql. +For example, if your database is MySQL, you may run +mysql --user=hordemgr --password=yourpass horde < mnemo_memos.sql +(If you run another database server, see + %%HORDEDIR%%/scripts/db/README + for more explanations.) + +Finally, you may have to tune the configuration files located in +%%CONFDIR%%/, specially the files conf.php. + +To protect your configuration files, you have to restart Apache. +************************************************************************ diff --git a/deskutils/mnemo/pkg-plist b/deskutils/mnemo/pkg-plist new file mode 100644 index 000000000000..25579dbcd583 --- /dev/null +++ b/deskutils/mnemo/pkg-plist @@ -0,0 +1,139 @@ +%%PORTDOCS%%share/doc/mnemo/LICENSE +%%PORTDOCS%%share/doc/mnemo/README +%%PORTDOCS%%share/doc/mnemo/CHANGES +%%PORTDOCS%%share/doc/mnemo/CREDITS +%%PORTDOCS%%share/doc/mnemo/INSTALL +%%MNEMODIR%%/config/conf.php +%%MNEMODIR%%/config/conf.php.dist +%%MNEMODIR%%/config/conf.php.dist.orig +%%MNEMODIR%%/config/html.php +%%MNEMODIR%%/config/html.php.dist +%%MNEMODIR%%/config/menu.php +%%MNEMODIR%%/config/menu.php.dist +%%MNEMODIR%%/config/prefs.php +%%MNEMODIR%%/config/prefs.php.dist +%%MNEMODIR%%/graphics/add.gif +%%MNEMODIR%%/graphics/checkbox.gif +%%MNEMODIR%%/graphics/down.gif +%%MNEMODIR%%/graphics/list.gif +%%MNEMODIR%%/graphics/mnemo.gif +%%MNEMODIR%%/graphics/refresh.gif +%%MNEMODIR%%/graphics/search.gif +%%MNEMODIR%%/graphics/up.gif +%%MNEMODIR%%/index.php +%%MNEMODIR%%/lib/Driver.php +%%MNEMODIR%%/lib/Driver/sql.php +%%MNEMODIR%%/lib/Mnemo.php +%%MNEMODIR%%/lib/api.php +%%MNEMODIR%%/lib/base.php +%%MNEMODIR%%/lib/constants.php +%%MNEMODIR%%/lib/version.php +%%MNEMODIR%%/list.php +%%MNEMODIR%%/locale/cs_CZ/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/de_DE/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/en_US/help.xml +%%MNEMODIR%%/locale/es_ES/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/fi_FI/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/fi_FI/help.xml +%%MNEMODIR%%/locale/fr_FR/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/hu_HU/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/nl_NL/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/nn_NO/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/pt_BR/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/pt_PT/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/sv_SE/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/zh_CN/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/locale/zh_TW/LC_MESSAGES/mnemo.mo +%%MNEMODIR%%/memo.php +%%MNEMODIR%%/menu.php +%%MNEMODIR%%/po/Makefile +%%MNEMODIR%%/po/README +%%MNEMODIR%%/po/cs_CZ.po +%%MNEMODIR%%/po/de_DE.po +%%MNEMODIR%%/po/es_ES.po +%%MNEMODIR%%/po/fi_FI.po +%%MNEMODIR%%/po/fr_FR.po +%%MNEMODIR%%/po/hu_HU.po +%%MNEMODIR%%/po/nl_NL.po +%%MNEMODIR%%/po/nn_NO.po +%%MNEMODIR%%/po/pt_BR.po +%%MNEMODIR%%/po/pt_PT.po +%%MNEMODIR%%/po/sv_SE.po +%%MNEMODIR%%/po/zh_CN.po +%%MNEMODIR%%/po/zh_TW.po +%%MNEMODIR%%/po/extract.pl +%%MNEMODIR%%/po/shtool +%%MNEMODIR%%/po/xgettext.sh +%%MNEMODIR%%/prefs.php +%%MNEMODIR%%/scripts/drivers/mnemo_memos.sql +%%MNEMODIR%%/search.php +%%MNEMODIR%%/templates/common-footer.inc +%%MNEMODIR%%/templates/common-header.inc +%%MNEMODIR%%/templates/index/css.inc +%%MNEMODIR%%/templates/index/notconfigured.inc +%%MNEMODIR%%/templates/list/actions.inc +%%MNEMODIR%%/templates/list/empty.inc +%%MNEMODIR%%/templates/list/footer.inc +%%MNEMODIR%%/templates/list/header.inc +%%MNEMODIR%%/templates/list/javascript.inc +%%MNEMODIR%%/templates/list/memo_footers.inc +%%MNEMODIR%%/templates/list/memo_headers.inc +%%MNEMODIR%%/templates/list/memo_summaries.inc +%%MNEMODIR%%/templates/memo/begin.inc +%%MNEMODIR%%/templates/memo/end.inc +%%MNEMODIR%%/templates/memo/memo.inc +%%MNEMODIR%%/templates/menu/menu.inc +%%MNEMODIR%%/templates/search/begin.inc +%%MNEMODIR%%/templates/search/end.inc +%%MNEMODIR%%/templates/search/search.inc +%%MNEMODIR%%/templates/view/description.inc +%%MNEMODIR%%/templates/view/headers.inc +%%MNEMODIR%%/templates/view/navbar.inc +%%MNEMODIR%%/templates/view/no-memo.inc +%%MNEMODIR%%/view.php +@dirrm %%MNEMODIR%%/config +@dirrm %%MNEMODIR%%/graphics +@dirrm %%MNEMODIR%%/lib/Driver +@dirrm %%MNEMODIR%%/lib +@dirrm %%MNEMODIR%%/locale/cs_CZ/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/cs_CZ +@dirrm %%MNEMODIR%%/locale/de_DE/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/de_DE +@dirrm %%MNEMODIR%%/locale/en_US +@dirrm %%MNEMODIR%%/locale/es_ES/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/es_ES +@dirrm %%MNEMODIR%%/locale/fi_FI/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/fi_FI +@dirrm %%MNEMODIR%%/locale/fr_FR/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/fr_FR +@dirrm %%MNEMODIR%%/locale/hu_HU/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/hu_HU +@dirrm %%MNEMODIR%%/locale/nl_NL/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/nl_NL +@dirrm %%MNEMODIR%%/locale/nn_NO/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/nn_NO +@dirrm %%MNEMODIR%%/locale/pt_BR/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/pt_BR +@dirrm %%MNEMODIR%%/locale/pt_PT/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/pt_PT +@dirrm %%MNEMODIR%%/locale/sv_SE/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/sv_SE +@dirrm %%MNEMODIR%%/locale/zh_CN/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/zh_CN +@dirrm %%MNEMODIR%%/locale/zh_TW/LC_MESSAGES +@dirrm %%MNEMODIR%%/locale/zh_TW +@dirrm %%MNEMODIR%%/locale +@dirrm %%MNEMODIR%%/po +@dirrm %%MNEMODIR%%/scripts/drivers +@dirrm %%MNEMODIR%%/scripts +@dirrm %%MNEMODIR%%/templates/index +@dirrm %%MNEMODIR%%/templates/list +@dirrm %%MNEMODIR%%/templates/memo +@dirrm %%MNEMODIR%%/templates/menu +@dirrm %%MNEMODIR%%/templates/search +@dirrm %%MNEMODIR%%/templates/view +@dirrm %%MNEMODIR%%/templates +@dirrm %%MNEMODIR%% +etc/horde/httpd.conf.mnemo +%%PORTDOCS%%@dirrm share/doc/mnemo +@unexec if cmp -s %D/www/horde/config/registry.php %D/www/horde/config/registry.php.afterMnemo; then rm -f %D/www/horde/config/registry.php.afterMnemo; mv %D/www/horde/config/registry.php.beforeMnemo %D/www/horde/config/registry.php; fi |