=================================================================== RCS file: /cvs/ports/mail/squirrelmail/Makefile,v retrieving revision 1.8 retrieving revision 1.15 diff -u -r1.8 -r1.15 --- ports/mail/squirrelmail/Makefile 2010/03/09 20:03:44 1.8 +++ ports/mail/squirrelmail/Makefile 2013/02/20 21:14:54 1.15 @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.8 2010/03/09 20:03:44 yason Exp $ +# $OpenBSD: Makefile,v 1.15 2013/02/20 21:14:54 kirby Exp $ COMMENT = standards-based webmail package written in PHP -DISTNAME = squirrelmail-1.4.20 +DISTNAME = squirrelmail-webmail-1.4.22 +PKGNAME = ${DISTNAME:S/-webmail//} CATEGORIES = mail www @@ -25,8 +26,14 @@ PREFIX = /var/www INSTDIR = ${PREFIX}/htdocs/squirrelmail -RUN_DEPENDS = :php5-core-*:www/php5/core +MODULES = lang/php +MODPHP_RUNDEP = Yes +do-configure: + # This option hides SquirrelMail version on login page + echo "\$$hide_sm_attributions = true;" >> ${WRKDIST}/config/config_local.php + perl -pi -e 's,/var/local/,/var/,g' ${WRKDIST}/config/config_default.php + mv ${WRKDIST}/config/config_local.php ${WRKDIST}/config/config_local_default.php do-install: ${INSTALL_DATA_DIR} ${INSTDIR} cd ${WRKDIST}; tar cf - . | tar xf - -C ${INSTDIR}