| @@ -1,92 +1,92 @@ | | | @@ -1,92 +1,92 @@ |
1 | # $NetBSD: Makefile,v 1.30 2014/05/27 13:47:25 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.31 2014/07/19 05:17:02 taca Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= ${TYPO3NAME} | | 4 | DISTNAME= ${TYPO3NAME} |
5 | PKGNAME= typo3-${VER} | | 5 | PKGNAME= typo3-${VER} |
6 | CATEGORIES= www | | 6 | CATEGORIES= www |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=typo3/} | | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=typo3/} |
8 | DISTFILES= ${TYPO3NAME}${EXTRACT_SUFX} ${SITESRC}${EXTRACT_SUFX} | | 8 | DISTFILES= ${TYPO3NAME}${EXTRACT_SUFX} ${SITESRC}${EXTRACT_SUFX} |
9 | | | 9 | |
10 | MAINTAINER= taca@NetBSD.org | | 10 | MAINTAINER= taca@NetBSD.org |
11 | HOMEPAGE= http://typo3.com/ | | 11 | HOMEPAGE= http://typo3.com/ |
12 | COMMENT= The TYPO3 content management system LTS release | | 12 | COMMENT= The TYPO3 content management system LTS release |
13 | LICENSE= gnu-gpl-v2 | | 13 | LICENSE= gnu-gpl-v2 |
14 | | | 14 | |
15 | DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,pgsql}>=5.1.0:../../databases/php-mysql | | 15 | DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,pgsql}>=5.1.0:../../databases/php-mysql |
16 | DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.2.0:../../archivers/php-zlib/ | | 16 | DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.2.0:../../archivers/php-zlib/ |
17 | DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.2.0:../../textproc/php-json | | 17 | DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.2.0:../../textproc/php-json |
18 | | | 18 | |
19 | VER= 4.5.34 | | 19 | VER= 4.5.35 |
20 | NO_BUILD= yes | | 20 | NO_BUILD= yes |
21 | USE_TOOLS+= pax | | 21 | USE_TOOLS+= pax |
22 | | | 22 | |
23 | TYPO3NAME= typo3_src-${VER} | | 23 | TYPO3NAME= typo3_src-${VER} |
24 | SITESRC= dummy-${VER} | | 24 | SITESRC= dummy-${VER} |
25 | WRKSRC= ${WRKDIR}/${DISTNAME} | | 25 | WRKSRC= ${WRKDIR}/${DISTNAME} |
26 | | | 26 | |
27 | PHP_VERSIONS_ACCEPTED= 53 | | 27 | PHP_VERSIONS_ACCEPTED= 53 |
28 | | | 28 | |
29 | # maybe resides in lang/php/phpversion.mk | | 29 | # maybe resides in lang/php/phpversion.mk |
30 | REPLACE_INTERPRETER+= php | | 30 | REPLACE_INTERPRETER+= php |
31 | REPLACE.php.old= .*php[^ ]* | | 31 | REPLACE.php.old= .*php[^ ]* |
32 | REPLACE.php.new= ${PREFIX}/bin/php | | 32 | REPLACE.php.new= ${PREFIX}/bin/php |
33 | REPLACE_FILES.php= typo3/cli_dispatch.phpsh | | 33 | REPLACE_FILES.php= typo3/cli_dispatch.phpsh |
34 | | | 34 | |
35 | TYPO3DATADIRS= fileadmin fileadmin/_temp_ fileadmin/user_upload \ | | 35 | TYPO3DATADIRS= fileadmin fileadmin/_temp_ fileadmin/user_upload \ |
36 | typo3conf typo3conf/ext typo3conf/l10n typo3temp uploads \ | | 36 | typo3conf typo3conf/ext typo3conf/l10n typo3temp uploads \ |
37 | uploads/media uploads/pics uploads/tf | | 37 | uploads/media uploads/pics uploads/tf |
38 | | | 38 | |
39 | BUILD_DEFS+= APACHE_GROUP | | 39 | BUILD_DEFS+= APACHE_GROUP |
40 | | | 40 | |
41 | FILES_SUBST+= TYPO3DIR=${TYPO3DIR} SITEDIR=${SITEDIR} | | 41 | FILES_SUBST+= TYPO3DIR=${TYPO3DIR} SITEDIR=${SITEDIR} |
42 | MESSAGE_SUBST+= TYPO3DIR=${TYPO3DIR} SITEDIR=${SITEDIR} | | 42 | MESSAGE_SUBST+= TYPO3DIR=${TYPO3DIR} SITEDIR=${SITEDIR} |
43 | PLIST_SUBST+= EGDIR=${EGDIR} SITEDIR=${SITEDIR} \ | | 43 | PLIST_SUBST+= EGDIR=${EGDIR} SITEDIR=${SITEDIR} \ |
44 | TYPO3DIR=${TYPO3DIR} TYPO3NAME=${TYPO3NAME:Q} | | 44 | TYPO3DIR=${TYPO3DIR} TYPO3NAME=${TYPO3NAME:Q} |
45 | | | 45 | |
46 | EGDIR= share/examples/typo3 | | 46 | EGDIR= share/examples/typo3 |
47 | | | 47 | |
48 | INSTALLATION_DIRS+= ${EGDIR} ${TYPO3DIR}/${SITEDIR} ${TYPO3DIR}/${TYPO3NAME} | | 48 | INSTALLATION_DIRS+= ${EGDIR} ${TYPO3DIR}/${SITEDIR} ${TYPO3DIR}/${TYPO3NAME} |
49 | | | 49 | |
50 | CONF_FILES_PERMS+= ${EGDIR}/localconf.php \ | | 50 | CONF_FILES_PERMS+= ${EGDIR}/localconf.php \ |
51 | ${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php \ | | 51 | ${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php \ |
52 | ${REAL_ROOT_USER} ${APACHE_GROUP} 0660 | | 52 | ${REAL_ROOT_USER} ${APACHE_GROUP} 0660 |
53 | | | 53 | |
54 | .for d in ${TYPO3DATADIRS} | | 54 | .for d in ${TYPO3DATADIRS} |
55 | OWN_DIRS_PERMS+= ${TYPO3DIR}/${SITEDIR}/${d} ${REAL_ROOT_USER} \ | | 55 | OWN_DIRS_PERMS+= ${TYPO3DIR}/${SITEDIR}/${d} ${REAL_ROOT_USER} \ |
56 | ${APACHE_GROUP} 0770 | | 56 | ${APACHE_GROUP} 0770 |
57 | CHECK_PERMS_SKIP+= ${TYPO3DIR}/${SITEDIR}/${d} | | 57 | CHECK_PERMS_SKIP+= ${TYPO3DIR}/${SITEDIR}/${d} |
58 | .endfor | | 58 | .endfor |
59 | | | 59 | |
60 | SUBST_CLASSES+= conf | | 60 | SUBST_CLASSES+= conf |
61 | SUBST_FILES.conf+= ${WRKSRC}/t3lib/config_default.php | | 61 | SUBST_FILES.conf+= ${WRKSRC}/t3lib/config_default.php |
62 | SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX}|g' | | 62 | SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX}|g' |
63 | SUBST_SED.conf+= -e 's|@TYPO3DIR@|${TYPO3DIR}|g' | | 63 | SUBST_SED.conf+= -e 's|@TYPO3DIR@|${TYPO3DIR}|g' |
64 | SUBST_SED.conf+= -e 's|@SITEDIR@|${SITEDIR}|g' | | 64 | SUBST_SED.conf+= -e 's|@SITEDIR@|${SITEDIR}|g' |
65 | SUBST_STAGE.conf= post-configure | | 65 | SUBST_STAGE.conf= post-configure |
66 | | | 66 | |
67 | PRINT_PLIST_AWK+= /^${EGDIR:S|/|\\/|g}/ \ | | 67 | PRINT_PLIST_AWK+= /^${EGDIR:S|/|\\/|g}/ \ |
68 | { gsub(/${EGDIR:S|/|\\/|g}/, "$${EGDIR}") } | | 68 | { gsub(/${EGDIR:S|/|\\/|g}/, "$${EGDIR}") } |
69 | PRINT_PLIST_AWK+= /^${TYPO3DIR:S|/|\\/|g}\/${TYPO3NAME}/ \ | | 69 | PRINT_PLIST_AWK+= /^${TYPO3DIR:S|/|\\/|g}\/${TYPO3NAME}/ \ |
70 | { gsub(/${TYPO3DIR:S|/|\\/|g}\/${TYPO3NAME}/, \ | | 70 | { gsub(/${TYPO3DIR:S|/|\\/|g}\/${TYPO3NAME}/, \ |
71 | "$${TYPO3DIR}/$${TYPO3NAME}") } | | 71 | "$${TYPO3DIR}/$${TYPO3NAME}") } |
72 | PRINT_PLIST_AWK+= /^${TYPO3DIR:S|/|\\/|g}\/${SITEDIR}/ \ | | 72 | PRINT_PLIST_AWK+= /^${TYPO3DIR:S|/|\\/|g}\/${SITEDIR}/ \ |
73 | { gsub(/${TYPO3DIR:S|/|\\/|g}\/${SITEDIR}/, \ | | 73 | { gsub(/${TYPO3DIR:S|/|\\/|g}\/${SITEDIR}/, \ |
74 | "$${TYPO3DIR}/$${SITEDIR}") } | | 74 | "$${TYPO3DIR}/$${SITEDIR}") } |
75 | | | 75 | |
76 | .include "../../mk/bsd.prefs.mk" | | 76 | .include "../../mk/bsd.prefs.mk" |
77 | | | 77 | |
78 | SITEDIR?= www | | 78 | SITEDIR?= www |
79 | TYPO3DIR?= share/typo3 | | 79 | TYPO3DIR?= share/typo3 |
80 | | | 80 | |
81 | do-install: | | 81 | do-install: |
82 | cd ${WRKSRC} && ${FIND} . ! -type d -a \! -name '*.orig' -print | \ | | 82 | cd ${WRKSRC} && ${FIND} . ! -type d -a \! -name '*.orig' -print | \ |
83 | pax -rw ${DESTDIR}${PREFIX}/${TYPO3DIR}/${TYPO3NAME} | | 83 | pax -rw ${DESTDIR}${PREFIX}/${TYPO3DIR}/${TYPO3NAME} |
84 | cd ${WRKDIR}/${SITESRC} && \ | | 84 | cd ${WRKDIR}/${SITESRC} && \ |
85 | ${FIND} . ! -type d -a \! -name '*.orig' -print | \ | | 85 | ${FIND} . ! -type d -a \! -name '*.orig' -print | \ |
86 | pax -rw ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR} | | 86 | pax -rw ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR} |
87 | ${RM} -f ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php | | 87 | ${RM} -f ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php |
88 | ${INSTALL_DATA} ${WRKDIR}/${SITESRC}/typo3conf/localconf.php \ | | 88 | ${INSTALL_DATA} ${WRKDIR}/${SITESRC}/typo3conf/localconf.php \ |
89 | ${DESTDIR}${PREFIX}/${EGDIR} | | 89 | ${DESTDIR}${PREFIX}/${EGDIR} |
90 | | | 90 | |
91 | .include "../../lang/php/phpversion.mk" | | 91 | .include "../../lang/php/phpversion.mk" |
92 | .include "../../mk/bsd.pkg.mk" | | 92 | .include "../../mk/bsd.pkg.mk" |