4 DISTNAME= IlohaMail-0.8.14-rc3
5 PKGNAME= ilohamail-0.8.14rc3
7 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ilohamail/}
9 MAINTAINER= pkgsrc-users@NetBSD.org
10 HOMEPAGE= http://blog.ilohamail.org/
11 COMMENT= Light weight yet full featured multilingual webmail
13 DEPENDS+= ${PHP_PKG_PREFIX}-imap>=4.3.3:../../mail/php-imap
20 PKG_GROUPS= ${APACHE_GROUP}
21 PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
22 BUILD_DEFS+= APACHE_USER APACHE_GROUP
24 ILOHAMAIL_DIR= ${PREFIX}/share/ilohamail
25 ILOHAMAIL_CONF_DIR= ${ILOHAMAIL_DIR}/conf
26 ILOHAMAIL_DOC_DIR= ${PREFIX}/share/doc/ilohamail
27 ILOHAMAIL_DATA_DIR= ${VARBASE}/ilohamail/data
28 ILOHAMAIL_DATA_DIRS= cache gpg sessions uploads users
29 ILOHAMAIL_DIR_PERMS= ${APACHE_USER} ${APACHE_GROUP} 0755
30 ILOHAMAIL_FILE_PERMS= ${APACHE_USER} ${APACHE_GROUP} 0644
31 ILOHAMAIL_CONF_FILES= conf.inc conf.php custom_auth.php db_conf.php \
32 defaults.generic.inc defaults.inc login.php \
33 login_blurb.inc login_title.inc new_user.php
34 EGDIR= ${PREFIX}/share/examples/ilohamail
35 OWN_DIRS_PERMS= ${ILOHAMAIL_CONF_DIR} ${ILOHAMAIL_DIR_PERMS}
36 OWN_DIRS_PERMS+= ${ILOHAMAIL_DATA_DIR} ${ILOHAMAIL_DIR_PERMS}
37 .for dir in ${ILOHAMAIL_DATA_DIRS}
38 OWN_DIRS_PERMS+= ${ILOHAMAIL_DATA_DIR}/${dir} ${ILOHAMAIL_DIR_PERMS}
40 .for file in ${ILOHAMAIL_CONF_FILES}
41 CONF_FILES_PERMS+= ${EGDIR}/conf/${file} ${ILOHAMAIL_CONF_DIR}/${file} \
42 ${ILOHAMAIL_FILE_PERMS}
45 SUBST_CLASSES+= ilohamail
46 SUBST_STAGE.ilohamail= post-patch
47 SUBST_FILES.ilohamail= IlohaMail/conf/conf.php
48 SUBST_SED.ilohamail= -e "s|@ILOHAMAIL_DATA_DIR@|${ILOHAMAIL_DATA_DIR}|g"
51 ${FIND} ${WRKSRC} -name "*.orig" -print -type f | ${XARGS} ${RM} -f
54 ${INSTALL_DATA_DIR} ${ILOHAMAIL_DIR}
55 ${INSTALL_DATA_DIR} ${ILOHAMAIL_DOC_DIR}
56 cd ${WRKSRC}/IlohaMail && pax -r -w data include index.html lang \
57 source ${ILOHAMAIL_DIR}
58 cd ${WRKSRC}/IlohaMail && pax -r -w conf ${EGDIR}
59 cd ${WRKSRC} && pax -r -w COPYING INSTALL Manual MySQL README \
60 RELEASE_NOTES THEMES TODO UPGRADING ${ILOHAMAIL_DOC_DIR}
61 ${CHOWN} -R ${APACHE_USER}:${APACHE_GROUP} ${ILOHAMAIL_DIR}
63 .include "../../lang/php/phpversion.mk"
64 .include "../../mk/bsd.pkg.mk"