blob: 3bf15115f88caf53f1f316366b99da38345df68d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# $NetBSD: Makefile,v 1.1 2013/09/13 11:53:05 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, 6.1 based release
LICENSE= gnu-gpl-v2
DEPENDS+= ${PHP_PKG_PREFIX}-{mysqli,pgsql}>=5.1.0:../../databases/php-mysqli
DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.2.0:../../archivers/php-zlib/
DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.2.0:../../textproc/php-json
VER= 6.1.5
NO_BUILD= yes
USE_TOOLS+= bash:run pax
TYPO3NAME= typo3_src-${VER}
SITESRC= dummy-${VER}
WRKSRC= ${WRKDIR}/${DISTNAME}
# 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= /bin/sh
REPLACE_FILES.sh= typo3/contrib/flowplayer/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}
SPECIAL_PERMS= share/typo3/www/typo3conf/ext ${REAL_ROOT_USER} ${APACHE_GROUP} 0775
.for d in ${TYPO3DATADIRS}
OWN_DIRS_PERMS+= ${TYPO3DIR}/${SITEDIR}/${d} ${REAL_ROOT_USER} \
${APACHE_GROUP} 0770
CHECK_PERMS_SKIP+= ${TYPO3DIR}/${SITEDIR}/${d}
.endfor
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
CHECK_INTERPRETER_SKIP = \
${TYPO3DIR}/${TYPO3NAME}/typo3/contrib/flowplayer/plugins/flowplayer.captions/example/flvtool2-cuepoints.sh
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}
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"
|