diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-01-18 05:34:21 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-01-18 05:34:21 +0000 |
commit | 956668e909dcc6b3353e1104af4ca100e0f93886 (patch) | |
tree | c43bb650834b689fad10dc3d7327e6c9d5de91eb /deskutils/horde-mnemo/Makefile | |
parent | ac4750b4162935d8620878d35e712ffad7a30e92 (diff) | |
download | ports-956668e909dcc6b3353e1104af4ca100e0f93886.tar.gz ports-956668e909dcc6b3353e1104af4ca100e0f93886.zip |
Notes
Diffstat (limited to 'deskutils/horde-mnemo/Makefile')
-rw-r--r-- | deskutils/horde-mnemo/Makefile | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/deskutils/horde-mnemo/Makefile b/deskutils/horde-mnemo/Makefile new file mode 100644 index 000000000000..e1cfe0969d02 --- /dev/null +++ b/deskutils/horde-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> |