| @@ -1,106 +1,105 @@ | | | @@ -1,106 +1,105 @@ |
1 | # $NetBSD: Makefile,v 1.6 2014/05/29 15:44:57 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.7 2014/06/10 03:47:59 taca Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= ${CT_VERSION} | | 4 | DISTNAME= ${CT_VERSION} |
5 | PKGNAME= contao${CT_VER}-${CT_PKGVER} | | 5 | PKGNAME= contao${CT_VER}-${CT_PKGVER} |
6 | PKGREVISION= 2 | | | |
7 | CATEGORIES= www | | 6 | CATEGORIES= www |
8 | MASTER_SITES= ${CT_MASTER_SITE} | | 7 | MASTER_SITES= ${CT_MASTER_SITE} |
9 | | | 8 | |
10 | MAINTAINER= taca@NetBSD.org | | 9 | MAINTAINER= taca@NetBSD.org |
11 | HOMEPAGE= http://www.contao.org/ | | 10 | HOMEPAGE= http://www.contao.org/ |
12 | COMMENT= Contao Open Source CMS ${CT_VERSION} | | 11 | COMMENT= Contao Open Source CMS ${CT_VERSION} |
13 | LICENSE= gnu-lgpl-v3 | | 12 | LICENSE= gnu-lgpl-v3 |
14 | | | 13 | |
15 | DEPENDS+= ${PHP_PKG_PREFIX}-dom>=5.3.2:../../textproc/php-dom | | 14 | DEPENDS+= ${PHP_PKG_PREFIX}-dom>=5.3.2:../../textproc/php-dom |
16 | DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.3.2:../../graphics/php-gd | | 15 | DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.3.2:../../graphics/php-gd |
17 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.3.2:../../converters/php-mbstring | | 16 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.3.2:../../converters/php-mbstring |
18 | DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,mysqli}>=5.3.2:../../databases/php-mysqli | | 17 | DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,mysqli}>=5.3.2:../../databases/php-mysqli |
19 | DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.3.2:../../security/php-mcrypt | | 18 | DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.3.2:../../security/php-mcrypt |
20 | DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.3.2:../../net/php-soap | | 19 | DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.3.2:../../net/php-soap |
21 | DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.2.7:../../archivers/php-zlib | | 20 | DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.2.7:../../archivers/php-zlib |
22 | DEPENDS+= bash>=4.0:../../shells/bash | | 21 | DEPENDS+= bash>=4.0:../../shells/bash |
23 | | | 22 | |
24 | CT_VERS= 32 | | 23 | CT_VERS= 32 |
25 | USE_TOOLS= bash pax | | 24 | USE_TOOLS= bash pax |
26 | NO_BUILD= yes | | 25 | NO_BUILD= yes |
27 | | | 26 | |
28 | EG_CONFIG= ace.php agents.php constants.php countries.php \ | | 27 | EG_CONFIG= ace.php agents.php constants.php countries.php \ |
29 | languages.php tcpdf.php timezones.php \ | | 28 | languages.php tcpdf.php timezones.php \ |
30 | tinyFlash.php tinyMCE.php tinyNews.php | | 29 | tinyFlash.php tinyMCE.php tinyNews.php |
31 | EG_DATA= ${WWW_EG_FILES} system/config files | | 30 | EG_DATA= ${WWW_EG_FILES} system/config files |
32 | EG_TEMPLATES= tinymce.css tiny_templates/index.html | | 31 | EG_TEMPLATES= tinymce.css tiny_templates/index.html |
33 | WWW_EG_FILES= robots.txt | | 32 | WWW_EG_FILES= robots.txt |
34 | RESTRICT_DIRS= system/cache system/logs system/tmp templates files | | 33 | RESTRICT_DIRS= system/cache system/logs system/tmp templates files |
35 | | | 34 | |
36 | CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf | | 35 | CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf |
37 | | | 36 | |
38 | .for f in ${EG_CONFIG} | | 37 | .for f in ${EG_CONFIG} |
39 | CONF_FILES+= ${CT_EGDIR}/system/config/${f} ${CT_WEBDIR}/system/config/${f} | | 38 | CONF_FILES+= ${CT_EGDIR}/system/config/${f} ${CT_WEBDIR}/system/config/${f} |
40 | .endfor | | 39 | .endfor |
41 | | | 40 | |
42 | MAKE_DIRS+= ${CT_WEBDIR}/files/tiny_templates | | 41 | MAKE_DIRS+= ${CT_WEBDIR}/files/tiny_templates |
43 | | | 42 | |
44 | REPLACE_BASH= system/bin/minify | | 43 | REPLACE_BASH= system/bin/minify |
45 | | | 44 | |
46 | .for f in ${EG_TEMPLATES} | | 45 | .for f in ${EG_TEMPLATES} |
47 | REQD_FILES+= ${CT_EGDIR}/files/${f} ${CT_WEBDIR}/files/${f} | | 46 | REQD_FILES+= ${CT_EGDIR}/files/${f} ${CT_WEBDIR}/files/${f} |
48 | .endfor | | 47 | .endfor |
49 | | | 48 | |
50 | .for f in ${WWW_EG_FILES} | | 49 | .for f in ${WWW_EG_FILES} |
51 | REQD_FILES+= ${CT_EGDIR}/${f} ${CT_WEBDIR}/${f} | | 50 | REQD_FILES+= ${CT_EGDIR}/${f} ${CT_WEBDIR}/${f} |
52 | .endfor | | 51 | .endfor |
53 | | | 52 | |
54 | .for d in ${RESTRICT_DIRS} | | 53 | .for d in ${RESTRICT_DIRS} |
55 | OWN_DIRS_PERMS+= ${CT_WEBDIR}/${d} ${APACHE_USER} ${APACHE_GROUP} 0770 | | 54 | OWN_DIRS_PERMS+= ${CT_WEBDIR}/${d} ${APACHE_USER} ${APACHE_GROUP} 0770 |
56 | .endfor | | 55 | .endfor |
57 | | | 56 | |
58 | REPLACE_INTERPRETER+= php | | 57 | REPLACE_INTERPRETER+= php |
59 | REPLACE.php.old= .*php[^ ]* | | 58 | REPLACE.php.old= .*php[^ ]* |
60 | REPLACE.php.new= ${PREFIX}/bin/php | | 59 | REPLACE.php.new= ${PREFIX}/bin/php |
61 | REPLACE_FILES.php= system/bin/ide_compat | | 60 | REPLACE_FILES.php= system/bin/ide_compat |
62 | | | 61 | |
63 | SUBST_CLASSES+= conf | | 62 | SUBST_CLASSES+= conf |
64 | SUBST_FILES.conf+= ${WRKDIR}/contao.conf | | 63 | SUBST_FILES.conf+= ${WRKDIR}/contao.conf |
65 | SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX:Q}|g' | | 64 | SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX:Q}|g' |
66 | SUBST_SED.conf+= -e 's|@CT_WEBDIR@|${CT_WEBDIR:Q}|g' | | 65 | SUBST_SED.conf+= -e 's|@CT_WEBDIR@|${CT_WEBDIR:Q}|g' |
67 | SUBST_STAGE.conf= post-configure | | 66 | SUBST_STAGE.conf= post-configure |
68 | | | 67 | |
69 | SUBST_CLASSES+= php | | 68 | SUBST_CLASSES+= php |
70 | SUBST_FILES.php+= ${WRKSRC}/system/bin/transifex | | 69 | SUBST_FILES.php+= ${WRKSRC}/system/bin/transifex |
71 | SUBST_SED.php+= -e "s|\#!/.*php|\#!${PREFIX}/bin/php|" | | 70 | SUBST_SED.php+= -e "s|\#!/.*php|\#!${PREFIX}/bin/php|" |
72 | SUBST_STAGE.php= post-configure | | 71 | SUBST_STAGE.php= post-configure |
73 | | | 72 | |
74 | WWW_FILES= .gitignore .htaccess.default README.md assets contao \ | | 73 | WWW_FILES= .gitignore .htaccess.default README.md assets contao \ |
75 | index.php share templates | | 74 | index.php share templates |
76 | WWW_SYSFILES= .htaccess bin config/default.php cron docs helper \ | | 75 | WWW_SYSFILES= .htaccess bin config/default.php cron docs helper \ |
77 | initialize.php modules themes | | 76 | initialize.php modules themes |
78 | | | 77 | |
79 | INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config | | 78 | INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config |
80 | | | 79 | |
81 | PKG_GROUPS_VARS+= APACHE_GROUP | | 80 | PKG_GROUPS_VARS+= APACHE_GROUP |
82 | PKG_USERS_VARS+= APACHE_USER | | 81 | PKG_USERS_VARS+= APACHE_USER |
83 | | | 82 | |
84 | pre-configure: | | 83 | pre-configure: |
85 | cd ${WRKSRC} && ${RM} -f assets/css/*.css | | 84 | cd ${WRKSRC} && ${RM} -f assets/css/*.css |
86 | ${CP} ${FILESDIR}/contao.conf ${WRKDIR} | | 85 | ${CP} ${FILESDIR}/contao.conf ${WRKDIR} |
87 | | | 86 | |
88 | pre-install: | | 87 | pre-install: |
89 | cd ${WRKSRC}; ${RM} -fr files/music_academy templates/music_academy.sql | | 88 | cd ${WRKSRC}; ${RM} -fr files/music_academy templates/music_academy.sql |
90 | ${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \; | | 89 | ${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \; |
91 | cd ${WRKSRC}/assets && \ | | 90 | cd ${WRKSRC}/assets && \ |
92 | ${FIND} ace html5shiv jquery/ui -type f -exec chmod -x {} \; | | 91 | ${FIND} ace html5shiv jquery/ui -type f -exec chmod -x {} \; |
93 | | | 92 | |
94 | do-install: | | 93 | do-install: |
95 | cd ${WRKSRC}; pax -rw ${WWW_FILES} ${DESTDIR}${PREFIX}/${CT_WEBDIR} | | 94 | cd ${WRKSRC}; pax -rw ${WWW_FILES} ${DESTDIR}${PREFIX}/${CT_WEBDIR} |
96 | cd ${WRKSRC}/system; \ | | 95 | cd ${WRKSRC}/system; \ |
97 | pax -rw ${WWW_SYSFILES} \ | | 96 | pax -rw ${WWW_SYSFILES} \ |
98 | ${DESTDIR}${PREFIX}/${CT_WEBDIR}/system | | 97 | ${DESTDIR}${PREFIX}/${CT_WEBDIR}/system |
99 | cd ${WRKSRC}; pax -rw ${EG_DATA} ${DESTDIR}${PREFIX}/${CT_EGDIR} | | 98 | cd ${WRKSRC}; pax -rw ${EG_DATA} ${DESTDIR}${PREFIX}/${CT_EGDIR} |
100 | ${INSTALL_DATA} ${WRKDIR}/contao.conf ${DESTDIR}${PREFIX}/${CT_EGDIR} | | 99 | ${INSTALL_DATA} ${WRKDIR}/contao.conf ${DESTDIR}${PREFIX}/${CT_EGDIR} |
101 | ${INSTALL_DATA} ${FILESDIR}/README \ | | 100 | ${INSTALL_DATA} ${FILESDIR}/README \ |
102 | ${DESTDIR}${PREFIX}/${CT_DOCDIR} | | 101 | ${DESTDIR}${PREFIX}/${CT_DOCDIR} |
103 | | | 102 | |
104 | .include "../../www/contao/Makefile.common" | | 103 | .include "../../www/contao/Makefile.common" |
105 | .include "../../lang/php/phpversion.mk" | | 104 | .include "../../lang/php/phpversion.mk" |
106 | .include "../../mk/bsd.pkg.mk" | | 105 | .include "../../mk/bsd.pkg.mk" |