| @@ -1,154 +1,154 @@ | | | @@ -1,154 +1,154 @@ |
1 | # $NetBSD: Makefile,v 1.79 2015/12/30 14:34:42 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.80 2016/03/16 13:36:52 taca Exp $ |
2 | | | 2 | |
3 | DISTNAME= roundcubemail-1.1.4 | | 3 | DISTNAME= roundcubemail-1.1.4 |
4 | PKGNAME= ${DISTNAME:S/mail-/-/} | | 4 | PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME:S/mail-/-/} |
5 | CATEGORIES= mail | | 5 | CATEGORIES= mail |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=roundcubemail/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=roundcubemail/} |
7 | | | 7 | |
8 | MAINTAINER= taca@NetBSD.org | | 8 | MAINTAINER= taca@NetBSD.org |
9 | HOMEPAGE= http://roundcube.net/ | | 9 | HOMEPAGE= http://roundcube.net/ |
10 | COMMENT= Browser-based multilingual IMAP client | | 10 | COMMENT= Browser-based multilingual IMAP client |
11 | LICENSE= gnu-gpl-v3 | | 11 | LICENSE= gnu-gpl-v3 |
12 | | | 12 | |
13 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=${PHP_BASE_VERS}:../../converters/php-mbstring | | 13 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=${PHP_BASE_VERS}:../../converters/php-mbstring |
14 | DEPENDS+= ${PHP_PKG_PREFIX}-dom>=${PHP_BASE_VERS}:../../textproc/php-dom | | 14 | DEPENDS+= ${PHP_PKG_PREFIX}-dom>=${PHP_BASE_VERS}:../../textproc/php-dom |
15 | DEPENDS+= ${PHP_PKG_PREFIX}-exif>=${PHP_BASE_VERS}:../../graphics/php-exif | | 15 | DEPENDS+= ${PHP_PKG_PREFIX}-exif>=${PHP_BASE_VERS}:../../graphics/php-exif |
16 | DEPENDS+= ${PHP_PKG_PREFIX}-intl>=${PHP_BASE_VERS}:../../textproc/php-intl | | 16 | DEPENDS+= ${PHP_PKG_PREFIX}-intl>=${PHP_BASE_VERS}:../../textproc/php-intl |
17 | DEPENDS+= ${PHP_PKG_PREFIX}-json>=${PHP_BASE_VERS}:../../textproc/php-json | | 17 | DEPENDS+= ${PHP_PKG_PREFIX}-json>=${PHP_BASE_VERS}:../../textproc/php-json |
18 | | | 18 | |
19 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_Sieve>=1.3.2:../../net/pear-Net_Sieve | | 19 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_Sieve>=1.3.2:../../net/pear-Net_Sieve |
20 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_SMTP>=1.4.2:../../net/pear-Net_SMTP | | 20 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_SMTP>=1.4.2:../../net/pear-Net_SMTP |
21 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_IDNA2>=0.1.1:../../net/pear-Net_IDNA2 | | 21 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_IDNA2>=0.1.1:../../net/pear-Net_IDNA2 |
22 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_Mime>=1.8.1:../../mail/pear-Mail_Mime | | 22 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_Mime>=1.8.1:../../mail/pear-Mail_Mime |
23 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_mimeDecode>=1.5.5:../../mail/pear-Mail_mimeDecode | | 23 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_mimeDecode>=1.5.5:../../mail/pear-Mail_mimeDecode |
24 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Auth_SASL>=1.0.3:../../mail/pear-Auth_SASL | | 24 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Auth_SASL>=1.0.3:../../mail/pear-Auth_SASL |
25 | | | 25 | |
26 | PHP_VERSIONS_ACCEPTED= 55 56 | | 26 | PHP_VERSIONS_ACCEPTED= 55 56 |
27 | | | 27 | |
28 | USE_LANGUAGES= # none | | 28 | USE_LANGUAGES= # none |
29 | USE_TOOLS+= pax | | 29 | USE_TOOLS+= pax |
30 | NO_BUILD= yes | | 30 | NO_BUILD= yes |
31 | | | 31 | |
32 | INSTALLATION_DIRS= ${RCDIR}/plugins ${RCDIR}/program ${RCDIR}/skins | | 32 | INSTALLATION_DIRS= ${RCDIR}/plugins ${RCDIR}/program ${RCDIR}/skins |
33 | INSTALLATION_DIRS+= ${RCDIR}/bin ${RCDIR}/SQL ${DOCDIR} ${EGDIR} | | 33 | INSTALLATION_DIRS+= ${RCDIR}/bin ${RCDIR}/SQL ${DOCDIR} ${EGDIR} |
34 | | | 34 | |
35 | .include "../../lang/php/phpversion.mk" | | 35 | .include "../../lang/php/phpversion.mk" |
36 | | | 36 | |
37 | PKG_SYSCONFSUBDIR?= roundcube | | 37 | PKG_SYSCONFSUBDIR?= roundcube |
38 | | | 38 | |
39 | PKG_GROUPS_VARS+= WWW_GROUP | | 39 | PKG_GROUPS_VARS+= WWW_GROUP |
40 | PKG_USERS_VARS= WWW_USER | | 40 | PKG_USERS_VARS= WWW_USER |
41 | BUILD_DEFS+= VARBASE WWW_USER WWW_GROUP APACHE_USER APACHE_GROUP | | 41 | BUILD_DEFS+= VARBASE WWW_USER WWW_GROUP APACHE_USER APACHE_GROUP |
42 | | | 42 | |
43 | RCDIR= ${PREFIX}/share/roundcube | | 43 | RCDIR= ${PREFIX}/share/roundcube |
44 | EGDIR= ${PREFIX}/share/examples/roundcube | | 44 | EGDIR= ${PREFIX}/share/examples/roundcube |
45 | DOCDIR= ${PREFIX}/share/doc/roundcube | | 45 | DOCDIR= ${PREFIX}/share/doc/roundcube |
46 | PAX_DIRS= plugins program skins installer | | 46 | PAX_DIRS= plugins program skins installer |
47 | SQL_DIRS= mssql mysql oracle postgres sqlite | | 47 | SQL_DIRS= mssql mysql oracle postgres sqlite |
48 | | | 48 | |
49 | CONF_PLUGINS= acl additional_message_headers help \ | | 49 | CONF_PLUGINS= acl additional_message_headers help \ |
50 | http_authentication jqueryui managesieve \ | | 50 | http_authentication jqueryui managesieve \ |
51 | newmail_notifier password redundant_attachments \ | | 51 | newmail_notifier password redundant_attachments \ |
52 | squirrelmail_usercopy zipdownload | | 52 | squirrelmail_usercopy zipdownload |
53 | | | 53 | |
54 | MESSAGE_SUBST+= DOCDIR=${DOCDIR} PKG_SYSCONFDIR=${PKG_SYSCONFDIR} | | 54 | MESSAGE_SUBST+= DOCDIR=${DOCDIR} PKG_SYSCONFDIR=${PKG_SYSCONFDIR} |
55 | MESSAGE_SUBST+= VARBASE=${VARBASE} RCDIR=${RCDIR} | | 55 | MESSAGE_SUBST+= VARBASE=${VARBASE} RCDIR=${RCDIR} |
56 | FILES_SUBST+= RCDIR=${RCDIR} | | 56 | FILES_SUBST+= RCDIR=${RCDIR} |
57 | | | 57 | |
58 | OWN_DIRS+= ${PKG_SYSCONFDIR} | | 58 | OWN_DIRS+= ${PKG_SYSCONFDIR} |
59 | OWN_DIRS_PERMS+= ${VARBASE}/log/roundcube \ | | 59 | OWN_DIRS_PERMS+= ${VARBASE}/log/roundcube \ |
60 | ${WWW_USER} ${WWW_GROUP} 0750 | | 60 | ${WWW_USER} ${WWW_GROUP} 0750 |
61 | OWN_DIRS_PERMS+= ${VARBASE}/spool/roundcube \ | | 61 | OWN_DIRS_PERMS+= ${VARBASE}/spool/roundcube \ |
62 | ${WWW_USER} ${WWW_GROUP} 0750 | | 62 | ${WWW_USER} ${WWW_GROUP} 0750 |
63 | OWN_DIRS_PERMS+= ${VARBASE}/tmp/roundcube \ | | 63 | OWN_DIRS_PERMS+= ${VARBASE}/tmp/roundcube \ |
64 | ${WWW_USER} ${WWW_GROUP} 0750 | | 64 | ${WWW_USER} ${WWW_GROUP} 0750 |
65 | | | 65 | |
66 | CONF_FILES= ${EGDIR}/roundcube.conf \ | | 66 | CONF_FILES= ${EGDIR}/roundcube.conf \ |
67 | ${PKG_SYSCONFDIR}/roundcube.conf | | 67 | ${PKG_SYSCONFDIR}/roundcube.conf |
68 | CONF_FILES+= ${EGDIR}/mimetypes.php \ | | 68 | CONF_FILES+= ${EGDIR}/mimetypes.php \ |
69 | ${PKG_SYSCONFDIR}/mimetypes.php | | 69 | ${PKG_SYSCONFDIR}/mimetypes.php |
70 | CONF_FILES_PERMS+= ${EGDIR}/config.inc.php \ | | 70 | CONF_FILES_PERMS+= ${EGDIR}/config.inc.php \ |
71 | ${PKG_SYSCONFDIR}/config.inc.php \ | | 71 | ${PKG_SYSCONFDIR}/config.inc.php \ |
72 | ${WWW_USER} ${WWW_GROUP} 0640 | | 72 | ${WWW_USER} ${WWW_GROUP} 0640 |
73 | CONF_FILES_PERMS+= ${EGDIR}/defaults.inc.php \ | | 73 | CONF_FILES_PERMS+= ${EGDIR}/defaults.inc.php \ |
74 | ${PKG_SYSCONFDIR}/defaults.inc.php \ | | 74 | ${PKG_SYSCONFDIR}/defaults.inc.php \ |
75 | ${WWW_USER} ${WWW_GROUP} 0640 | | 75 | ${WWW_USER} ${WWW_GROUP} 0640 |
76 | | | 76 | |
77 | .for f in ${CONF_PLUGINS} | | 77 | .for f in ${CONF_PLUGINS} |
78 | CONF_FILES_PERMS+= ${EGDIR}/plugins/${f}/config.inc.php \ | | 78 | CONF_FILES_PERMS+= ${EGDIR}/plugins/${f}/config.inc.php \ |
79 | ${RCDIR}/plugins/${f}/config.inc.php \ | | 79 | ${RCDIR}/plugins/${f}/config.inc.php \ |
80 | ${WWW_USER} ${WWW_GROUP} 0640 | | 80 | ${WWW_USER} ${WWW_GROUP} 0640 |
81 | .endfor | | 81 | .endfor |
82 | | | 82 | |
83 | SUBST_CLASSES+= files | | 83 | SUBST_CLASSES+= files |
84 | SUBST_STAGE.files= do-configure | | 84 | SUBST_STAGE.files= do-configure |
85 | SUBST_MESSAGE.files= Fixing configuration files. | | 85 | SUBST_MESSAGE.files= Fixing configuration files. |
86 | SUBST_FILES.files= roundcube.conf | | 86 | SUBST_FILES.files= roundcube.conf |
87 | SUBST_FILES.files+= config/config.inc.php.sample | | 87 | SUBST_FILES.files+= config/config.inc.php.sample |
88 | SUBST_FILES.files+= installer/index.php | | 88 | SUBST_FILES.files+= installer/index.php |
89 | SUBST_FILES.files+= program/include/iniset.php | | 89 | SUBST_FILES.files+= program/include/iniset.php |
90 | SUBST_FILES.files+= program/lib/Roundcube/rcube_mime.php | | 90 | SUBST_FILES.files+= program/lib/Roundcube/rcube_mime.php |
91 | SUBST_SED.files= -e "s|@RCDIR@|${RCDIR}|g" | | 91 | SUBST_SED.files= -e "s|@RCDIR@|${RCDIR}|g" |
92 | SUBST_SED.files+= -e "s|@VARBASE@|${VARBASE}|g" | | 92 | SUBST_SED.files+= -e "s|@VARBASE@|${VARBASE}|g" |
93 | SUBST_SED.files+= -e "s|@PKG_EXAMPLES@|${PREFIX}/share/examples/roundcube|g" | | 93 | SUBST_SED.files+= -e "s|@PKG_EXAMPLES@|${PREFIX}/share/examples/roundcube|g" |
94 | SUBST_SED.files+= -e "s|@PKG_SYSCONFBASE@|${PKG_SYSCONFBASE}|g" | | 94 | SUBST_SED.files+= -e "s|@PKG_SYSCONFBASE@|${PKG_SYSCONFBASE}|g" |
95 | SUBST_SED.files+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" | | 95 | SUBST_SED.files+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" |
96 | | | 96 | |
97 | REPLACE_INTERPRETER+= php | | 97 | REPLACE_INTERPRETER+= php |
98 | REPLACE.php.old= /usr/bin/env php | | 98 | REPLACE.php.old= /usr/bin/env php |
99 | REPLACE.php.new= ${PREFIX}/bin/php | | 99 | REPLACE.php.new= ${PREFIX}/bin/php |
100 | REPLACE_FILES.php= bin/*.sh | | 100 | REPLACE_FILES.php= bin/*.sh |
101 | | | 101 | |
102 | REPLACE_PYTHON= plugins/password/helpers/chpass-wrapper.py | | 102 | REPLACE_PYTHON= plugins/password/helpers/chpass-wrapper.py |
103 | | | 103 | |
104 | post-extract: | | 104 | post-extract: |
105 | ${CP} ${FILESDIR}/${WWW_CONF_FILE} ${WRKSRC}/roundcube.conf | | 105 | ${CP} ${FILESDIR}/${WWW_CONF_FILE} ${WRKSRC}/roundcube.conf |
106 | | | 106 | |
107 | do-install: | | 107 | do-install: |
108 | ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR} | | 108 | ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR} |
109 | ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${DOCDIR} | | 109 | ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${DOCDIR} |
110 | ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${DOCDIR} | | 110 | ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${DOCDIR} |
111 | ${INSTALL_DATA} ${WRKSRC}/UPGRADING ${DESTDIR}${DOCDIR} | | 111 | ${INSTALL_DATA} ${WRKSRC}/UPGRADING ${DESTDIR}${DOCDIR} |
112 | | | 112 | |
113 | ${INSTALL_DATA} ${WRKSRC}/.htaccess ${DESTDIR}${RCDIR}/ | | 113 | ${INSTALL_DATA} ${WRKSRC}/.htaccess ${DESTDIR}${RCDIR}/ |
114 | ${INSTALL_DATA} ${WRKSRC}/index.php ${DESTDIR}${RCDIR}/ | | 114 | ${INSTALL_DATA} ${WRKSRC}/index.php ${DESTDIR}${RCDIR}/ |
115 | ${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${RCDIR}/ | | 115 | ${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${RCDIR}/ |
116 | | | 116 | |
117 | ${INSTALL_DATA} ${WRKSRC}/SQL/*.sql ${DESTDIR}${RCDIR}/SQL/ | | 117 | ${INSTALL_DATA} ${WRKSRC}/SQL/*.sql ${DESTDIR}${RCDIR}/SQL/ |
118 | .for i in ${SQL_DIRS} | | 118 | .for i in ${SQL_DIRS} |
119 | ${INSTALL_DATA_DIR} ${DESTDIR}${RCDIR}/SQL/${i} | | 119 | ${INSTALL_DATA_DIR} ${DESTDIR}${RCDIR}/SQL/${i} |
120 | ${INSTALL_DATA} ${WRKSRC}/SQL/${i}/*.sql ${DESTDIR}${RCDIR}/SQL/${i} | | 120 | ${INSTALL_DATA} ${WRKSRC}/SQL/${i}/*.sql ${DESTDIR}${RCDIR}/SQL/${i} |
121 | .endfor | | 121 | .endfor |
122 | | | 122 | |
123 | ${INSTALL_DATA} ${WRKSRC}/roundcube.conf \ | | 123 | ${INSTALL_DATA} ${WRKSRC}/roundcube.conf \ |
124 | ${DESTDIR}${EGDIR}/roundcube.conf | | 124 | ${DESTDIR}${EGDIR}/roundcube.conf |
125 | ${INSTALL_DATA} ${WRKSRC}/config/mimetypes.php \ | | 125 | ${INSTALL_DATA} ${WRKSRC}/config/mimetypes.php \ |
126 | ${DESTDIR}${EGDIR}/mimetypes.php | | 126 | ${DESTDIR}${EGDIR}/mimetypes.php |
127 | ${INSTALL_DATA} ${WRKSRC}/config/config.inc.php.sample \ | | 127 | ${INSTALL_DATA} ${WRKSRC}/config/config.inc.php.sample \ |
128 | ${DESTDIR}${EGDIR}/config.inc.php | | 128 | ${DESTDIR}${EGDIR}/config.inc.php |
129 | ${INSTALL_DATA} ${WRKSRC}/config/defaults.inc.php \ | | 129 | ${INSTALL_DATA} ${WRKSRC}/config/defaults.inc.php \ |
130 | ${DESTDIR}${EGDIR}/defaults.inc.php | | 130 | ${DESTDIR}${EGDIR}/defaults.inc.php |
131 | | | 131 | |
132 | ${INSTALL_SCRIPT} ${WRKSRC}/bin/*.sh ${DESTDIR}${RCDIR}/bin/ | | 132 | ${INSTALL_SCRIPT} ${WRKSRC}/bin/*.sh ${DESTDIR}${RCDIR}/bin/ |
133 | | | 133 | |
134 | .for i in ${PAX_DIRS} | | 134 | .for i in ${PAX_DIRS} |
135 | ${INSTALL_DATA_DIR} ${DESTDIR}${RCDIR}/${i} | | 135 | ${INSTALL_DATA_DIR} ${DESTDIR}${RCDIR}/${i} |
136 | cd ${WRKSRC}/${i} && ${FIND} . -type f \! -name "*.orig" -print | \ | | 136 | cd ${WRKSRC}/${i} && ${FIND} . -type f \! -name "*.orig" -print | \ |
137 | ${PAX} -rw ${DESTDIR}${RCDIR}/${i} | | 137 | ${PAX} -rw ${DESTDIR}${RCDIR}/${i} |
138 | ${FIND} ${DESTDIR}${RCDIR}/${i} -type f | \ | | 138 | ${FIND} ${DESTDIR}${RCDIR}/${i} -type f | \ |
139 | ${XARGS} ${CHMOD} ${SHAREMODE} | | 139 | ${XARGS} ${CHMOD} ${SHAREMODE} |
140 | ${FIND} ${DESTDIR}${RCDIR}/${i} -type d | \ | | 140 | ${FIND} ${DESTDIR}${RCDIR}/${i} -type d | \ |
141 | ${XARGS} ${CHMOD} ${PKGDIRMODE} | | 141 | ${XARGS} ${CHMOD} ${PKGDIRMODE} |
142 | ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${RCDIR}/${i} | | 142 | ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${RCDIR}/${i} |
143 | .endfor | | 143 | .endfor |
144 | | | 144 | |
145 | .for f in ${CONF_PLUGINS} | | 145 | .for f in ${CONF_PLUGINS} |
146 | ${MKDIR} ${DESTDIR}${EGDIR}/plugins/${f} | | 146 | ${MKDIR} ${DESTDIR}${EGDIR}/plugins/${f} |
147 | ${TEST} -f ${DESTDIR}${EGDIR}/plugins/${f}/config.inc.php || \ | | 147 | ${TEST} -f ${DESTDIR}${EGDIR}/plugins/${f}/config.inc.php || \ |
148 | ${MV} ${DESTDIR}${RCDIR}/plugins/${f}/config.inc.php.dist \ | | 148 | ${MV} ${DESTDIR}${RCDIR}/plugins/${f}/config.inc.php.dist \ |
149 | ${DESTDIR}${EGDIR}/plugins/${f}/config.inc.php | | 149 | ${DESTDIR}${EGDIR}/plugins/${f}/config.inc.php |
150 | .endfor | | 150 | .endfor |
151 | | | 151 | |
152 | .include "options.mk" | | 152 | .include "options.mk" |
153 | .include "../../lang/python/application.mk" | | 153 | .include "../../lang/python/application.mk" |
154 | .include "../../mk/bsd.pkg.mk" | | 154 | .include "../../mk/bsd.pkg.mk" |