f7fbec66f4
Changes since 2.2.4rc1: [mdj] SECURITY: Add dereferer to strip off session information from links to the outside of the Horde system to protect against session hijacking. [jan] Fix a bug with importing vCard 2.1 data. [jan] Add Arabic (Syria) translation (Platinum Development Team <devteam@platinum-sy.net>).
63 lines
2.3 KiB
Makefile
63 lines
2.3 KiB
Makefile
# $NetBSD: Makefile,v 1.26 2003/09/14 21:26:40 bouyer Exp $
|
|
|
|
DISTNAME= horde-2.2.4
|
|
CATEGORIES= www
|
|
MASTER_SITES= ftp://ftp.horde.org/pub/horde/tarballs/
|
|
|
|
MAINTAINER= bouyer@NetBSD.org
|
|
HOMEPAGE= http://www.horde.org/
|
|
COMMENT= PHP application framework
|
|
|
|
DEPENDS+= php-gettext>=4.3.3:../../devel/php4-gettext
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/horde
|
|
EGDIR= ${PREFIX}/share/examples/horde
|
|
HORDEDIR= ${PREFIX}/share/horde
|
|
|
|
MESSAGE_SUBST+= HORDEDIR=${HORDEDIR}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
|
|
|
USE_PKGINSTALL= YES
|
|
CONF_FILES= ${EGDIR}/horde.conf ${PKG_SYSCONFDIR}/horde.conf
|
|
CONF_FILES+= ${HORDEDIR}/config/horde.php.dist ${HORDEDIR}/config/horde.php
|
|
SUPPORT_FILES+= ${HORDEDIR}/config/html.php.dist ${HORDEDIR}/config/html.php
|
|
SUPPORT_FILES+= ${HORDEDIR}/config/lang.php.dist ${HORDEDIR}/config/lang.php
|
|
SUPPORT_FILES+= ${HORDEDIR}/config/mime_drivers.php.dist ${HORDEDIR}/config/mime_drivers.php
|
|
SUPPORT_FILES+= ${HORDEDIR}/config/mime_mapping.php.dist ${HORDEDIR}/config/mime_mapping.php
|
|
SUPPORT_FILES+= ${HORDEDIR}/config/motd.php.dist ${HORDEDIR}/config/motd.php
|
|
SUPPORT_FILES+= ${HORDEDIR}/config/prefs.php.dist ${HORDEDIR}/config/prefs.php
|
|
SUPPORT_FILES+= ${HORDEDIR}/config/registry.php.dist ${HORDEDIR}/config/registry.php
|
|
|
|
post-patch:
|
|
cd ${WRKSRC}/scripts; \
|
|
for FILE in mime_mapping/convert.pl; do \
|
|
${MV} -f $${FILE} $${FILE}.orig; \
|
|
${SED} -e "s|/usr/bin/perl|${PERL5}|g" \
|
|
$${FILE}.orig > $${FILE}; \
|
|
done
|
|
|
|
do-build:
|
|
${FIND} ${WRKSRC} -name "*.orig" -exec ${RM} -f {} \;
|
|
${FIND} ${WRKSRC} -name .htaccess -exec ${RM} -f {} \;
|
|
${FIND} ${WRKSRC}/scripts -name "*.pl" -exec ${CHMOD} +x {} \;
|
|
${FIND} ${WRKSRC}/scripts -name "*.sh" -exec ${CHMOD} +x {} \;
|
|
|
|
pre-install:
|
|
${SED} -e "s|@HORDEDIR@|${HORDEDIR}|g" \
|
|
${FILESDIR}/horde.conf.dist > ${WRKDIR}/horde.conf.dist
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${DOCDIR} ${EGDIR} ${HORDEDIR}
|
|
cd ${WRKDIR}; ${INSTALL_DATA} horde.conf.dist ${EGDIR}/horde.conf
|
|
cd ${WRKSRC}; ${INSTALL_DATA} COPYING README docs/* ${DOCDIR}
|
|
cd ${WRKSRC}; ${CP} -R graphics lib locale po scripts templates util ${HORDEDIR}
|
|
${INSTALL_DATA_DIR} ${HORDEDIR}/config
|
|
cd ${WRKSRC}/config; ${INSTALL_DATA} * ${HORDEDIR}/config
|
|
cd ${WRKSRC}; ${INSTALL_DATA} *.php ${HORDEDIR}
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${HORDEDIR}
|
|
${CHMOD} -R a-w ${HORDEDIR}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|