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