2013-10-09 16:40:09 +02:00
|
|
|
# $NetBSD: Makefile,v 1.27 2013/10/09 14:40:09 taca Exp $
|
2009-12-20 16:39:45 +01:00
|
|
|
#
|
|
|
|
|
2013-10-09 16:40:09 +02:00
|
|
|
DISTNAME= fengoffice_2.3.2.1
|
2010-07-05 05:26:46 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/_/-/:C/.rc$/rc1/}
|
2009-12-20 16:39:45 +01:00
|
|
|
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
|
2013-03-04 22:57:21 +01:00
|
|
|
LICENSE= gnu-agpl-v3
|
2009-12-20 16:39:45 +01:00
|
|
|
|
|
|
|
CONFLICTS+= opengoo-[0-9]*
|
|
|
|
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=5.1.0:../../databases/php-mysql
|
2010-03-16 17:02:20 +01:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.1.0:../../converters/php-mbstring
|
2009-12-20 16:39:45 +01:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-zip>=5.1.0:../../archivers/php-zip
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.1.0:../../graphics/php-gd
|
2010-03-16 17:02:20 +01:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-dom>=5.1.0:../../textproc/php-dom
|
2009-12-20 16:39:45 +01:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-imap>=5.1.0:../../mail/php-imap
|
|
|
|
|
2013-03-14 17:33:15 +01:00
|
|
|
EXTRACT_DIR= ${WRKDIR}/fengoffice
|
2011-06-15 17:19:44 +02:00
|
|
|
WRKSRC= ${WRKDIR}/fengoffice
|
2009-12-20 16:39:45 +01:00
|
|
|
USE_TOOLS= pax
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2010-02-19 20:46:18 +01:00
|
|
|
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
|
2010-12-28 16:34:38 +01:00
|
|
|
OWN_DIRS_PERMS+= ${FO_DIR}/tmp ${REAL_ROOT_USER} ${APACHE_GROUP} 0770
|
2009-12-20 16:39:45 +01:00
|
|
|
|
|
|
|
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
|
2012-12-24 14:32:06 +01:00
|
|
|
INSTALLATION_DIRS= ${FO_DIR}
|
2009-12-20 16:39:45 +01:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKSRC}; ${FIND} . -type f -exec ${CHMOD} -x {} \;
|
|
|
|
|
|
|
|
pre-install:
|
2010-09-14 02:57:11 +02:00
|
|
|
${RM} -f ${WRKSRC}/config/empty.config.php
|
|
|
|
${FIND} ${WRKSRC} -type f \
|
|
|
|
\( -name .project -o -name .cvsignore \) -exec ${RM} -f {} \;
|
2009-12-20 16:39:45 +01:00
|
|
|
|
|
|
|
do-install:
|
2010-07-05 05:26:46 +02:00
|
|
|
cd ${WRKSRC}; ${FIND} . -type f \! -name '*.orig' -print | \
|
2009-12-20 16:39:45 +01:00
|
|
|
pax -rw ${DESTDIR}${PREFIX}/${FO_DIR}
|
|
|
|
|
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|