| @@ -1,39 +1,40 @@ | | | @@ -1,39 +1,40 @@ |
1 | # $NetBSD: Makefile,v 1.3 2013/06/27 16:17:55 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.4 2013/08/15 17:53:23 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 | | | 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_VERSION} | | 12 | COMMENT= Contao Open Source CMS ${CT_VERSION} |
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 |
19 | DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.2.0:../../net/php-soap | | 20 | DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.2.0:../../net/php-soap |
20 | | | 21 | |
21 | CT_VERS= 31 | | 22 | CT_VERS= 31 |
22 | USE_TOOLS= bash pax | | 23 | USE_TOOLS= bash pax |
23 | NO_BUILD= yes | | 24 | NO_BUILD= yes |
24 | | | 25 | |
25 | EG_CONFIG= ace.php agents.php constants.php countries.php \ | | 26 | EG_CONFIG= ace.php agents.php constants.php countries.php \ |
26 | default.php languages.php tcpdf.php timezones.php \ | | 27 | languages.php tcpdf.php timezones.php \ |
27 | tinyFlash.php tinyMCE.php tinyNews.php | | 28 | tinyFlash.php tinyMCE.php tinyNews.php |
28 | EG_DATA= ${WWW_EG_FILES} system/config files | | 29 | EG_DATA= ${WWW_EG_FILES} system/config 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/cache system/logs system/tmp templates files | | 32 | RESTRICT_DIRS= system/cache system/logs system/tmp templates files |
32 | | | 33 | |
33 | CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf | | 34 | CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf |
34 | CONF_FILES+= ${CT_EGDIR}/htaccess.default ${CT_WEBDIR}/.htaccess | | 35 | CONF_FILES+= ${CT_EGDIR}/htaccess.default ${CT_WEBDIR}/.htaccess |
35 | | | 36 | |
36 | .for f in ${EG_CONFIG} | | 37 | .for f in ${EG_CONFIG} |
37 | 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} |
38 | .endfor | | 39 | .endfor |
39 | | | 40 | |
| @@ -55,27 +56,28 @@ OWN_DIRS_PERMS+= ${CT_WEBDIR}/${d} ${APA | | | @@ -55,27 +56,28 @@ OWN_DIRS_PERMS+= ${CT_WEBDIR}/${d} ${APA |
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 | SUBST_CLASSES+= php | | 63 | SUBST_CLASSES+= php |
63 | SUBST_FILES.php+= ${WRKSRC}/system/bin/transifex | | 64 | SUBST_FILES.php+= ${WRKSRC}/system/bin/transifex |
64 | SUBST_SED.php+= -e "s|\#!/.*php|\#!${PREFIX}/bin/php|" | | 65 | SUBST_SED.php+= -e "s|\#!/.*php|\#!${PREFIX}/bin/php|" |
65 | SUBST_STAGE.php= post-configure | | 66 | SUBST_STAGE.php= post-configure |
66 | | | 67 | |
67 | WWW_FILES= .gitignore README.md assets contao index.php share templates | | 68 | WWW_FILES= .gitignore README.md assets contao index.php share templates |
68 | WWW_SYSFILES= .htaccess bin cron docs helper initialize.php modules themes | | 69 | WWW_SYSFILES= .htaccess bin config/default.php cron docs helper \ |
| | | 70 | initialize.php modules themes |
69 | | | 71 | |
70 | INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config | | 72 | INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config |
71 | | | 73 | |
72 | PKG_GROUPS_VARS+= APACHE_GROUP | | 74 | PKG_GROUPS_VARS+= APACHE_GROUP |
73 | PKG_USERS_VARS+= APACHE_USER | | 75 | PKG_USERS_VARS+= APACHE_USER |
74 | | | 76 | |
75 | pre-configure: | | 77 | pre-configure: |
76 | cd ${WRKSRC} && ${RM} -f assets/css/*.css | | 78 | cd ${WRKSRC} && ${RM} -f assets/css/*.css |
77 | ${CP} ${FILESDIR}/contao.conf ${WRKDIR} | | 79 | ${CP} ${FILESDIR}/contao.conf ${WRKDIR} |
78 | | | 80 | |
79 | pre-install: | | 81 | pre-install: |
80 | cd ${WRKSRC}; ${RM} -fr files/music_academy templates/music_academy.sql | | 82 | cd ${WRKSRC}; ${RM} -fr files/music_academy templates/music_academy.sql |
81 | ${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \; | | 83 | ${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \; |