2008-03-15 14:54:58 +01:00
|
|
|
# $NetBSD: Makefile,v 1.8 2008/03/15 13:54:59 adrianp Exp $
|
2007-04-08 19:04:08 +02:00
|
|
|
#
|
|
|
|
|
2008-03-15 14:54:58 +01:00
|
|
|
DISTNAME= roundcubemail-0.1
|
|
|
|
PKGNAME= ${DISTNAME:S/mail//}
|
2007-04-08 19:04:08 +02:00
|
|
|
CATEGORIES= mail
|
2007-11-09 00:35:33 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=roundcubemail/}
|
2007-04-08 19:04:08 +02:00
|
|
|
|
|
|
|
MAINTAINER= adrianp@NetBSD.org
|
|
|
|
HOMEPAGE= http://roundcube.net/
|
|
|
|
COMMENT= Browser-based multilingual IMAP client
|
|
|
|
|
|
|
|
USE_LANGUAGES= # none
|
2007-05-11 13:51:05 +02:00
|
|
|
NO_BUILD= yes
|
2007-04-08 19:04:08 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= APACHE_GROUP
|
|
|
|
PKG_USERS_VARS+= APACHE_USER
|
2007-11-09 00:35:33 +01:00
|
|
|
BUILD_DEFS+= VARBASE APACHE_USER APACHE_GROUP
|
2007-07-04 22:54:31 +02:00
|
|
|
|
2007-04-08 19:04:08 +02:00
|
|
|
RCDIR= ${PREFIX}/share/roundcube
|
|
|
|
EGDIR= ${PREFIX}/share/examples/roundcube
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/roundcube
|
|
|
|
PAX_DIRS= program skins
|
|
|
|
|
|
|
|
MESSAGE_SUBST+= DOCDIR=${DOCDIR:Q} PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
|
2007-06-05 22:25:26 +02:00
|
|
|
MESSAGE_SUBST+= VARBASE=${VARBASE:Q}
|
2007-05-11 13:51:05 +02:00
|
|
|
FILES_SUBST+= RCDIR=${RCDIR:Q}
|
2007-04-08 19:04:08 +02:00
|
|
|
|
2007-05-11 13:51:05 +02:00
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/roundcube
|
|
|
|
OWN_DIRS_PERMS+=${VARBASE}/log/roundcube ${APACHE_USER} ${APACHE_GROUP} 0755
|
|
|
|
OWN_DIRS_PERMS+=${VARBASE}/tmp/roundcube ${APACHE_USER} ${APACHE_GROUP} 0755
|
|
|
|
|
|
|
|
CONF_FILES= ${EGDIR}/roundcube.conf ${PKG_SYSCONFDIR}/roundcube.conf
|
|
|
|
CONF_FILES_PERMS+= \
|
|
|
|
${EGDIR}/db.inc.php ${PKG_SYSCONFDIR}/roundcube/db.inc.php \
|
2008-01-10 21:17:57 +01:00
|
|
|
${ROOT_USER} ${APACHE_GROUP} 0640 \
|
2007-05-11 13:51:05 +02:00
|
|
|
${EGDIR}/main.inc.php ${PKG_SYSCONFDIR}/roundcube/main.inc.php \
|
2008-01-10 21:17:57 +01:00
|
|
|
${ROOT_USER} ${APACHE_GROUP} 0640
|
2007-04-08 19:04:08 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= files
|
2007-05-11 13:51:05 +02:00
|
|
|
SUBST_STAGE.files= do-configure
|
2007-04-08 19:04:08 +02:00
|
|
|
SUBST_FILES.files= roundcube.conf
|
2007-05-11 13:51:05 +02:00
|
|
|
SUBST_FILES.files+= config/main.inc.php.dist
|
|
|
|
SUBST_FILES.files+= program/include/main.inc
|
2007-04-08 19:04:08 +02:00
|
|
|
SUBST_SED.files= -e "s|@RCDIR@|${RCDIR}|g"
|
2007-05-11 13:51:05 +02:00
|
|
|
SUBST_SED.files+= -e "s|@VARBASE@|${VARBASE}|g"
|
|
|
|
SUBST_SED.files+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
|
2007-04-08 19:04:08 +02:00
|
|
|
SUBST_MESSAGE.files= Fixing configuration files.
|
|
|
|
|
2007-05-11 13:51:05 +02:00
|
|
|
INSTALLATION_DIRS= ${RCDIR}/program ${RCDIR}/skins ${EGDIR}/SQL ${DOCDIR}
|
|
|
|
|
2007-04-08 19:04:08 +02:00
|
|
|
.include "options.mk"
|
|
|
|
.include "../../mk/apache.mk"
|
|
|
|
|
2007-05-11 13:51:05 +02:00
|
|
|
post-extract:
|
2007-11-09 00:35:33 +01:00
|
|
|
${CP} ${FILESDIR}/roundcube.conf ${WRKSRC}/roundcube.conf
|
2007-04-08 19:04:08 +02:00
|
|
|
|
2007-05-11 13:51:05 +02:00
|
|
|
pre-install:
|
2007-11-09 00:35:33 +01:00
|
|
|
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
|
2007-04-08 19:04:08 +02:00
|
|
|
|
2007-05-11 13:51:05 +02:00
|
|
|
do-install:
|
2007-04-08 19:04:08 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/roundcube.conf ${EGDIR}/roundcube.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/UPGRADING ${DOCDIR}
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/SQL/*.sql ${EGDIR}/SQL/
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/.htaccess ${RCDIR}/
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/index.php ${RCDIR}/
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/config/db.inc.php.dist ${EGDIR}/db.inc.php
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/config/main.inc.php.dist ${EGDIR}/main.inc.php
|
|
|
|
|
|
|
|
.for i in ${PAX_DIRS}
|
2007-11-09 00:35:33 +01:00
|
|
|
cd ${WRKSRC}/${i} && ${PAX} -rw . ${RCDIR}/${i}
|
|
|
|
${FIND} ${RCDIR}/${i} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
${FIND} ${RCDIR}/${i} -type d | ${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${RCDIR}/${i}
|
2007-04-08 19:04:08 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|