Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2004 15:48:26 -0200 (BRST)
From:      Joao Carlos Mendes Luis <jonny@jonny.eng.br>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62745: New port: horde-passwd - Horde module for password changing
Message-ID:  <20040212174826.4F459AB20@minerva.int.gov.br>
Resent-Message-ID: <200402121750.i1CHoBAO084831@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         62745
>Category:       ports
>Synopsis:       New port: horde-passwd - Horde module for password changing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 12 09:50:10 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Joao Carlos Mendes Luis
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:

	FreeBSD 4.9-stable

>Description:
>How-To-Repeat:
>Fix:

Note: I've copied the base structures from IMP port, but this port
could be a little bit more integrated to the horde port.  As is, the
current installation needs some interactive configuration.

Here´s the shell archive, as directed by
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#PORTING-SUBMITTING


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	horde-passwd
#	horde-passwd/files
#	horde-passwd/files/httpd.conf.pwd
#	horde-passwd/distinfo
#	horde-passwd/Makefile
#	horde-passwd/pkg-message
#	horde-passwd/pkg-plist
#	horde-passwd/pkg-descr
#
echo c - horde-passwd
mkdir -p horde-passwd > /dev/null 2>&1
echo c - horde-passwd/files
mkdir -p horde-passwd/files > /dev/null 2>&1
echo x - horde-passwd/files/httpd.conf.pwd
sed 's/^X//' >horde-passwd/files/httpd.conf.pwd << 'END-of-horde-passwd/files/httpd.conf.pwd'
X# This is included in Apache's httpd.conf for horde-passwd
X#
X# For security, don't serve pages from the horde-passwd configuration and
X# library directories.
X#
X<Directory "/home/httpd/html/horde/passwd/config">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/passwd/lib">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/passwd/locale">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/passwd/po">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/passwd/scripts">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/passwd/templates">
X    order deny,allow
X    deny from all
X</Directory>
X# End of horde-passwd configuration ================
END-of-horde-passwd/files/httpd.conf.pwd
echo x - horde-passwd/distinfo
sed 's/^X//' >horde-passwd/distinfo << 'END-of-horde-passwd/distinfo'
XMD5 (horde/passwd-2.2.tar.gz) = c355ab7ddbb51964e771d523cc08bcd2
XSIZE (horde/passwd-2.2.tar.gz) = 140783
END-of-horde-passwd/distinfo
echo x - horde-passwd/Makefile
sed 's/^X//' >horde-passwd/Makefile << 'END-of-horde-passwd/Makefile'
X# Ports collection makefile for:  horde-passwd
X# Date created:			  Thu Feb 12, 2004
X# Whom:				  João Carlos Mendes Luís (<jonny@jonny.eng.br>)
X#
X# $FreeBSD: $
X#
X
XPORTNAME=	horde-passwd
XPORTVERSION=	2.2
XPORTREVISION=	0
XCATEGORIES=	www mail
XMASTER_SITES=	ftp://ftp.horde.org/pub/passwd/				\
X		ftp://ftp.au.horde.org/pub/horde/passwd/		\
X		ftp://ftp.es.horde.org/pub/passwd/			\
X		ftp://ftp.it.horde.org/pub/mirror/horde.org/passwd/	\
X		ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/passwd/	\
X		ftp://ftp.pt.horde.org/pub/horde-ftp/passwd/
XDISTNAME=	passwd-${PORTVERSION}
XDIST_SUBDIR=	horde
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	A password changing module for Horde
X
X##RUN_DEPENDS+=	${LOCALBASE}/www/horde/index.php:${PORTSDIR}/www/horde2
X
XNO_BUILD=	yes
XUSE_REINPLACE=	yes
X
XREINPLACE_ARGS=	-i.beforePWD
X
XDOCS=		LICENSE README docs/CHANGES docs/CREDITS docs/INSTALL
XSUB_DIRS=	config graphics lib locale po scripts templates
XCONFFILE=	conf.php backends.php
X
XLHORDEDIR?=	www/horde
XLPWDDIR?=	${LHORDEDIR}/passwd
X
XPLIST_SUB=	PWDDIR=${LPWDDIR}
X
XHORDEDIR=	${PREFIX}/${LHORDEDIR}
XPWDDIR=		${PREFIX}/${LPWDDIR}
XCONFDIR=	${PWDDIR}/config
XHCONFDIR=	${HORDEDIR}/config
X
XHORDE_INC=	${LOCALBASE}/etc/horde
X
Xdo-install:
X	@${MKDIR}  ${PWDDIR}
X.for REP in ${SUB_DIRS}
X	@${CP} -Rp ${WRKSRC}/${REP} ${PWDDIR}
X.endfor
X	@${CP} -p  ${WRKSRC}/*.php ${PWDDIR}
X.for FILE in ${CONFFILE}
X	@if [ ! -f ${CONFDIR}/${FILE} ]; then \
X	  ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
X	fi
X.endfor
X	@${CHOWN} -R www:www ${PWDDIR}
X	@${CHMOD} -R o-rwx ${CONFDIR}
X	@${CP} -p ${FILESDIR}/httpd.conf.pwd ${HORDE_INC}/httpd.conf.pwd
X	@${REINPLACE_CMD} -e "s:/home/httpd/html/horde/passwd:${PWDDIR}:g" ${HORDE_INC}/httpd.conf.pwd
X	@${RM} ${HORDE_INC}/httpd.conf.pwd.beforePWD
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for FILE in ${DOCS}
X	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
X.endif
X
Xpost-install:
X	@${ECHO_MSG}
X	@${CAT} ${PKGMESSAGE} | \
X	${SED} -e "s:%%PWDDIR%%:${PWDDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g;s:%%HCONFDIR%%:${HCONFDIR}:g"
X	@${ECHO_MSG}
X
X.include <bsd.port.mk>
END-of-horde-passwd/Makefile
echo x - horde-passwd/pkg-message
sed 's/^X//' >horde-passwd/pkg-message << 'END-of-horde-passwd/pkg-message'
X************************************************************************
Xhorde-passwwd has been installed in %%PWDDIR%% with your blank
Xconfiguration files.
X
Xhorde-passwd requires a password changing mechanism.  Probably the
Xeasier one is the port mail/poppassd.  Choose one and change the
Xconfiguration files conf.php and backend.php, located in
X%%CONFDIR%%/
X
XTo enable horde-passwd at your horde installation, add the following
Xlines to your horde registry file, at
X%%HCONFDIR%%/registry.php
X
X----8<--------8<--------8<--------8<--------8<--------8<--------8<----
X$this->applications['passwd'] = array(
X    'fileroot' => dirname(__FILE__) . '/../passwd',
X    'webroot' => $this->applications['horde']['webroot'] . '/passwd',
X    'icon' => $this->applications['horde']['webroot'] . '/passwd/graphics/lock.gif',
X    'name' => _("Password"),
X    'allow_guests' => false,
X    'show' => true,
X    'status' => 'active'
X);
X----8<--------8<--------8<--------8<--------8<--------8<--------8<----
X
XTo integrate horde-passwd and IMP, edit the file
Xhorde/imp/config/conf.php and include 'passwd' in the list of menu
Xapps, for example, it might look like the following:
X
X$conf['menu']['apps'] = array('turba','passwd');
X
XTo protect your configuration files, you have to restart Apache.
X************************************************************************
END-of-horde-passwd/pkg-message
echo x - horde-passwd/pkg-plist
sed 's/^X//' >horde-passwd/pkg-plist << 'END-of-horde-passwd/pkg-plist'
X%%PORTDOCS%%share/doc/horde-passwd/LICENSE
X%%PORTDOCS%%share/doc/horde-passwd/README
X%%PORTDOCS%%share/doc/horde-passwd/CHANGES
X%%PORTDOCS%%share/doc/horde-passwd/CREDITS
X%%PORTDOCS%%share/doc/horde-passwd/INSTALL
X%%PWDDIR%%/config/.htaccess
X%%PWDDIR%%/config/backends.php.dist
X%%PWDDIR%%/config/conf.php.dist
X%%PWDDIR%%/graphics/lock.gif
X%%PWDDIR%%/lib/Driver/vpopmail.php
X%%PWDDIR%%/lib/Driver/ldap.php
X%%PWDDIR%%/lib/Driver/poppassd.php
X%%PWDDIR%%/lib/Driver/servuftp.php
X%%PWDDIR%%/lib/Driver/smbpasswd.php
X%%PWDDIR%%/lib/Driver/sql.php
X%%PWDDIR%%/lib/Driver/vmailmgr.php
X%%PWDDIR%%/lib/Driver/expect.php
X%%PWDDIR%%/lib/.htaccess
X%%PWDDIR%%/lib/Driver.php
X%%PWDDIR%%/lib/Passwd.php
X%%PWDDIR%%/lib/base.php
X%%PWDDIR%%/lib/version.php
X%%PWDDIR%%/locale/nl_NL/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/nl_NL/help.xml
X%%PWDDIR%%/locale/cs_CZ/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/de_DE/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/en_US/help.xml
X%%PWDDIR%%/locale/es_ES/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/fi_FI/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/fi_FI/help.xml
X%%PWDDIR%%/locale/fr_FR/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/it_IT/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/bg_BG/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/nn_NO/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/pl_PL/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/pt_BR/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/ru_RU/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/ru_RU.KOI8-R/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/sv_SE/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/locale/zh_TW/LC_MESSAGES/passwd.mo
X%%PWDDIR%%/po/zh_TW.po
X%%PWDDIR%%/po/Makefile
X%%PWDDIR%%/po/README
X%%PWDDIR%%/po/bg_BG.po
X%%PWDDIR%%/po/cs_CZ.po
X%%PWDDIR%%/po/de_DE.po
X%%PWDDIR%%/po/es_ES.po
X%%PWDDIR%%/po/extract.pl
X%%PWDDIR%%/po/fi_FI.po
X%%PWDDIR%%/po/fr_FR.po
X%%PWDDIR%%/po/it_IT.po
X%%PWDDIR%%/po/messages.po
X%%PWDDIR%%/po/nl_NL.po
X%%PWDDIR%%/po/nn_NO.po
X%%PWDDIR%%/po/passwd.pot
X%%PWDDIR%%/po/pl_PL.po
X%%PWDDIR%%/po/pt_BR.po
X%%PWDDIR%%/po/ru_RU.KOI8-R.po
X%%PWDDIR%%/po/ru_RU.po
X%%PWDDIR%%/po/shtool
X%%PWDDIR%%/po/sv_SE.po
X%%PWDDIR%%/po/xgettext.sh
X%%PWDDIR%%/po/.htaccess
X%%PWDDIR%%/scripts/passwd_expect
X%%PWDDIR%%/templates/index/notconfigured.inc
X%%PWDDIR%%/templates/main/javascript.inc
X%%PWDDIR%%/templates/main/main.inc
X%%PWDDIR%%/templates/menu/menu.inc
X%%PWDDIR%%/templates/.htaccess
X%%PWDDIR%%/templates/common-footer.inc
X%%PWDDIR%%/templates/common-header.inc
X%%PWDDIR%%/status.php
X%%PWDDIR%%/menu.php
X%%PWDDIR%%/main.php
X%%PWDDIR%%/index.php
X%%PORTDOCS%%@dirrm share/doc/horde-passwd
Xetc/horde/httpd.conf.pwd
X@dirrm %%PWDDIR%%/templates/menu
X@dirrm %%PWDDIR%%/templates/main
X@dirrm %%PWDDIR%%/templates/index
X@dirrm %%PWDDIR%%/templates
X@dirrm %%PWDDIR%%/scripts
X@dirrm %%PWDDIR%%/po
X@dirrm %%PWDDIR%%/locale/zh_TW/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/zh_TW
X@dirrm %%PWDDIR%%/locale/sv_SE/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/sv_SE
X@dirrm %%PWDDIR%%/locale/ru_RU/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/ru_RU.KOI8-R/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/ru_RU.KOI8-R
X@dirrm %%PWDDIR%%/locale/ru_RU
X@dirrm %%PWDDIR%%/locale/pt_BR/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/pt_BR
X@dirrm %%PWDDIR%%/locale/pl_PL/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/pl_PL
X@dirrm %%PWDDIR%%/locale/nn_NO/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/nn_NO
X@dirrm %%PWDDIR%%/locale/nl_NL/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/nl_NL
X@dirrm %%PWDDIR%%/locale/it_IT/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/it_IT
X@dirrm %%PWDDIR%%/locale/fr_FR/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/fr_FR
X@dirrm %%PWDDIR%%/locale/fi_FI/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/fi_FI
X@dirrm %%PWDDIR%%/locale/es_ES/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/es_ES
X@dirrm %%PWDDIR%%/locale/en_US
X@dirrm %%PWDDIR%%/locale/de_DE/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/de_DE
X@dirrm %%PWDDIR%%/locale/cs_CZ/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/cs_CZ
X@dirrm %%PWDDIR%%/locale/bg_BG/LC_MESSAGES
X@dirrm %%PWDDIR%%/locale/bg_BG
X@dirrm %%PWDDIR%%/locale
X@dirrm %%PWDDIR%%/lib/Driver
X@dirrm %%PWDDIR%%/lib
X@dirrm %%PWDDIR%%/graphics
X@dirrm %%PWDDIR%%/config
X@dirrm %%PWDDIR%%
END-of-horde-passwd/pkg-plist
echo x - horde-passwd/pkg-descr
sed 's/^X//' >horde-passwd/pkg-descr << 'END-of-horde-passwd/pkg-descr'
XPasswd is the Horde password changing application. While it has been
Xreleased and is in production use at many sites, it is also under
Xheavy development in an effort to expand and improve the module.
X
XRight now, Passwd provides fairly complete support for changing
Xpasswords via poppassd, ldap, unix expect scripts, the unix smbpasswd
Xcommand for smb/cifs password support, servuftp, vmailmgr, vpopmail,
Xand sql passwords.
X
XWWW: http://www.horde.org/passwd/
END-of-horde-passwd/pkg-descr
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040212174826.4F459AB20>