summaryrefslogtreecommitdiff
path: root/mail/imp4/Makefile
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2005-01-16 21:36:27 +0000
committeradrianp <adrianp@pkgsrc.org>2005-01-16 21:36:27 +0000
commitadbcd2e92ddbc0ca6a9d9879d9ddfe424481da8f (patch)
tree383a00813aecb9acb1bc61c4c37921e3d7bb54d1 /mail/imp4/Makefile
parent7eea6b05b70c7d0aeab3893f42a1791d2feb700a (diff)
downloadpkgsrc-adbcd2e92ddbc0ca6a9d9879d9ddfe424481da8f.tar.gz
IMP is a set of PHP scripts that implement an IMAP/POP based webmail system.
Assuming you have an account on a server that supports IMAP/POP, you can use an installation of IMP to check your mail from anywhere that you have web access. This is the 4.x branch of IMP designed to work with Horde 3.x.
Diffstat (limited to 'mail/imp4/Makefile')
-rw-r--r--mail/imp4/Makefile99
1 files changed, 99 insertions, 0 deletions
diff --git a/mail/imp4/Makefile b/mail/imp4/Makefile
new file mode 100644
index 00000000000..edf23421ba5
--- /dev/null
+++ b/mail/imp4/Makefile
@@ -0,0 +1,99 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/16 21:36:27 adrianp Exp $
+
+DISTNAME= imp-h3-${IMPVER}
+PKGNAME= imp-${IMPVER}
+CATEGORIES= mail www
+MASTER_SITES= ftp://ftp.horde.org/pub/imp/tarballs/
+
+MAINTAINER= adrianp@NetBSD.org
+HOMEPAGE= http://www.horde.org/imp/
+COMMENT= Internet Messaging Program
+
+CONFLICTS+= imp-3.*
+
+DEPENDS+= horde>=3.0.2:../../www/horde3
+DEPENDS+= php-imap>4.3.3:../../mail/php-imap
+
+.include "../../mk/bsd.prefs.mk"
+
+DOCDIR= ${PREFIX}/share/doc/imp
+EGDIR= ${PREFIX}/share/examples/imp
+HORDEDIR= ${PREFIX}/share/horde
+IMPDIR= ${HORDEDIR}/imp
+IMPVER= 4.0.1
+PAXDIRS= lib locale po scripts templates themes
+
+MESSAGE_SUBST+= IMPDIR=${IMPDIR}
+MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
+
+USE_PKGINSTALL= YES
+PKG_SYSCONFSUBDIR?= httpd
+
+CONF_FILES= ${EGDIR}/imp.conf ${PKG_SYSCONFDIR}/imp.conf
+CONF_FILES+= ${IMPDIR}/config/servers.php.dist \
+ ${IMPDIR}/config/servers.php
+SUPPORT_FILES_PERMS+= ${IMPDIR}/config/conf.xml.dist \
+ ${IMPDIR}/config/conf.xml \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+SUPPORT_FILES_PERMS+= ${IMPDIR}/config/filter.txt.dist \
+ ${IMPDIR}/config/filter.txt \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+SUPPORT_FILES_PERMS+= ${IMPDIR}/config/header.txt.dist \
+ ${IMPDIR}/config/header.txt \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+SUPPORT_FILES_PERMS+= ${IMPDIR}/config/menu.php.dist \
+ ${IMPDIR}/config/menu.php \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+SUPPORT_FILES_PERMS+= ${IMPDIR}/config/mime_drivers.php.dist \
+ ${IMPDIR}/config/mime_drivers.php \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+SUPPORT_FILES_PERMS+= ${IMPDIR}/config/motd.php.dist \
+ ${IMPDIR}/config/motd.php \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+SUPPORT_FILES_PERMS+= ${IMPDIR}/config/prefs.php.dist \
+ ${IMPDIR}/config/prefs.php \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+SUPPORT_FILES_PERMS+= ${IMPDIR}/config/trailer.txt.dist \
+ ${IMPDIR}/config/trailer.txt \
+ ${APACHE_USER} ${ROOT_GROUP} 0440
+SPECIAL_PERMS+= ${IMPDIR}/config ${APACHE_USER} ${ROOT_GROUP} 0750
+
+SUBST_CLASSES= files
+SUBST_STAGE.files= post-build
+SUBST_FILES.files= imp.conf.dist
+SUBST_SED.files= -e "s|@IMPDIR@|${IMPDIR}|g"
+SUBST_MESSAGE.files= "Fixing configuration files."
+
+.include "options.mk"
+
+do-build:
+ @${CP} ${FILESDIR}/imp.conf.dist ${WRKSRC}/imp.conf.dist
+ @${CP} ${WRKSRC}/config/conf.xml ${WRKSRC}/config/conf.xml.dist
+ @${FIND} ${WRKSRC} -name .htaccess -print | ${XARGS} ${RM} -f
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA_DIR} ${IMPDIR}
+ ${INSTALL_DATA_DIR} ${IMPDIR}/config
+ ${INSTALL_DATA} ${WRKSRC}/imp.conf.dist ${EGDIR}/imp.conf
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCDIR}
+
+. for d in ${PAXDIRS}
+ ${INSTALL_DATA_DIR} ${IMPDIR}/${d}
+. endfor
+. undef d
+
+. for d in ${PAXDIRS}
+ cd ${WRKSRC}/${d} && ${PAX} -rw . ${IMPDIR}/${d}
+. endfor
+. undef d
+
+ ${INSTALL_DATA} ${WRKSRC}/config/*.dist ${IMPDIR}/config
+ ${INSTALL_DATA} ${WRKSRC}/*.php ${IMPDIR}
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${IMPDIR}
+ ${CHMOD} -R a-w ${IMPDIR}
+
+.include "../../mk/bsd.pkg.mk"