=================================================================== RCS file: /cvs/ports/mail/squirrelmail/Makefile,v retrieving revision 1.3 retrieving revision 1.11 diff -u -r1.3 -r1.11 --- ports/mail/squirrelmail/Makefile 2009/02/26 18:32:47 1.3 +++ ports/mail/squirrelmail/Makefile 2011/07/17 20:56:40 1.11 @@ -1,14 +1,15 @@ -# $OpenBSD: Makefile,v 1.3 2009/02/26 18:32:47 yason Exp $ +# $OpenBSD: Makefile,v 1.11 2011/07/17 20:56:40 yason Exp $ COMMENT = standards-based webmail package written in PHP -DISTNAME = squirrelmail-1.4.17 +DISTNAME = squirrelmail-webmail-1.4.22 +PKGNAME = ${DISTNAME:S/-webmail//} CATEGORIES = mail www HOMEPAGE = http://www.squirrelmail.org/ -MAINTAINER = Kirill Bychkov # GPLv2 PERMIT_PACKAGE_CDROM = Yes @@ -19,13 +20,20 @@ MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=squirrelmail/} NO_BUILD = Yes +NO_REGRESS = Yes +PKG_ARCH = * PREFIX = /var/www INSTDIR = ${PREFIX}/htdocs/squirrelmail -pre-fake: - ${INSTALL_DATA_DIR} ${INSTDIR} +RUN_DEPENDS = php5-core-*:www/php5/core + +do-configure: + # This option hides SquirrelMail version on login page + echo "\$$hide_sm_attributions = true;" >> ${WRKDIST}/config/config_local.php + mv ${WRKDIST}/config/config_local.php ${WRKDIST}/config/config_local_default.php do-install: - @cp -r ${WRKDIST}/* ${INSTDIR} + ${INSTALL_DATA_DIR} ${INSTDIR} + cd ${WRKDIST}; tar cf - . | tar xf - -C ${INSTDIR} .include