| @@ -1,18 +1,19 @@ | | | @@ -1,18 +1,19 @@ |
1 | # $NetBSD: Makefile,v 1.6 2007/11/08 23:35:33 adrianp Exp $ | | 1 | # $NetBSD: Makefile,v 1.7 2008/01/10 20:17:57 ghen Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= roundcubemail-0.1-rc2 | | 4 | DISTNAME= roundcubemail-0.1-rc2 |
5 | PKGNAME= roundcube-0.1rc2 | | 5 | PKGNAME= roundcube-0.1rc2 |
| | | 6 | PKGREVISION= 1 |
6 | CATEGORIES= mail | | 7 | CATEGORIES= mail |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=roundcubemail/} | | 8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=roundcubemail/} |
8 | | | 9 | |
9 | MAINTAINER= adrianp@NetBSD.org | | 10 | MAINTAINER= adrianp@NetBSD.org |
10 | HOMEPAGE= http://roundcube.net/ | | 11 | HOMEPAGE= http://roundcube.net/ |
11 | COMMENT= Browser-based multilingual IMAP client | | 12 | COMMENT= Browser-based multilingual IMAP client |
12 | | | 13 | |
13 | USE_LANGUAGES= # none | | 14 | USE_LANGUAGES= # none |
14 | NO_BUILD= yes | | 15 | NO_BUILD= yes |
15 | | | 16 | |
16 | .include "../../mk/bsd.prefs.mk" | | 17 | .include "../../mk/bsd.prefs.mk" |
17 | | | 18 | |
18 | PKG_SYSCONFSUBDIR?= httpd | | 19 | PKG_SYSCONFSUBDIR?= httpd |
| @@ -27,29 +28,29 @@ DOCDIR= ${PREFIX}/share/doc/roundcube | | | @@ -27,29 +28,29 @@ DOCDIR= ${PREFIX}/share/doc/roundcube |
27 | PAX_DIRS= program skins | | 28 | PAX_DIRS= program skins |
28 | | | 29 | |
29 | MESSAGE_SUBST+= DOCDIR=${DOCDIR:Q} PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q} | | 30 | MESSAGE_SUBST+= DOCDIR=${DOCDIR:Q} PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q} |
30 | MESSAGE_SUBST+= VARBASE=${VARBASE:Q} | | 31 | MESSAGE_SUBST+= VARBASE=${VARBASE:Q} |
31 | FILES_SUBST+= RCDIR=${RCDIR:Q} | | 32 | FILES_SUBST+= RCDIR=${RCDIR:Q} |
32 | | | 33 | |
33 | OWN_DIRS+= ${PKG_SYSCONFDIR}/roundcube | | 34 | OWN_DIRS+= ${PKG_SYSCONFDIR}/roundcube |
34 | OWN_DIRS_PERMS+=${VARBASE}/log/roundcube ${APACHE_USER} ${APACHE_GROUP} 0755 | | 35 | OWN_DIRS_PERMS+=${VARBASE}/log/roundcube ${APACHE_USER} ${APACHE_GROUP} 0755 |
35 | OWN_DIRS_PERMS+=${VARBASE}/tmp/roundcube ${APACHE_USER} ${APACHE_GROUP} 0755 | | 36 | OWN_DIRS_PERMS+=${VARBASE}/tmp/roundcube ${APACHE_USER} ${APACHE_GROUP} 0755 |
36 | | | 37 | |
37 | CONF_FILES= ${EGDIR}/roundcube.conf ${PKG_SYSCONFDIR}/roundcube.conf | | 38 | CONF_FILES= ${EGDIR}/roundcube.conf ${PKG_SYSCONFDIR}/roundcube.conf |
38 | CONF_FILES_PERMS+= \ | | 39 | CONF_FILES_PERMS+= \ |
39 | ${EGDIR}/db.inc.php ${PKG_SYSCONFDIR}/roundcube/db.inc.php \ | | 40 | ${EGDIR}/db.inc.php ${PKG_SYSCONFDIR}/roundcube/db.inc.php \ |
40 | ${APACHE_USER} ${APACHE_GROUP} 0440 \ | | 41 | ${ROOT_USER} ${APACHE_GROUP} 0640 \ |
41 | ${EGDIR}/main.inc.php ${PKG_SYSCONFDIR}/roundcube/main.inc.php \ | | 42 | ${EGDIR}/main.inc.php ${PKG_SYSCONFDIR}/roundcube/main.inc.php \ |
42 | ${APACHE_USER} ${APACHE_GROUP} 0440 | | 43 | ${ROOT_USER} ${APACHE_GROUP} 0640 |
43 | | | 44 | |
44 | SUBST_CLASSES+= files | | 45 | SUBST_CLASSES+= files |
45 | SUBST_STAGE.files= do-configure | | 46 | SUBST_STAGE.files= do-configure |
46 | SUBST_FILES.files= roundcube.conf | | 47 | SUBST_FILES.files= roundcube.conf |
47 | SUBST_FILES.files+= config/main.inc.php.dist | | 48 | SUBST_FILES.files+= config/main.inc.php.dist |
48 | SUBST_FILES.files+= program/include/main.inc | | 49 | SUBST_FILES.files+= program/include/main.inc |
49 | SUBST_SED.files= -e "s|@RCDIR@|${RCDIR}|g" | | 50 | SUBST_SED.files= -e "s|@RCDIR@|${RCDIR}|g" |
50 | SUBST_SED.files+= -e "s|@VARBASE@|${VARBASE}|g" | | 51 | SUBST_SED.files+= -e "s|@VARBASE@|${VARBASE}|g" |
51 | SUBST_SED.files+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" | | 52 | SUBST_SED.files+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" |
52 | SUBST_MESSAGE.files= Fixing configuration files. | | 53 | SUBST_MESSAGE.files= Fixing configuration files. |
53 | | | 54 | |
54 | INSTALLATION_DIRS= ${RCDIR}/program ${RCDIR}/skins ${EGDIR}/SQL ${DOCDIR} | | 55 | INSTALLATION_DIRS= ${RCDIR}/program ${RCDIR}/skins ${EGDIR}/SQL ${DOCDIR} |
55 | | | 56 | |