summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2005-03-25 13:21:43 +0000
committeradrianp <adrianp@pkgsrc.org>2005-03-25 13:21:43 +0000
commit7ff01bc6944c2335acedb4caf32ff054a690bcf7 (patch)
tree6ac66f2118c020c44b9084982fe1e4fe8d3fc920 /mail
parente248c4cf6c0d446de9b7ed413922c2903650a744 (diff)
downloadpkgsrc-7ff01bc6944c2335acedb4caf32ff054a690bcf7.tar.gz
Turba is a set of PHP scripts that implement a contacts directory and
management interface. Turba also provides an API for external applications to interface with address books, providing adding and searching features that can be hooked right into other applications. Turba is a complete basic contact management application. SQL, LDAP, and Horde Preferences backends are available and are well tested. The fields in the address books can be defined in a very flexible way, just by changing the config files. Import/export from/to Pine, Mulberry, CSV, TSV, and vCard contacts. You can create distribution lists from your addressbooks, which are handled transparently by IMP and other Horde applications. And there are Horde API functions to add and search for contacts. This also addresses PR# 22809 - Thanks for the PR.
Diffstat (limited to 'mail')
-rw-r--r--mail/turba/DESCR12
-rw-r--r--mail/turba/MESSAGE22
-rw-r--r--mail/turba/Makefile90
-rw-r--r--mail/turba/PLIST254
-rw-r--r--mail/turba/distinfo5
-rw-r--r--mail/turba/files/turba.conf.dist31
-rw-r--r--mail/turba/options.mk24
7 files changed, 438 insertions, 0 deletions
diff --git a/mail/turba/DESCR b/mail/turba/DESCR
new file mode 100644
index 00000000000..22d512c0214
--- /dev/null
+++ b/mail/turba/DESCR
@@ -0,0 +1,12 @@
+Turba is a set of PHP scripts that implement a contacts directory and
+management interface. Turba also provides an API for external applications
+to interface with address books, providing adding and searching features that
+can be hooked right into other applications.
+
+Turba is a complete basic contact management application. SQL, LDAP, and Horde
+Preferences backends are available and are well tested. The fields in the
+address books can be defined in a very flexible way, just by changing the
+config files. Import/export from/to Pine, Mulberry, CSV, TSV, and vCard
+contacts. You can create distribution lists from your addressbooks, which are
+handled transparently by IMP and other Horde applications. And there are Horde
+API functions to add and search for contacts.
diff --git a/mail/turba/MESSAGE b/mail/turba/MESSAGE
new file mode 100644
index 00000000000..41e7eb6d10d
--- /dev/null
+++ b/mail/turba/MESSAGE
@@ -0,0 +1,22 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/03/25 13:21:43 adrianp Exp $
+
+Please refer to the file:
+
+ ${PREFIX}/share/doc/turba/INSTALL
+
+on how to setup your Turba installation. You need to at least edit
+
+ ${PREFIX}/share/horde/config/registry.php
+
+to enable Turba in the horde framework. You will also need to configure Turba
+by using the Horde administrative interface.
+
+Finally you will also need to make Turba accessible through your HTTP server.
+If you are running Apache and ap-php, then you can add the following lines
+to httpd.conf:
+
+ Include ${PKG_SYSCONFDIR}/horde.conf
+ Include ${PKG_SYSCONFDIR}/turba.conf
+
+===========================================================================
diff --git a/mail/turba/Makefile b/mail/turba/Makefile
new file mode 100644
index 00000000000..90cb5c6b1f5
--- /dev/null
+++ b/mail/turba/Makefile
@@ -0,0 +1,90 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/03/25 13:21:43 adrianp Exp $
+
+DISTNAME= turba-h3-${TURBAVER}
+PKGNAME= turba-${TURBAVER}
+CATEGORIES= mail www
+MASTER_SITES= ftp://ftp.horde.org/pub/turba/
+
+MAINTAINER= adrianp@NetBSD.org
+HOMEPAGE= http://www.horde.org/turba/
+COMMENT= Horde contact management application
+
+DEPENDS+= horde>=3.0.0:../../www/horde3
+
+.include "../../mk/bsd.prefs.mk"
+
+DOCDIR= ${PREFIX}/share/doc/turba
+EGDIR= ${PREFIX}/share/examples/turba
+HORDEDIR= ${PREFIX}/share/horde
+TURBADIR= ${HORDEDIR}/turba
+TURBAVER= 2.0.2
+PAXDIRS= lib locale po scripts templates themes
+USE_PERL5= YES
+
+MESSAGE_SUBST+= TURBADIR=${TURBADIR}
+MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
+REPLACE_PERL= ${WRKSRC}/scripts/ldap/addou.pl
+
+USE_PKGINSTALL= YES
+PKG_SYSCONFSUBDIR?= httpd
+
+SUBST_CLASSES= files
+SUBST_STAGE.files= post-build
+SUBST_FILES.files= turba.conf.dist
+SUBST_SED.files= -e "s|@TURBADIR@|${TURBADIR}|g"
+SUBST_MESSAGE.files= "Fixing configuration files."
+
+CONF_FILES= ${EGDIR}/turba.conf ${PKG_SYSCONFDIR}/turba.conf
+CONF_FILES_PERMS+= ${TURBADIR}/config/sources.php.dist \
+ ${TURBADIR}/config/sources.php \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+CONF_FILES+= ${TURBADIR}/config/attributes.php.dist \
+ ${TURBADIR}/config/attributes.php
+SUPPORT_FILES_PERMS+= ${TURBADIR}/config/conf.xml.dist \
+ ${TURBADIR}/config/conf.xml \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+SUPPORT_FILES_PERMS+= ${TURBADIR}/config/menu.php.dist \
+ ${TURBADIR}/config/menu.php \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+SUPPORT_FILES_PERMS+= ${TURBADIR}/config/prefs.php.dist \
+ ${TURBADIR}/config/prefs.php \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+
+.include "options.mk"
+
+do-build:
+ @${CP} ${FILESDIR}/turba.conf.dist ${WRKSRC}/turba.conf.dist
+ @${CP} ${WRKSRC}/config/conf.xml ${WRKSRC}/config/conf.xml.dist
+ @${FIND} ${WRKSRC} -name .htaccess -print | ${XARGS} ${RM} -f
+ @${CHMOD} 0750 ${WRKSRC}/scripts/ldap/addou.pl
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA_DIR} ${TURBADIR}
+ ${INSTALL_DATA_DIR} ${TURBADIR}/config
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/INSTALL ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/LDAP ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/RELEASE_NOTES ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/UPGRADING ${DOCDIR}
+
+. for d in ${PAXDIRS}
+ ${INSTALL_DATA_DIR} ${TURBADIR}/${d}
+. endfor
+. undef d
+
+. for d in ${PAXDIRS}
+ cd ${WRKSRC}/${d} && ${PAX} -rw . ${TURBADIR}/${d}
+. endfor
+. undef d
+
+ ${INSTALL_DATA} ${WRKSRC}/config/*.dist ${TURBADIR}/config
+ ${INSTALL_DATA} ${WRKSRC}/*.php ${TURBADIR}
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TURBADIR}
+ ${CHMOD} -R a-w ${TURBADIR}
+ ${CHOWN} ${APACHE_USER}:${SHAREGRP} ${TURBADIR}/config
+ ${CHMOD} 0750 ${TURBADIR}/config
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/turba/PLIST b/mail/turba/PLIST
new file mode 100644
index 00000000000..5b5fa2a7b0c
--- /dev/null
+++ b/mail/turba/PLIST
@@ -0,0 +1,254 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/03/25 13:21:43 adrianp Exp $
+share/doc/turba/COPYING
+share/doc/turba/INSTALL
+share/doc/turba/LDAP
+share/doc/turba/README
+share/doc/turba/RELEASE_NOTES
+share/doc/turba/UPGRADING
+share/horde/turba/add.php
+share/horde/turba/browse.php
+share/horde/turba/config/attributes.php.dist
+share/horde/turba/config/conf.xml.dist
+share/horde/turba/config/menu.php.dist
+share/horde/turba/config/prefs.php.dist
+share/horde/turba/config/sources.php.dist
+share/horde/turba/data.php
+share/horde/turba/delete.php
+share/horde/turba/display.php
+share/horde/turba/edit.php
+share/horde/turba/index.php
+share/horde/turba/lib/AbstractObject.php
+share/horde/turba/lib/Block/minisearch.php
+share/horde/turba/lib/Driver.php
+share/horde/turba/lib/Driver/imsp.php
+share/horde/turba/lib/Driver/kolab.php
+share/horde/turba/lib/Driver/ldap.php
+share/horde/turba/lib/Driver/prefs.php
+share/horde/turba/lib/Driver/sql.php
+share/horde/turba/lib/Group.php
+share/horde/turba/lib/List.php
+share/horde/turba/lib/List/Plain.php
+share/horde/turba/lib/List/Tree.php
+share/horde/turba/lib/ListView.php
+share/horde/turba/lib/ListView/Rolodex.php
+share/horde/turba/lib/ListView/Tree.php
+share/horde/turba/lib/Object.php
+share/horde/turba/lib/ObjectView.php
+share/horde/turba/lib/ObjectView/List.php
+share/horde/turba/lib/ObjectView/PhotoID.php
+share/horde/turba/lib/Renderer.php
+share/horde/turba/lib/Turba.php
+share/horde/turba/lib/api.php
+share/horde/turba/lib/base.php
+share/horde/turba/lib/prefs.php
+share/horde/turba/lib/version.php
+share/horde/turba/locale/ar_SY/LC_MESSAGES/turba.mo
+share/horde/turba/locale/bg_BG/LC_MESSAGES/turba.mo
+share/horde/turba/locale/ca_ES/LC_MESSAGES/turba.mo
+share/horde/turba/locale/cs_CZ/LC_MESSAGES/turba.mo
+share/horde/turba/locale/da_DK/LC_MESSAGES/turba.mo
+share/horde/turba/locale/de_DE/LC_MESSAGES/turba.mo
+share/horde/turba/locale/de_DE/help.xml
+share/horde/turba/locale/el_GR/LC_MESSAGES/turba.mo
+share/horde/turba/locale/en_US/help.xml
+share/horde/turba/locale/es_ES/LC_MESSAGES/turba.mo
+share/horde/turba/locale/es_ES/help.xml
+share/horde/turba/locale/et_EE/LC_MESSAGES/turba.mo
+share/horde/turba/locale/fa_IR/LC_MESSAGES/turba.mo
+share/horde/turba/locale/fi_FI/LC_MESSAGES/turba.mo
+share/horde/turba/locale/fi_FI/help.xml
+share/horde/turba/locale/fr_FR/LC_MESSAGES/turba.mo
+share/horde/turba/locale/gl_ES/LC_MESSAGES/turba.mo
+share/horde/turba/locale/hu_HU/LC_MESSAGES/turba.mo
+share/horde/turba/locale/it_IT/LC_MESSAGES/turba.mo
+share/horde/turba/locale/ja_JP/LC_MESSAGES/turba.mo
+share/horde/turba/locale/ko_KR/LC_MESSAGES/turba.mo
+share/horde/turba/locale/lt_LT/LC_MESSAGES/turba.mo
+share/horde/turba/locale/lv_LV/LC_MESSAGES/turba.mo
+share/horde/turba/locale/mk_MK/LC_MESSAGES/turba.mo
+share/horde/turba/locale/nb_NO/LC_MESSAGES/turba.mo
+share/horde/turba/locale/nl_NL/LC_MESSAGES/turba.mo
+share/horde/turba/locale/nn_NO/LC_MESSAGES/turba.mo
+share/horde/turba/locale/pl_PL/LC_MESSAGES/turba.mo
+share/horde/turba/locale/pt_BR/LC_MESSAGES/turba.mo
+share/horde/turba/locale/pt_BR/help.xml
+share/horde/turba/locale/pt_PT/LC_MESSAGES/turba.mo
+share/horde/turba/locale/pt_PT/help.xml
+share/horde/turba/locale/ro_RO/LC_MESSAGES/turba.mo
+share/horde/turba/locale/ru_RU/LC_MESSAGES/turba.mo
+share/horde/turba/locale/sk_SK/LC_MESSAGES/turba.mo
+share/horde/turba/locale/sk_SK/help.xml
+share/horde/turba/locale/sl_SI/LC_MESSAGES/turba.mo
+share/horde/turba/locale/sv_SE/LC_MESSAGES/turba.mo
+share/horde/turba/locale/uk_UA/LC_MESSAGES/turba.mo
+share/horde/turba/locale/zh_CN/LC_MESSAGES/turba.mo
+share/horde/turba/locale/zh_TW/LC_MESSAGES/turba.mo
+share/horde/turba/minisearch.php
+share/horde/turba/po/README
+share/horde/turba/po/ar_SY.po
+share/horde/turba/po/bg_BG.po
+share/horde/turba/po/ca_ES.po
+share/horde/turba/po/cs_CZ.po
+share/horde/turba/po/da_DK.po
+share/horde/turba/po/de_DE.po
+share/horde/turba/po/el_GR.po
+share/horde/turba/po/es_ES.po
+share/horde/turba/po/et_EE.po
+share/horde/turba/po/fa_IR.po
+share/horde/turba/po/fi_FI.po
+share/horde/turba/po/fr_FR.po
+share/horde/turba/po/gl_ES.po
+share/horde/turba/po/hu_HU.po
+share/horde/turba/po/it_IT.po
+share/horde/turba/po/ja_JP.po
+share/horde/turba/po/ko_KR.po
+share/horde/turba/po/lt_LT.po
+share/horde/turba/po/lv_LV.po
+share/horde/turba/po/mk_MK.po
+share/horde/turba/po/nb_NO.po
+share/horde/turba/po/nl_NL.po
+share/horde/turba/po/nn_NO.po
+share/horde/turba/po/pl_PL.po
+share/horde/turba/po/pt_BR.po
+share/horde/turba/po/pt_PT.po
+share/horde/turba/po/ro_RO.po
+share/horde/turba/po/ru_RU.po
+share/horde/turba/po/sk_SK.po
+share/horde/turba/po/sl_SI.po
+share/horde/turba/po/sv_SE.po
+share/horde/turba/po/turba.pot
+share/horde/turba/po/uk_UA.po
+share/horde/turba/po/zh_CN.po
+share/horde/turba/po/zh_TW.po
+share/horde/turba/scripts/Turba.reg
+share/horde/turba/scripts/ldap/addou
+share/horde/turba/scripts/ldap/addou.pl
+share/horde/turba/scripts/ldap/core.schema.patch
+share/horde/turba/scripts/ldap/rfc2739.schema
+share/horde/turba/scripts/sql/turba_objects.mysql.sql
+share/horde/turba/scripts/sql/turba_objects.oci8.sql
+share/horde/turba/scripts/sql/turba_objects.pgsql.sql
+share/horde/turba/scripts/sql/turba_objects.sql
+share/horde/turba/scripts/sql/turba_weddingguests.sql
+share/horde/turba/scripts/upgrades/1.2_to_2.0.mysql.sql
+share/horde/turba/scripts/upgrades/2004-10-26_create_default_histories.php
+share/horde/turba/search.php
+share/horde/turba/templates/block/minisearch.inc
+share/horde/turba/templates/browse/actions.inc
+share/horde/turba/templates/browse/column_footers.inc
+share/horde/turba/templates/browse/column_headers.inc
+share/horde/turba/templates/browse/contactrow.inc
+share/horde/turba/templates/browse/footer.inc
+share/horde/turba/templates/browse/footerAlpha.inc
+share/horde/turba/templates/browse/header.inc
+share/horde/turba/templates/browse/javascript.inc
+share/horde/turba/templates/browse/search.inc
+share/horde/turba/templates/browse/search_criteria.inc
+share/horde/turba/templates/browse/select.inc
+share/horde/turba/templates/common-header.inc
+share/horde/turba/templates/data/export.inc
+share/horde/turba/templates/data/import.inc
+share/horde/turba/templates/menu.inc
+share/horde/turba/templates/prefs/columnselect.inc
+share/horde/turba/test.php
+share/horde/turba/themes/graphics/contact.png
+share/horde/turba/themes/graphics/group.png
+share/horde/turba/themes/graphics/menu/browse.png
+share/horde/turba/themes/graphics/menu/new.png
+share/horde/turba/themes/graphics/new.png
+share/horde/turba/themes/graphics/turba.png
+share/horde/turba/themes/screen.css
+share/horde/turba/vcard.php
+@dirrm share/horde/turba/config
+@dirrm share/horde/turba/lib/Block
+@dirrm share/horde/turba/lib/Driver
+@dirrm share/horde/turba/lib/List
+@dirrm share/horde/turba/lib/ListView
+@dirrm share/horde/turba/lib/ObjectView
+@dirrm share/horde/turba/lib
+@dirrm share/horde/turba/locale/ar_SY/LC_MESSAGES
+@dirrm share/horde/turba/locale/ar_SY
+@dirrm share/horde/turba/locale/bg_BG/LC_MESSAGES
+@dirrm share/horde/turba/locale/bg_BG
+@dirrm share/horde/turba/locale/ca_ES/LC_MESSAGES
+@dirrm share/horde/turba/locale/ca_ES
+@dirrm share/horde/turba/locale/cs_CZ/LC_MESSAGES
+@dirrm share/horde/turba/locale/cs_CZ
+@dirrm share/horde/turba/locale/da_DK/LC_MESSAGES
+@dirrm share/horde/turba/locale/da_DK
+@dirrm share/horde/turba/locale/de_DE/LC_MESSAGES
+@dirrm share/horde/turba/locale/de_DE
+@dirrm share/horde/turba/locale/el_GR/LC_MESSAGES
+@dirrm share/horde/turba/locale/el_GR
+@dirrm share/horde/turba/locale/en_US
+@dirrm share/horde/turba/locale/es_ES/LC_MESSAGES
+@dirrm share/horde/turba/locale/es_ES
+@dirrm share/horde/turba/locale/et_EE/LC_MESSAGES
+@dirrm share/horde/turba/locale/et_EE
+@dirrm share/horde/turba/locale/fa_IR/LC_MESSAGES
+@dirrm share/horde/turba/locale/fa_IR
+@dirrm share/horde/turba/locale/fi_FI/LC_MESSAGES
+@dirrm share/horde/turba/locale/fi_FI
+@dirrm share/horde/turba/locale/fr_FR/LC_MESSAGES
+@dirrm share/horde/turba/locale/fr_FR
+@dirrm share/horde/turba/locale/gl_ES/LC_MESSAGES
+@dirrm share/horde/turba/locale/gl_ES
+@dirrm share/horde/turba/locale/hu_HU/LC_MESSAGES
+@dirrm share/horde/turba/locale/hu_HU
+@dirrm share/horde/turba/locale/it_IT/LC_MESSAGES
+@dirrm share/horde/turba/locale/it_IT
+@dirrm share/horde/turba/locale/ja_JP/LC_MESSAGES
+@dirrm share/horde/turba/locale/ja_JP
+@dirrm share/horde/turba/locale/ko_KR/LC_MESSAGES
+@dirrm share/horde/turba/locale/ko_KR
+@dirrm share/horde/turba/locale/lt_LT/LC_MESSAGES
+@dirrm share/horde/turba/locale/lt_LT
+@dirrm share/horde/turba/locale/lv_LV/LC_MESSAGES
+@dirrm share/horde/turba/locale/lv_LV
+@dirrm share/horde/turba/locale/mk_MK/LC_MESSAGES
+@dirrm share/horde/turba/locale/mk_MK
+@dirrm share/horde/turba/locale/nb_NO/LC_MESSAGES
+@dirrm share/horde/turba/locale/nb_NO
+@dirrm share/horde/turba/locale/nl_NL/LC_MESSAGES
+@dirrm share/horde/turba/locale/nl_NL
+@dirrm share/horde/turba/locale/nn_NO/LC_MESSAGES
+@dirrm share/horde/turba/locale/nn_NO
+@dirrm share/horde/turba/locale/pl_PL/LC_MESSAGES
+@dirrm share/horde/turba/locale/pl_PL
+@dirrm share/horde/turba/locale/pt_BR/LC_MESSAGES
+@dirrm share/horde/turba/locale/pt_BR
+@dirrm share/horde/turba/locale/pt_PT/LC_MESSAGES
+@dirrm share/horde/turba/locale/pt_PT
+@dirrm share/horde/turba/locale/ro_RO/LC_MESSAGES
+@dirrm share/horde/turba/locale/ro_RO
+@dirrm share/horde/turba/locale/ru_RU/LC_MESSAGES
+@dirrm share/horde/turba/locale/ru_RU
+@dirrm share/horde/turba/locale/sk_SK/LC_MESSAGES
+@dirrm share/horde/turba/locale/sk_SK
+@dirrm share/horde/turba/locale/sl_SI/LC_MESSAGES
+@dirrm share/horde/turba/locale/sl_SI
+@dirrm share/horde/turba/locale/sv_SE/LC_MESSAGES
+@dirrm share/horde/turba/locale/sv_SE
+@dirrm share/horde/turba/locale/uk_UA/LC_MESSAGES
+@dirrm share/horde/turba/locale/uk_UA
+@dirrm share/horde/turba/locale/zh_CN/LC_MESSAGES
+@dirrm share/horde/turba/locale/zh_CN
+@dirrm share/horde/turba/locale/zh_TW/LC_MESSAGES
+@dirrm share/horde/turba/locale/zh_TW
+@dirrm share/horde/turba/locale
+@dirrm share/horde/turba/po
+@dirrm share/horde/turba/scripts/ldap
+@dirrm share/horde/turba/scripts/sql
+@dirrm share/horde/turba/scripts/upgrades
+@dirrm share/horde/turba/scripts
+@dirrm share/horde/turba/templates/block
+@dirrm share/horde/turba/templates/browse
+@dirrm share/horde/turba/templates/data
+@dirrm share/horde/turba/templates/prefs
+@dirrm share/horde/turba/templates
+@dirrm share/horde/turba/themes/graphics/menu
+@dirrm share/horde/turba/themes/graphics
+@dirrm share/horde/turba/themes
+@dirrm share/horde/turba
+@dirrm share/examples/turba
+@dirrm share/doc/turba
diff --git a/mail/turba/distinfo b/mail/turba/distinfo
new file mode 100644
index 00000000000..02785debd45
--- /dev/null
+++ b/mail/turba/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/03/25 13:21:43 adrianp Exp $
+
+SHA1 (turba-h3-2.0.2.tar.gz) = c9d9f0b1e6e9edf0272c9926d8703ff33a2551ec
+RMD160 (turba-h3-2.0.2.tar.gz) = 505384d4470660bf9056b8abdb0f33befdbfce07
+Size (turba-h3-2.0.2.tar.gz) = 1227556 bytes
diff --git a/mail/turba/files/turba.conf.dist b/mail/turba/files/turba.conf.dist
new file mode 100644
index 00000000000..89318c54790
--- /dev/null
+++ b/mail/turba/files/turba.conf.dist
@@ -0,0 +1,31 @@
+# $NetBSD: turba.conf.dist,v 1.1.1.1 2005/03/25 13:21:43 adrianp Exp $
+#
+# Turba configuration file fragment for Apache
+
+# For security, don't serve pages from the Turba configuration and library
+# directories.
+#
+<Directory "@TURBADIR@/config">
+ Order deny,allow
+ Deny from all
+</Directory>
+<Directory "@TURBADIR@/lib">
+ Order deny,allow
+ Deny from all
+</Directory>
+<Directory "@TURBADIR@/locale">
+ Order deny,allow
+ Deny from all
+</Directory>
+<Directory "@TURBADIR@/po">
+ Order deny,allow
+ Deny from all
+</Directory>
+<Directory "@TURBADIR@/scripts">
+ Order deny,allow
+ Deny from all
+</Directory>
+<Directory "@TURBADIR@/templates">
+ Order deny,allow
+ Deny from all
+</Directory>
diff --git a/mail/turba/options.mk b/mail/turba/options.mk
new file mode 100644
index 00000000000..d26d7d78050
--- /dev/null
+++ b/mail/turba/options.mk
@@ -0,0 +1,24 @@
+# $NetBSD: options.mk,v 1.1.1.1 2005/03/25 13:21:43 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.turba
+PKG_SUPPORTED_OPTIONS= ldap mysql
+
+.if !defined(PKG_OPTIONS.turba)
+PKG_DEFAULT_OPTIONS+= ldap
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Use OpenLDAP for storing data
+###
+.if !empty(PKG_OPTIONS:Mldap)
+DEPENDS+= php-ldap>=4.3.3:../../databases/php-ldap
+.endif
+
+###
+### Use MySQL for storing data
+###
+.if !empty(PKG_OPTIONS:Mmysql)
+DEPENDS+= php-mysql>=4.3.3:../../databases/php-mysql
+.endif