=================================================================== RCS file: /cvs/ports/mail/squirrelmail/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.14 diff -u -r1.1.1.1 -r1.14 --- ports/mail/squirrelmail/Makefile 2008/11/23 14:24:39 1.1.1.1 +++ ports/mail/squirrelmail/Makefile 2013/02/20 20:20:25 1.14 @@ -1,14 +1,15 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2008/11/23 14:24:39 yason Exp $ +# $OpenBSD: Makefile,v 1.14 2013/02/20 20:20:25 kirby Exp $ COMMENT = standards-based webmail package written in PHP -DISTNAME = squirrelmail-1.4.16 +DISTNAME = squirrelmail-webmail-1.4.22 +PKGNAME = ${DISTNAME:S/-webmail//} CATEGORIES = mail www HOMEPAGE = http://www.squirrelmail.org/ -MAINTAINER = Kirill S. Bychkov # GPLv2 PERMIT_PACKAGE_CDROM = Yes @@ -19,13 +20,23 @@ 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} +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/squirrelmail/data/,/var/squirrelmail/data,g' \ + ${WRKDIST}/config/config_default.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