=================================================================== RCS file: /cvs/ports/mail/squirrelmail/Makefile,v retrieving revision 1.12 retrieving revision 1.17 diff -u -r1.12 -r1.17 --- ports/mail/squirrelmail/Makefile 2011/07/25 21:09:52 1.12 +++ ports/mail/squirrelmail/Makefile 2013/10/06 17:29:16 1.17 @@ -1,38 +1,39 @@ -# $OpenBSD: Makefile,v 1.12 2011/07/25 21:09:52 yason Exp $ +# $OpenBSD: Makefile,v 1.17 2013/10/06 17:29:16 kirby Exp $ COMMENT = standards-based webmail package written in PHP DISTNAME = squirrelmail-webmail-1.4.22 +REVISION = 0 PKGNAME = ${DISTNAME:S/-webmail//} CATEGORIES = mail www HOMEPAGE = http://www.squirrelmail.org/ -MAINTAINER = Kirill Bychkov +MAINTAINER = Kirill Bychkov # GPLv2 PERMIT_PACKAGE_CDROM = Yes -PERMIT_PACKAGE_FTP = Yes -PERMIT_DISTFILES_CDROM =Yes -PERMIT_DISTFILES_FTP = Yes MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=squirrelmail/} NO_BUILD = Yes -NO_REGRESS = Yes +NO_TEST = Yes PKG_ARCH = * PREFIX = /var/www INSTDIR = ${PREFIX}/htdocs/squirrelmail MODULES = lang/php -RUN_DEPENDS = lang/php/${MODPHP_VERSION} +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 + # php-5.4 compatibility + perl -pi -e 's,hex2bin,convertHex2bin,g' ${WRKDIST}/plugins/mail_fetch/functions.php do-install: ${INSTALL_DATA_DIR} ${INSTDIR} cd ${WRKDIST}; tar cf - . | tar xf - -C ${INSTDIR}