pkgsrc-wip/ilohamail/Makefile

65 lines
2.2 KiB
Makefile
Raw Normal View History

2008-08-11 16:36:45 +02:00
# $NetBSD: Makefile,v 1.19 2008/08/11 14:36:45 ondratu Exp $
#
2006-05-24 02:24:47 +02:00
DISTNAME= IlohaMail-0.8.14-rc3
PKGNAME= ilohamail-0.8.14rc3
CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ilohamail/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://blog.ilohamail.org/
COMMENT= Light weight yet full featured multilingual webmail
2008-08-11 16:36:45 +02:00
DEPENDS+= ${PHP_PKG_PREFIX}-imap>=4.3.3:../../mail/php-imap
NO_BUILD= yes
USE_TOOLS+= pax
APACHE_USER?= www
APACHE_GROUP?= www
2008-08-11 16:36:45 +02:00
PKG_GROUPS= ${APACHE_GROUP}
PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
BUILD_DEFS+= APACHE_USER APACHE_GROUP
ILOHAMAIL_DIR= ${PREFIX}/share/ilohamail
ILOHAMAIL_CONF_DIR= ${ILOHAMAIL_DIR}/conf
2006-05-24 02:24:47 +02:00
ILOHAMAIL_DOC_DIR= ${PREFIX}/share/doc/ilohamail
ILOHAMAIL_DATA_DIR= ${VARBASE}/ilohamail/data
ILOHAMAIL_DATA_DIRS= cache gpg sessions uploads users
ILOHAMAIL_DIR_PERMS= ${APACHE_USER} ${APACHE_GROUP} 0755
ILOHAMAIL_FILE_PERMS= ${APACHE_USER} ${APACHE_GROUP} 0644
2006-05-24 02:24:47 +02:00
ILOHAMAIL_CONF_FILES= conf.inc conf.php custom_auth.php db_conf.php \
defaults.generic.inc defaults.inc login.php \
login_blurb.inc login_title.inc new_user.php
EGDIR= ${PREFIX}/share/examples/ilohamail
OWN_DIRS_PERMS= ${ILOHAMAIL_CONF_DIR} ${ILOHAMAIL_DIR_PERMS}
OWN_DIRS_PERMS+= ${ILOHAMAIL_DATA_DIR} ${ILOHAMAIL_DIR_PERMS}
.for dir in ${ILOHAMAIL_DATA_DIRS}
OWN_DIRS_PERMS+= ${ILOHAMAIL_DATA_DIR}/${dir} ${ILOHAMAIL_DIR_PERMS}
.endfor
.for file in ${ILOHAMAIL_CONF_FILES}
CONF_FILES_PERMS+= ${EGDIR}/conf/${file} ${ILOHAMAIL_CONF_DIR}/${file} \
${ILOHAMAIL_FILE_PERMS}
.endfor
SUBST_CLASSES+= ilohamail
SUBST_STAGE.ilohamail= post-patch
SUBST_FILES.ilohamail= IlohaMail/conf/conf.php
SUBST_SED.ilohamail= -e "s|@ILOHAMAIL_DATA_DIR@|${ILOHAMAIL_DATA_DIR}|g"
2006-05-24 02:24:47 +02:00
pre-install:
${FIND} ${WRKSRC} -name "*.orig" -print -type f | ${XARGS} ${RM} -f
do-install:
${INSTALL_DATA_DIR} ${ILOHAMAIL_DIR}
2006-05-24 02:24:47 +02:00
${INSTALL_DATA_DIR} ${ILOHAMAIL_DOC_DIR}
cd ${WRKSRC}/IlohaMail && pax -r -w data include index.html lang \
source ${ILOHAMAIL_DIR}
cd ${WRKSRC}/IlohaMail && pax -r -w conf ${EGDIR}
cd ${WRKSRC} && pax -r -w COPYING INSTALL Manual MySQL README \
2006-05-24 02:24:47 +02:00
RELEASE_NOTES THEMES TODO UPGRADING ${ILOHAMAIL_DOC_DIR}
${CHOWN} -R ${APACHE_USER}:${APACHE_GROUP} ${ILOHAMAIL_DIR}
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"