diff options
author | thierry <thierry@FreeBSD.org> | 2004-04-12 05:43:24 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2004-04-12 05:43:24 +0800 |
commit | 5face9978011d90efccfd4aefa634c5b8ab461e9 (patch) | |
tree | 72b4c15981a46914710b728a230880644f54b530 /www | |
parent | 8a4505411d878bf93a3e7b3cdb4902f091bb690e (diff) | |
download | freebsd-ports-gnome-5face9978011d90efccfd4aefa634c5b8ab461e9.tar.gz freebsd-ports-gnome-5face9978011d90efccfd4aefa634c5b8ab461e9.tar.zst freebsd-ports-gnome-5face9978011d90efccfd4aefa634c5b8ab461e9.zip |
Add horde-passwd 2.2.1, a password changing module for Horde.
PR: 62745
Submitted by: João Carlos Mendes LuÃs (<jonny@jonny.eng.br>)
Approved by: pav (mentor).
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/horde-passwd/Makefile | 81 | ||||
-rw-r--r-- | www/horde-passwd/distinfo | 2 | ||||
-rw-r--r-- | www/horde-passwd/files/httpd.conf.pwd | 30 | ||||
-rw-r--r-- | www/horde-passwd/files/pkg-message.in | 33 | ||||
-rw-r--r-- | www/horde-passwd/pkg-descr | 10 | ||||
-rw-r--r-- | www/horde-passwd/pkg-plist | 156 |
7 files changed, 313 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index d74ca7e0d058..566b589a7427 100644 --- a/www/Makefile +++ b/www/Makefile @@ -127,6 +127,7 @@ SUBDIR += guile-www SUBDIR += gurlchecker SUBDIR += harvest + SUBDIR += horde-passwd SUBDIR += horde2 SUBDIR += hotjava SUBDIR += htdump diff --git a/www/horde-passwd/Makefile b/www/horde-passwd/Makefile new file mode 100644 index 000000000000..ba8a4188633b --- /dev/null +++ b/www/horde-passwd/Makefile @@ -0,0 +1,81 @@ +# Ports collection makefile for: horde-passwd +# Date created: Thu Feb 12, 2004 +# Whom: João Carlos Mendes Luís (<jonny@jonny.eng.br>) +# +# $FreeBSD$ +# + +PORTNAME= horde-passwd +PORTVERSION= 2.2.1 +CATEGORIES= www mail +MASTER_SITES= ftp://ftp.horde.org/pub/passwd/ \ + ftp://ftp.au.horde.org/pub/horde/passwd/ \ + ftp://ftp.es.horde.org/pub/passwd/ \ + ftp://ftp.it.horde.org/pub/mirror/horde.org/passwd/ \ + ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/passwd/ \ + ftp://ftp.pt.horde.org/pub/horde-ftp/passwd/ +DISTNAME= passwd-${PORTVERSION} +DIST_SUBDIR= horde + +MAINTAINER= ports@FreeBSD.org +COMMENT= A password changing module for Horde + +RUN_DEPENDS+= ${LOCALBASE}/www/horde/index.php:${PORTSDIR}/www/horde2 + +NO_BUILD= yes +USE_REINPLACE= yes + +REINPLACE_ARGS= -i.beforePWD + +DOCS= LICENSE README docs/CHANGES docs/CREDITS docs/INSTALL \ + docs/RELEASE_NOTES +SUB_DIRS= config graphics lib locale po scripts templates +CONFFILE= conf.php backends.php + +LHORDEDIR?= www/horde +LPWDDIR?= ${LHORDEDIR}/passwd + +HORDEDIR= ${PREFIX}/${LHORDEDIR} +PWDDIR= ${PREFIX}/${LPWDDIR} +CONFDIR= ${PWDDIR}/config +HCONFDIR= ${HORDEDIR}/config + +PLIST_SUB= LPWDDIR=${LPWDDIR} PWDDIR=${PWDDIR} +PKGMESSAGE= ${WRKDIR}/pkg-message + +HORDE_INC= ${PREFIX}/etc/horde + +do-install: + @${MKDIR} ${PWDDIR} +.for REP in ${SUB_DIRS} + @${CP} -Rp ${WRKSRC}/${REP} ${PWDDIR} +.endfor + @${CP} -p ${WRKSRC}/*.php ${PWDDIR} +.for FILE in ${CONFFILE} + @if [ ! -f ${CONFDIR}/${FILE} ]; then \ + ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \ + fi +.endfor + @${CHOWN} -R www:www ${PWDDIR} + @${CHMOD} -R o-rwx ${CONFDIR} + @${CP} -p ${FILESDIR}/httpd.conf.pwd ${HORDE_INC}/httpd.conf.pwd + @${REINPLACE_CMD} -e "s:/home/httpd/html/horde/passwd:${PWDDIR}:g" \ + ${HORDE_INC}/httpd.conf.pwd + @${RM} ${HORDE_INC}/httpd.conf.pwd.beforePWD +.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} + @${SED} -e "s:%%PWDDIR%%:${PWDDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g;" \ + -e "s:%%HCONFDIR%%:${HCONFDIR}:g" ${FILESDIR}/pkg-message.in \ + > ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + +.include <bsd.port.mk> diff --git a/www/horde-passwd/distinfo b/www/horde-passwd/distinfo new file mode 100644 index 000000000000..5b13f5d7b3df --- /dev/null +++ b/www/horde-passwd/distinfo @@ -0,0 +1,2 @@ +MD5 (horde/passwd-2.2.1.tar.gz) = 8b17c4d1a9c75ebd0200075fd32f76bf +SIZE (horde/passwd-2.2.1.tar.gz) = 226874 diff --git a/www/horde-passwd/files/httpd.conf.pwd b/www/horde-passwd/files/httpd.conf.pwd new file mode 100644 index 000000000000..e6e3505fdfbe --- /dev/null +++ b/www/horde-passwd/files/httpd.conf.pwd @@ -0,0 +1,30 @@ +# This is included in Apache's httpd.conf for horde-passwd +# +# For security, don't serve pages from the horde-passwd configuration and +# library directories. +# +<Directory "/home/httpd/html/horde/passwd/config"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/passwd/lib"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/passwd/locale"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/passwd/po"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/passwd/scripts"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/passwd/templates"> + order deny,allow + deny from all +</Directory> +# End of horde-passwd configuration ================ diff --git a/www/horde-passwd/files/pkg-message.in b/www/horde-passwd/files/pkg-message.in new file mode 100644 index 000000000000..edec2aef9ac5 --- /dev/null +++ b/www/horde-passwd/files/pkg-message.in @@ -0,0 +1,33 @@ +************************************************************************ +horde-passwd has been installed in %%PWDDIR%% with your blank +configuration files. + +horde-passwd requires a password changing mechanism. Probably the +easier one is the port mail/poppassd. Choose one and change the +configuration files conf.php and backend.php, located in +%%CONFDIR%%/ + +To enable horde-passwd at your horde installation, add the following +lines to your horde registry file, at +%%HCONFDIR%%/registry.php + +----8<--------8<--------8<--------8<--------8<--------8<--------8<---- +$this->applications['passwd'] = array( + 'fileroot' => dirname(__FILE__) . '/../passwd', + 'webroot' => $this->applications['horde']['webroot'] . '/passwd', + 'icon' => $this->applications['horde']['webroot'] . '/passwd/graphics/lock.gif', + 'name' => _("Password"), + 'allow_guests' => false, + 'show' => true, + 'status' => 'active' +); +----8<--------8<--------8<--------8<--------8<--------8<--------8<---- + +To integrate horde-passwd and IMP, edit the file +horde/imp/config/conf.php and include 'passwd' in the list of menu +apps, for example, it might look like the following: + +$conf['menu']['apps'] = array('turba','passwd'); + +To protect your configuration files, you have to restart Apache. +************************************************************************ diff --git a/www/horde-passwd/pkg-descr b/www/horde-passwd/pkg-descr new file mode 100644 index 000000000000..9de57e8768ac --- /dev/null +++ b/www/horde-passwd/pkg-descr @@ -0,0 +1,10 @@ +Passwd is the Horde password changing application. While it has been +released and is in production use at many sites, it is also under +heavy development in an effort to expand and improve the module. + +Right now, Passwd provides fairly complete support for changing +passwords via poppassd, ldap, unix expect scripts, the unix smbpasswd +command for smb/cifs password support, servuftp, vmailmgr, vpopmail, +and sql passwords. + +WWW: http://www.horde.org/passwd/ diff --git a/www/horde-passwd/pkg-plist b/www/horde-passwd/pkg-plist new file mode 100644 index 000000000000..52805c9ba4ca --- /dev/null +++ b/www/horde-passwd/pkg-plist @@ -0,0 +1,156 @@ +@unexec /usr/bin/cmp %%PWDDIR%%/config/backends.php %%PWDDIR%%/config/backends.php.dist && /bin/rm -f %%PWDDIR%%/config/backends.php || ${TRUE} +@unexec /usr/bin/cmp %%PWDDIR%%/config/conf.php %%PWDDIR%%/config/conf.php.dist && /bin/rm -f %%PWDDIR%%/config/conf.php || ${TRUE} +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/CREDITS +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES +%%LPWDDIR%%/config/.htaccess +%%LPWDDIR%%/config/backends.php.dist +%%LPWDDIR%%/config/conf.php.dist +%%LPWDDIR%%/graphics/lock.gif +%%LPWDDIR%%/lib/Driver/vpopmail.php +%%LPWDDIR%%/lib/Driver/ldap.php +%%LPWDDIR%%/lib/Driver/poppassd.php +%%LPWDDIR%%/lib/Driver/servuftp.php +%%LPWDDIR%%/lib/Driver/smbpasswd.php +%%LPWDDIR%%/lib/Driver/sql.php +%%LPWDDIR%%/lib/Driver/vmailmgr.php +%%LPWDDIR%%/lib/Driver/expect.php +%%LPWDDIR%%/lib/.htaccess +%%LPWDDIR%%/lib/Driver.php +%%LPWDDIR%%/lib/Passwd.php +%%LPWDDIR%%/lib/base.php +%%LPWDDIR%%/lib/version.php +%%LPWDDIR%%/locale/ar_SY/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/da_DK/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/gl_ES/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/id_ID/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/hu_HU/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/hu_HU/help.xml +%%LPWDDIR%%/locale/lt_LT/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/ro_RO/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/zh_CN/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/nl_NL/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/nl_NL/help.xml +%%LPWDDIR%%/locale/cs_CZ/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/de_DE/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/en_US/help.xml +%%LPWDDIR%%/locale/es_ES/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/fi_FI/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/fi_FI/help.xml +%%LPWDDIR%%/locale/fr_FR/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/it_IT/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/bg_BG/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/nn_NO/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/pl_PL/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/pt_BR/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/ru_RU/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/ru_RU.KOI8-R/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/sv_SE/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/locale/zh_TW/LC_MESSAGES/passwd.mo +%%LPWDDIR%%/po/.htaccess +%%LPWDDIR%%/po/Makefile +%%LPWDDIR%%/po/README +%%LPWDDIR%%/po/ar_SY.po +%%LPWDDIR%%/po/bg_BG.po +%%LPWDDIR%%/po/cs_CZ.po +%%LPWDDIR%%/po/da_DK.po +%%LPWDDIR%%/po/de_DE.po +%%LPWDDIR%%/po/es_ES.po +%%LPWDDIR%%/po/extract.pl +%%LPWDDIR%%/po/fi_FI.po +%%LPWDDIR%%/po/fr_FR.po +%%LPWDDIR%%/po/gl_ES.po +%%LPWDDIR%%/po/hu_HU.po +%%LPWDDIR%%/po/id_ID.po +%%LPWDDIR%%/po/it_IT.po +%%LPWDDIR%%/po/lt_LT.po +%%LPWDDIR%%/po/messages.po +%%LPWDDIR%%/po/nl_NL.po +%%LPWDDIR%%/po/nn_NO.po +%%LPWDDIR%%/po/passwd.pot +%%LPWDDIR%%/po/pl_PL.po +%%LPWDDIR%%/po/pt_BR.po +%%LPWDDIR%%/po/ro_RO.po +%%LPWDDIR%%/po/ru_RU.KOI8-R.po +%%LPWDDIR%%/po/ru_RU.po +%%LPWDDIR%%/po/shtool +%%LPWDDIR%%/po/sv_SE.po +%%LPWDDIR%%/po/xgettext.sh +%%LPWDDIR%%/po/zh_CN.po +%%LPWDDIR%%/po/zh_TW.po +%%LPWDDIR%%/scripts/passwd_expect +%%LPWDDIR%%/templates/index/notconfigured.inc +%%LPWDDIR%%/templates/main/javascript.inc +%%LPWDDIR%%/templates/main/main.inc +%%LPWDDIR%%/templates/menu/menu.inc +%%LPWDDIR%%/templates/.htaccess +%%LPWDDIR%%/templates/common-footer.inc +%%LPWDDIR%%/templates/common-header.inc +%%LPWDDIR%%/status.php +%%LPWDDIR%%/menu.php +%%LPWDDIR%%/main.php +%%LPWDDIR%%/index.php +etc/horde/httpd.conf.pwd +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%LPWDDIR%%/templates/menu +@dirrm %%LPWDDIR%%/templates/main +@dirrm %%LPWDDIR%%/templates/index +@dirrm %%LPWDDIR%%/templates +@dirrm %%LPWDDIR%%/scripts +@dirrm %%LPWDDIR%%/po +@dirrm %%LPWDDIR%%/locale/zh_TW/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/zh_TW +@dirrm %%LPWDDIR%%/locale/zh_CN/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/zh_CN +@dirrm %%LPWDDIR%%/locale/sv_SE/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/sv_SE +@dirrm %%LPWDDIR%%/locale/ru_RU/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/ru_RU.KOI8-R/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/ru_RU.KOI8-R +@dirrm %%LPWDDIR%%/locale/ru_RU +@dirrm %%LPWDDIR%%/locale/ro_RO/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/ro_RO +@dirrm %%LPWDDIR%%/locale/pt_BR/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/pt_BR +@dirrm %%LPWDDIR%%/locale/pl_PL/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/pl_PL +@dirrm %%LPWDDIR%%/locale/nn_NO/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/nn_NO +@dirrm %%LPWDDIR%%/locale/nl_NL/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/nl_NL +@dirrm %%LPWDDIR%%/locale/lt_LT/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/lt_LT +@dirrm %%LPWDDIR%%/locale/it_IT/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/it_IT +@dirrm %%LPWDDIR%%/locale/id_ID/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/id_ID +@dirrm %%LPWDDIR%%/locale/hu_HU/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/hu_HU +@dirrm %%LPWDDIR%%/locale/gl_ES/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/gl_ES +@dirrm %%LPWDDIR%%/locale/fr_FR/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/fr_FR +@dirrm %%LPWDDIR%%/locale/fi_FI/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/fi_FI +@dirrm %%LPWDDIR%%/locale/es_ES/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/es_ES +@dirrm %%LPWDDIR%%/locale/en_US +@dirrm %%LPWDDIR%%/locale/de_DE/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/de_DE +@dirrm %%LPWDDIR%%/locale/da_DK/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/da_DK +@dirrm %%LPWDDIR%%/locale/cs_CZ/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/cs_CZ +@dirrm %%LPWDDIR%%/locale/bg_BG/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/bg_BG +@dirrm %%LPWDDIR%%/locale/ar_SY/LC_MESSAGES +@dirrm %%LPWDDIR%%/locale/ar_SY +@dirrm %%LPWDDIR%%/locale +@dirrm %%LPWDDIR%%/lib/Driver +@dirrm %%LPWDDIR%%/lib +@dirrm %%LPWDDIR%%/graphics +@dirrm %%LPWDDIR%%/config +@dirrm %%LPWDDIR%% |