pkgsrc/www/typo3_47/Makefile
taca 8ad6a3c238 Update typo3_47 package to 4.7.20 (TYPO3 4.7.20).
2014-10-22  6b61880                  [RELEASE] Release of TYPO3 4.7.20 (TYPO3 Release Team)
2014-10-22  727258f  #62357          [SECURITY] Fix DoS in openid (Markus Klein)
2014-10-22  313c4bb  #59573          [SECURITY] Fix RCE in swiftmailer (Helmut Hummel)
2014-08-23  aec409c  #60199          [BUGFIX] Collect correct information on elements in page (Jigal van Hemert)
2014-07-08  c409513  #48939,#49055   [BUGFIX] Movements pollute colPos value of content elements (Nicole Cordes)
2014-06-29  b0033d1                  [TASK] Improve travis notifications to channels (Helmut Hummel)
2014-06-05  f731fc3  #59059          [BUGFIX] New content elements are always stored on pid 0 (Markus Klein)
2014-06-03  d9d2dd1  #59034          [BUGFIX] Fix double ? in eID url for encryption key (Markus Klein)
2014-10-22 15:07:52 +00:00

100 lines
3.2 KiB
Makefile

# $NetBSD: Makefile,v 1.22 2014/10/22 15:07:52 taca Exp $
#
DISTNAME= ${TYPO3NAME}
PKGNAME= typo3-${VER}
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=typo3/}
DISTFILES= ${TYPO3NAME}${EXTRACT_SUFX} ${SITESRC}${EXTRACT_SUFX}
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://typo3.com/
COMMENT= The TYPO3 content management system, 4.7 based release
LICENSE= gnu-gpl-v2
DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,pgsql}>=5.1.0:../../databases/php-mysql
DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.2.0:../../archivers/php-zlib/
DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.2.0:../../textproc/php-json
VER= 4.7.20
NO_BUILD= yes
USE_TOOLS+= bash:run pax
TYPO3NAME= typo3_src-${VER}
SITESRC= dummy-${VER}
WRKSRC= ${WRKDIR}/${DISTNAME}
PHP_VERSIONS_ACCEPTED= 53
# maybe resides in lang/php/phpversion.mk
REPLACE_INTERPRETER+= php
REPLACE.php.old= .*php[^ ]*
REPLACE.php.new= ${PREFIX}/bin/php
REPLACE_FILES.php= typo3/cli_dispatch.phpsh
REPLACE_INTERPRETER+= sh
REPLACE.sh.old= /bin/bash
REPLACE.sh.new= ${TOOLS_PATH.bash}
REPLACE_FILES.sh= typo3/contrib/flowplayer/plugins/flowplayer.captions/example/flvtool2-cuepoints.sh
TYPO3DATADIRS= fileadmin fileadmin/_temp_ fileadmin/user_upload \
typo3conf typo3conf/ext typo3conf/l10n typo3temp uploads \
uploads/media uploads/pics uploads/tf
BUILD_DEFS+= APACHE_GROUP
FILES_SUBST+= TYPO3DIR=${TYPO3DIR} SITEDIR=${SITEDIR}
MESSAGE_SUBST+= TYPO3DIR=${TYPO3DIR} SITEDIR=${SITEDIR}
PLIST_SUBST+= EGDIR=${EGDIR} SITEDIR=${SITEDIR} \
TYPO3DIR=${TYPO3DIR} TYPO3NAME=${TYPO3NAME:Q}
EGDIR= share/examples/typo3
INSTALLATION_DIRS+= ${EGDIR} ${TYPO3DIR}/${SITEDIR} ${TYPO3DIR}/${TYPO3NAME}
CONF_FILES_PERMS+= ${EGDIR}/localconf.php \
${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php \
${REAL_ROOT_USER} ${APACHE_GROUP} 0660
.for d in ${TYPO3DATADIRS}
OWN_DIRS_PERMS+= ${TYPO3DIR}/${SITEDIR}/${d} ${REAL_ROOT_USER} \
${APACHE_GROUP} 0770
CHECK_PERMS_SKIP+= ${TYPO3DIR}/${SITEDIR}/${d}
.endfor
CHECK_INTERPRETER_SKIP = \
share/typo3/typo3_src-4.7.14/typo3/contrib/flowplayer/plugins/flowplayer.captions/example/flvtool2-cuepoints.sh
SUBST_CLASSES+= conf
SUBST_FILES.conf+= ${WRKSRC}/t3lib/config_default.php
SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX}|g'
SUBST_SED.conf+= -e 's|@TYPO3DIR@|${TYPO3DIR}|g'
SUBST_SED.conf+= -e 's|@SITEDIR@|${SITEDIR}|g'
SUBST_STAGE.conf= post-configure
PRINT_PLIST_AWK+= /^${EGDIR:S|/|\\/|g}/ \
{ gsub(/${EGDIR:S|/|\\/|g}/, "$${EGDIR}") }
PRINT_PLIST_AWK+= /^${TYPO3DIR:S|/|\\/|g}\/${TYPO3NAME}/ \
{ gsub(/${TYPO3DIR:S|/|\\/|g}\/${TYPO3NAME}/, \
"$${TYPO3DIR}/$${TYPO3NAME}") }
PRINT_PLIST_AWK+= /^${TYPO3DIR:S|/|\\/|g}\/${SITEDIR}/ \
{ gsub(/${TYPO3DIR:S|/|\\/|g}\/${SITEDIR}/, \
"$${TYPO3DIR}/$${SITEDIR}") }
.include "../../mk/bsd.prefs.mk"
SITEDIR?= www
TYPO3DIR?= share/typo3
do-install:
cd ${WRKSRC} && ${FIND} . ! -type d -a \! -name '*.orig' -print | \
pax -rw ${DESTDIR}${PREFIX}/${TYPO3DIR}/${TYPO3NAME}
cd ${WRKDIR}/${SITESRC} && \
${FIND} . ! -type d -a \! -name '*.orig' -print | \
pax -rw ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR}
${RM} -f ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php
${INSTALL_DATA} ${WRKDIR}/${SITESRC}/typo3conf/localconf.php \
${DESTDIR}${PREFIX}/${EGDIR}
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"