| @@ -1,97 +1,97 @@ | | | @@ -1,97 +1,97 @@ |
1 | # $NetBSD: Makefile,v 1.7 2012/03/13 13:13:52 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.8 2012/03/28 12:57:23 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 | PKG_DESTDIR_SUPPORT= user-destdir | | 19 | PKG_DESTDIR_SUPPORT= user-destdir |
20 | | | 20 | |
21 | VER= 4.5.13 | | 21 | VER= 4.5.14 |
22 | NO_BUILD= yes | | 22 | NO_BUILD= yes |
23 | USE_TOOLS= pax | | 23 | USE_TOOLS= pax |
24 | | | 24 | |
25 | TYPO3NAME= typo3_src-${VER} | | 25 | TYPO3NAME= typo3_src-${VER} |
26 | SITESRC= dummy-${VER} | | 26 | SITESRC= dummy-${VER} |
27 | WRKSRC= ${WRKDIR}/${DISTNAME} | | 27 | WRKSRC= ${WRKDIR}/${DISTNAME} |
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 | TYPO3DATADIR= fileadmin fileadmin/_temp_ fileadmin/user_upload \ | | 35 | TYPO3DATADIR= 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:Q} SITEDIR=${SITEDIR:Q} | | 41 | FILES_SUBST+= TYPO3DIR=${TYPO3DIR:Q} SITEDIR=${SITEDIR:Q} |
42 | PLIST_SUBST+= EGDIR=${EGDIR:Q} SITEDIR=${SITEDIR:Q} \ | | 42 | PLIST_SUBST+= EGDIR=${EGDIR:Q} SITEDIR=${SITEDIR:Q} \ |
43 | TYPO3DIR=${TYPO3DIR:Q} TYPO3NAME=${TYPO3NAME:Q} | | 43 | TYPO3DIR=${TYPO3DIR:Q} TYPO3NAME=${TYPO3NAME:Q} |
44 | | | 44 | |
45 | EGDIR= share/examples/typo3 | | 45 | EGDIR= share/examples/typo3 |
46 | | | 46 | |
47 | INSTALLATION_DIRS+= ${EGDIR} ${TYPO3DIR}/${SITEDIR} ${TYPO3DIR}/${TYPO3NAME} | | 47 | INSTALLATION_DIRS+= ${EGDIR} ${TYPO3DIR}/${SITEDIR} ${TYPO3DIR}/${TYPO3NAME} |
48 | | | 48 | |
49 | CONF_FILES_PERMS+= ${EGDIR}/localconf.php \ | | 49 | CONF_FILES_PERMS+= ${EGDIR}/localconf.php \ |
50 | ${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php \ | | 50 | ${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php \ |
51 | ${REAL_ROOT_USER} ${APACHE_GROUP} 0660 | | 51 | ${REAL_ROOT_USER} ${APACHE_GROUP} 0660 |
52 | | | 52 | |
53 | .for d in ${TYPO3DATADIR} | | 53 | .for d in ${TYPO3DATADIR} |
54 | OWN_DIRS_PERMS+= ${TYPO3DIR}/${SITEDIR}/${d} ${REAL_ROOT_USER} \ | | 54 | OWN_DIRS_PERMS+= ${TYPO3DIR}/${SITEDIR}/${d} ${REAL_ROOT_USER} \ |
55 | ${APACHE_GROUP} 0770 | | 55 | ${APACHE_GROUP} 0770 |
56 | CHECK_PERMS_SKIP+= ${TYPO3DIR}/${SITEDIR}/${d} | | 56 | CHECK_PERMS_SKIP+= ${TYPO3DIR}/${SITEDIR}/${d} |
57 | .endfor | | 57 | .endfor |
58 | | | 58 | |
59 | SUBST_CLASSES+= conf | | 59 | SUBST_CLASSES+= conf |
60 | SUBST_FILES.conf+= ${WRKDIR}/README | | 60 | SUBST_FILES.conf+= ${WRKDIR}/README |
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:Q}|g' | | 62 | SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX:Q}|g' |
63 | SUBST_SED.conf+= -e 's|@TYPO3DIR@|${TYPO3DIR:Q}|g' | | 63 | SUBST_SED.conf+= -e 's|@TYPO3DIR@|${TYPO3DIR:Q}|g' |
64 | SUBST_SED.conf+= -e 's|@SITEDIR@|${SITEDIR:Q}|g' | | 64 | SUBST_SED.conf+= -e 's|@SITEDIR@|${SITEDIR:Q}|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 | post-extract: | | 81 | post-extract: |
82 | ${CP} ${FILESDIR}/README ${WRKDIR} | | 82 | ${CP} ${FILESDIR}/README ${WRKDIR} |
83 | | | 83 | |
84 | pre-install: | | 84 | pre-install: |
85 | ${FIND} ${WRKSRC:Q} -name "*.orig*" -exec ${RM} -f {} \; | | 85 | ${FIND} ${WRKSRC:Q} -name "*.orig*" -exec ${RM} -f {} \; |
86 | | | 86 | |
87 | do-install: | | 87 | do-install: |
88 | cd ${WRKSRC}; \ | | 88 | cd ${WRKSRC}; \ |
89 | pax -rw . ${DESTDIR}${PREFIX}/${TYPO3DIR}/${TYPO3NAME} | | 89 | pax -rw . ${DESTDIR}${PREFIX}/${TYPO3DIR}/${TYPO3NAME} |
90 | cd ${WRKDIR}/${SITESRC}; \ | | 90 | cd ${WRKDIR}/${SITESRC}; \ |
91 | pax -rw . ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR} | | 91 | pax -rw . ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR} |
92 | ${RM} -f ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php | | 92 | ${RM} -f ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php |
93 | ${INSTALL_DATA} ${WRKDIR}/${SITESRC}/typo3conf/localconf.php \ | | 93 | ${INSTALL_DATA} ${WRKDIR}/${SITESRC}/typo3conf/localconf.php \ |
94 | ${DESTDIR}${PREFIX}/${EGDIR} | | 94 | ${DESTDIR}${PREFIX}/${EGDIR} |
95 | | | 95 | |
96 | .include "../../lang/php/phpversion.mk" | | 96 | .include "../../lang/php/phpversion.mk" |
97 | .include "../../mk/bsd.pkg.mk" | | 97 | .include "../../mk/bsd.pkg.mk" |