[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / fengoffice

File: [cvs.NetBSD.org] / pkgsrc / www / fengoffice / Makefile (download)

Revision 1.38, Wed Apr 5 12:33:48 2017 UTC (2 years, 9 months ago) by fhajny
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2
Changes since 1.37: +2 -2 lines

Remove traces of textproc/php-dom which is not needed anymore, now that dom is built into PHP. Bump resp. PKGREVISION.

# $NetBSD: Makefile,v 1.38 2017/04/05 12:33:48 fhajny Exp $
#

DISTNAME=	fengoffice_3.2.2.1
PKGNAME=	${DISTNAME:S/_/-/:C/.rc$/rc1/}
PKGREVISION=	1
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=opengoo/}
EXTRACT_SUFX=	.zip

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	http://fengoffice.com/web/community/community_index.php
COMMENT=	Easy to use Open Source Web Office
LICENSE=	gnu-agpl-v3

CONFLICTS+=	opengoo-[0-9]*

DEPENDS+=	${PHP_PKG_PREFIX}-mysql>=5.1.0:../../databases/php-mysql
DEPENDS+=	${PHP_PKG_PREFIX}-mbstring>=5.1.0:../../converters/php-mbstring
DEPENDS+=	${PHP_PKG_PREFIX}-zip>=5.1.0:../../archivers/php-zip
DEPENDS+=	${PHP_PKG_PREFIX}-gd>=5.1.0:../../graphics/php-gd
DEPENDS+=	${PHP_PKG_PREFIX}-imap>=5.1.0:../../mail/php-imap

PHP_VERSIONS_ACCEPTED=	56

WRKSRC=		${WRKDIR}/fengoffice
USE_TOOLS=	pax
NO_BUILD=	yes

OWN_DIRS_PERMS+= ${FO_DIR}/public/files ${REAL_ROOT_USER} ${APACHE_GROUP} 0775
OWN_DIRS_PERMS+= ${FO_DIR}/upload ${REAL_ROOT_USER} ${APACHE_GROUP} 0770
OWN_DIRS_PERMS+= ${FO_DIR}/cache ${REAL_ROOT_USER} ${APACHE_GROUP} 0770
OWN_DIRS_PERMS+= ${FO_DIR}/config ${REAL_ROOT_USER} ${APACHE_GROUP} 0770
OWN_DIRS_PERMS+=  ${FO_DIR}/tmp ${REAL_ROOT_USER} ${APACHE_GROUP} 0770

BUILD_DEFS+=	APACHE_GROUP APACHE_USER
FILES_SUBST+=	FO_DIR=${FO_DIR} APACHE_USER=${APACHE_USER}
PLIST_SUBST+=	FO_DIR=${FO_DIR}

PRINT_PLIST_AWK+= \
		/^${FO_DIR:S|/|\\/|g}/ \
		{ gsub(/${FO_DIR:S|/|\\/|g}/, "$${FO_DIR}"); \
		print; next; }

.include "../../mk/bsd.prefs.mk"

FO_DIR?=	share/fengoffice
INSTALLATION_DIRS=	${FO_DIR}

post-extract:
	cd ${WRKSRC}; ${FIND} . -type f -exec ${CHMOD} -x {} \;
	for f in environment/classes/encoding/EncodingConverter.class.php \
		 public/assets/themes/default/stylesheets/og/co.css \
		 plugins/mail/application/helpers/MailUtilities.class.php; do \
		${TR} -d '\r' < ${WRKSRC}/$${f} > ${WRKSRC}/$${f}.new; \
		${MV} ${WRKSRC}/$${f}.new ${WRKSRC}/$${f}; \
	done

pre-install:
	${RM} -f ${WRKSRC}/config/empty.config.php
	${FIND} ${WRKSRC} -type f \
		\( -name .project -o -name .cvsignore \) -exec ${RM} -f {} \;

do-install:
	cd ${WRKSRC}; ${FIND} . -type f \! -name '*.orig' -print | \
		pax -rw ${DESTDIR}${PREFIX}/${FO_DIR}

.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"