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