| @@ -1,39 +1,40 @@ | | | @@ -1,39 +1,40 @@ |
1 | # $NetBSD: Makefile,v 1.8 2013/04/02 15:29:00 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.9 2013/08/15 17:50:04 taca Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= contao-${CT_VERSION} | | 4 | DISTNAME= contao-${CT_VERSION} |
5 | PKGNAME= contao${CT_VER}-${CT_PKGVER} | | 5 | PKGNAME= contao${CT_VER}-${CT_PKGVER} |
| | | 6 | PKGREVISION= 1 |
6 | CATEGORIES= www | | 7 | CATEGORIES= www |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=contao/} | | 8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=contao/} |
8 | DIST_SUBDIR= ${CT_DIST_SUBDIR} | | 9 | DIST_SUBDIR= ${CT_DIST_SUBDIR} |
9 | | | 10 | |
10 | MAINTAINER= taca@NetBSD.org | | 11 | MAINTAINER= taca@NetBSD.org |
11 | HOMEPAGE= http://www.contao.org/ | | 12 | HOMEPAGE= http://www.contao.org/ |
12 | COMMENT= Contao Open Source CMS ${CT_VERBASE} | | 13 | COMMENT= Contao Open Source CMS ${CT_VERBASE} |
13 | LICENSE= gnu-lgpl-v3 | | 14 | LICENSE= gnu-lgpl-v3 |
14 | | | 15 | |
15 | DEPENDS+= ${PHP_PKG_PREFIX}-dom>=5.2.0:../../textproc/php-dom | | 16 | DEPENDS+= ${PHP_PKG_PREFIX}-dom>=5.2.0:../../textproc/php-dom |
16 | DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.2.0:../../graphics/php-gd | | 17 | DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.2.0:../../graphics/php-gd |
17 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.2.0:../../converters/php-mbstring | | 18 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.2.0:../../converters/php-mbstring |
18 | DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,mysqli}>=5.2.0:../../databases/php-mysqli | | 19 | DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,mysqli}>=5.2.0:../../databases/php-mysqli |
19 | DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.2.0:../../security/php-mcrypt | | 20 | DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.2.0:../../security/php-mcrypt |
20 | DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.2.0:../../net/php-soap | | 21 | DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.2.0:../../net/php-soap |
21 | | | 22 | |
22 | CT_VERS= 211 | | 23 | CT_VERS= 211 |
23 | USE_TOOLS= pax | | 24 | USE_TOOLS= pax |
24 | NO_BUILD= yes | | 25 | NO_BUILD= yes |
25 | | | 26 | |
26 | EG_CONFIG= agents.php codeMirror.php config.php countries.php \ | | 27 | EG_CONFIG= agents.php codeMirror.php countries.php \ |
27 | languages.php tcpdf.php timezones.php tinyFlash.php \ | | 28 | languages.php tcpdf.php timezones.php tinyFlash.php \ |
28 | tinyMCE.php tinyNews.php | | 29 | tinyMCE.php tinyNews.php |
29 | EG_DATA= ${WWW_EG_FILES} system/config tl_files | | 30 | EG_DATA= ${WWW_EG_FILES} system/config tl_files |
30 | EG_TEMPLATES= tinymce.css tiny_templates/index.html | | 31 | EG_TEMPLATES= tinymce.css tiny_templates/index.html |
31 | WWW_EG_FILES= robots.txt | | 32 | WWW_EG_FILES= robots.txt |
32 | RESTRICT_DIRS= system/html system/logs system/scripts system/tmp \ | | 33 | RESTRICT_DIRS= system/html system/logs system/scripts system/tmp \ |
33 | templates tl_files | | 34 | templates tl_files |
34 | | | 35 | |
35 | CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf | | 36 | CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf |
36 | CONF_FILES+= ${CT_EGDIR}/htaccess.default ${CT_WEBDIR}/.htaccess | | 37 | CONF_FILES+= ${CT_EGDIR}/htaccess.default ${CT_WEBDIR}/.htaccess |
37 | | | 38 | |
38 | .for f in ${EG_CONFIG} | | 39 | .for f in ${EG_CONFIG} |
39 | CONF_FILES+= ${CT_EGDIR}/system/config/${f} ${CT_WEBDIR}/system/config/${f} | | 40 | CONF_FILES+= ${CT_EGDIR}/system/config/${f} ${CT_WEBDIR}/system/config/${f} |
| @@ -52,53 +53,51 @@ REQD_FILES+= ${CT_EGDIR}/${f} ${CT_WEBDI | | | @@ -52,53 +53,51 @@ REQD_FILES+= ${CT_EGDIR}/${f} ${CT_WEBDI |
52 | .for d in ${RESTRICT_DIRS} | | 53 | .for d in ${RESTRICT_DIRS} |
53 | OWN_DIRS_PERMS+= ${CT_WEBDIR}/${d} ${APACHE_USER} ${APACHE_GROUP} 0770 | | 54 | OWN_DIRS_PERMS+= ${CT_WEBDIR}/${d} ${APACHE_USER} ${APACHE_GROUP} 0770 |
54 | .endfor | | 55 | .endfor |
55 | | | 56 | |
56 | SUBST_CLASSES+= conf | | 57 | SUBST_CLASSES+= conf |
57 | SUBST_FILES.conf+= ${WRKDIR}/contao.conf | | 58 | SUBST_FILES.conf+= ${WRKDIR}/contao.conf |
58 | SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX:Q}|g' | | 59 | SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX:Q}|g' |
59 | SUBST_SED.conf+= -e 's|@CT_WEBDIR@|${CT_WEBDIR:Q}|g' | | 60 | SUBST_SED.conf+= -e 's|@CT_WEBDIR@|${CT_WEBDIR:Q}|g' |
60 | SUBST_STAGE.conf= post-configure | | 61 | SUBST_STAGE.conf= post-configure |
61 | | | 62 | |
62 | WWW_FILES= CHANGELOG.md GPL.txt LGPL.txt README.md \ | | 63 | WWW_FILES= CHANGELOG.md GPL.txt LGPL.txt README.md \ |
63 | contao cron.php index.php plugins share.php templates \ | | 64 | contao cron.php index.php plugins share.php templates \ |
64 | typolight | | 65 | typolight |
65 | WWW_SYSFILES= config/.htaccess constants.php contao.css drivers \ | | 66 | WWW_SYSFILES= config/.htaccess config/config.php constants.php contao.css \ |
66 | functions.php html initialize.php interface.php libraries \ | | 67 | drivers functions.php html initialize.php interface.php \ |
67 | logs/.htaccess mbstring.php modules scripts/index.html \ | | 68 | libraries logs/.htaccess mbstring.php modules \ |
68 | themes tmp/.htaccess utf8_lookup.php | | 69 | scripts/index.html themes tmp/.htaccess utf8_lookup.php |
69 | | | 70 | |
70 | INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config | | 71 | INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config |
71 | | | 72 | |
72 | PKG_GROUPS_VARS+= APACHE_GROUP | | 73 | PKG_GROUPS_VARS+= APACHE_GROUP |
73 | PKG_USERS_VARS+= APACHE_USER | | 74 | PKG_USERS_VARS+= APACHE_USER |
74 | | | 75 | |
75 | pre-configure: | | 76 | pre-configure: |
76 | ${RM} -f ${WRKSRC}/.gitignore ${WRKSRC}/system/tmp/*.txt | | 77 | ${RM} -f ${WRKSRC}/.gitignore ${WRKSRC}/system/tmp/*.txt |
77 | ${CP} ${FILESDIR}/contao.conf ${WRKDIR} | | 78 | ${CP} ${FILESDIR}/contao.conf ${WRKDIR} |
78 | | | 79 | |
79 | pre-install: | | 80 | pre-install: |
80 | cd ${WRKSRC}; ${RM} -rf music_academy.css \ | | 81 | cd ${WRKSRC}; ${RM} -rf music_academy.css \ |
81 | templates/music_academy.sql tl_files/music_academy | | 82 | templates/music_academy.sql tl_files/music_academy |
82 | ${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \; | | 83 | ${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \; |
83 | ${FIND} ${WRKSRC}/plugins/tinyMCE -type f -exec ${CHMOD} -x {} \; | | 84 | ${FIND} ${WRKSRC}/plugins/tinyMCE -type f -exec ${CHMOD} -x {} \; |
84 | | | 85 | |
85 | do-install: | | 86 | do-install: |
86 | cd ${WRKSRC}; pax -rw ${WWW_FILES} ${DESTDIR}${PREFIX}/${CT_WEBDIR} | | 87 | cd ${WRKSRC}; pax -rw ${WWW_FILES} ${DESTDIR}${PREFIX}/${CT_WEBDIR} |
87 | cd ${WRKSRC}/system; \ | | 88 | cd ${WRKSRC}/system; \ |
88 | pax -rw ${WWW_SYSFILES} \ | | 89 | pax -rw ${WWW_SYSFILES} \ |
89 | ${DESTDIR}${PREFIX}/${CT_WEBDIR}/system; \ | | 90 | ${DESTDIR}${PREFIX}/${CT_WEBDIR}/system |
90 | ${INSTALL_DATA} config/.htaccess \ | | | |
91 | ${DESTDIR}${PREFIX}/${CT_WEBDIR}/system/config | | | |
92 | ${INSTALL_DATA} ${WRKSRC}/templates/.htaccess \ | | 91 | ${INSTALL_DATA} ${WRKSRC}/templates/.htaccess \ |
93 | ${DESTDIR}${PREFIX}/${CT_WEBDIR}/templates | | 92 | ${DESTDIR}${PREFIX}/${CT_WEBDIR}/templates |
94 | cd ${WRKSRC}; pax -rw ${EG_DATA} ${DESTDIR}${PREFIX}/${CT_EGDIR} | | 93 | cd ${WRKSRC}; pax -rw ${EG_DATA} ${DESTDIR}${PREFIX}/${CT_EGDIR} |
95 | rm -f ${DESTDIR}${PREFIX}/${CT_EGDIR}/system/config/.htaccess | | 94 | rm -f ${DESTDIR}${PREFIX}/${CT_EGDIR}/system/config/.htaccess |
96 | ${INSTALL_DATA} ${WRKSRC}/.htaccess.default \ | | 95 | ${INSTALL_DATA} ${WRKSRC}/.htaccess.default \ |
97 | ${DESTDIR}${PREFIX}/${CT_EGDIR}/htaccess.default | | 96 | ${DESTDIR}${PREFIX}/${CT_EGDIR}/htaccess.default |
98 | ${INSTALL_DATA} ${WRKDIR}/contao.conf ${DESTDIR}${PREFIX}/${CT_EGDIR} | | 97 | ${INSTALL_DATA} ${WRKDIR}/contao.conf ${DESTDIR}${PREFIX}/${CT_EGDIR} |
99 | ${INSTALL_DATA} ${FILESDIR}/README \ | | 98 | ${INSTALL_DATA} ${FILESDIR}/README \ |
100 | ${DESTDIR}${PREFIX}/${CT_DOCDIR} | | 99 | ${DESTDIR}${PREFIX}/${CT_DOCDIR} |
101 | | | 100 | |
102 | .include "../../www/contao/Makefile.common" | | 101 | .include "../../www/contao/Makefile.common" |
103 | .include "../../lang/php/phpversion.mk" | | 102 | .include "../../lang/php/phpversion.mk" |
104 | .include "../../mk/bsd.pkg.mk" | | 103 | .include "../../mk/bsd.pkg.mk" |