2001-11-19 17:23:08 +01:00
|
|
|
# $NetBSD: Makefile,v 1.14 2001/11/19 16:23:10 jlam Exp $
|
2001-02-12 16:27:41 +01:00
|
|
|
|
2001-11-11 20:29:10 +01:00
|
|
|
DISTNAME= imp-2.2.7
|
2001-02-12 16:27:41 +01:00
|
|
|
CATEGORIES= mail www
|
|
|
|
MASTER_SITES= ftp://ftp.horde.org/pub/imp/tarballs/
|
|
|
|
|
2001-07-29 16:34:38 +02:00
|
|
|
MAINTAINER= bouyer@netbsd.org
|
2001-02-12 16:27:41 +01:00
|
|
|
HOMEPAGE= http://www.horde.org/imp/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Internet Messaging Program
|
2001-02-12 16:27:41 +01:00
|
|
|
|
2001-11-11 20:29:10 +01:00
|
|
|
DEPENDS+= horde-1.2.7:../../www/horde
|
2001-10-29 06:43:47 +01:00
|
|
|
DEPENDS+= php-imap>3.0.17:../../mail/php4-imap
|
2001-02-12 16:27:41 +01:00
|
|
|
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/imp
|
2001-04-30 08:11:09 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/imp
|
2001-02-12 16:27:41 +01:00
|
|
|
HORDEDIR= ${PREFIX}/share/horde
|
|
|
|
IMPDIR= ${HORDEDIR}/imp
|
|
|
|
|
|
|
|
MESSAGE_SUBST+= IMPDIR=${IMPDIR}
|
|
|
|
|
2001-04-30 08:11:09 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2001-11-19 17:23:08 +01:00
|
|
|
APACHE_SYSCONFDIR?= ${CONFDIR}/httpd
|
2001-04-30 08:11:09 +02:00
|
|
|
BUILD_DEFS+= APACHE_SYSCONFDIR
|
|
|
|
MESSAGE_SUBST+= APACHE_SYSCONFDIR=${APACHE_SYSCONFDIR}
|
|
|
|
|
2001-11-19 17:23:08 +01:00
|
|
|
CONF_FILES= ${EGDIR}/imp.conf ${APACHE_SYSCONFDIR}/imp.conf
|
|
|
|
CONF_FILES+= ${IMPDIR}/config/defaults.php3.dist \
|
|
|
|
${IMPDIR}/config/defaults.php3
|
|
|
|
CONF_FILES+= ${IMPDIR}/config/ldap.php3.dist \
|
|
|
|
${IMPDIR}/config/ldap.php3
|
|
|
|
CONF_FILES+= ${IMPDIR}/config/servers.php3.dist \
|
|
|
|
${IMPDIR}/config/servers.php3
|
|
|
|
SUPPORT_FILES+= ${IMPDIR}/config/MOTD.html.dist \
|
|
|
|
${IMPDIR}/config/MOTD.html
|
|
|
|
SUPPORT_FILES+= ${IMPDIR}/config/header.txt.dist \
|
|
|
|
${IMPDIR}/config/header.txt
|
|
|
|
SUPPORT_FILES+= ${IMPDIR}/config/html.php3.dist \
|
|
|
|
${IMPDIR}/config/html.php3
|
|
|
|
SUPPORT_FILES+= ${IMPDIR}/config/imp_module_config.php3.dist \
|
|
|
|
${IMPDIR}/config/imp_module_config.php3
|
|
|
|
SUPPORT_FILES+= ${IMPDIR}/config/lang.php3.dist \
|
|
|
|
${IMPDIR}/config/lang.php3
|
|
|
|
SUPPORT_FILES+= ${IMPDIR}/config/mailbox.php3.dist \
|
|
|
|
${IMPDIR}/config/mailbox.php3
|
|
|
|
SUPPORT_FILES+= ${IMPDIR}/config/menu.txt.dist \
|
|
|
|
${IMPDIR}/config/menu.txt
|
|
|
|
SUPPORT_FILES+= ${IMPDIR}/config/mime.php3.dist \
|
|
|
|
${IMPDIR}/config/mime.php3
|
|
|
|
SUPPORT_FILES+= ${IMPDIR}/config/prefs.php3.dist \
|
|
|
|
${IMPDIR}/config/prefs.php3
|
|
|
|
SUPPORT_FILES+= ${IMPDIR}/config/trailer.txt.dist \
|
|
|
|
${IMPDIR}/config/trailer.txt
|
|
|
|
MAKE_DIRS= ${APACHE_SYSCONFDIR}
|
2001-07-13 09:09:17 +02:00
|
|
|
|
2001-02-12 16:27:41 +01:00
|
|
|
post-extract:
|
2001-11-19 17:23:08 +01:00
|
|
|
cd ${WRKSRC}; \
|
2001-02-12 16:27:41 +01:00
|
|
|
for file in \
|
2001-11-19 17:23:08 +01:00
|
|
|
config/MOTD.html config/header.txt config/html.php3 \
|
|
|
|
config/imp_module_config.php3 config/lang.php3 \
|
2001-07-31 14:50:12 +02:00
|
|
|
config/mailbox.php3 config/menu.txt config/trailer.txt ; \
|
2001-02-12 16:27:41 +01:00
|
|
|
do \
|
|
|
|
${MV} $${file} $${file}.dist; \
|
|
|
|
done
|
|
|
|
|
2001-02-12 17:13:07 +01:00
|
|
|
post-patch:
|
2001-02-12 16:27:41 +01:00
|
|
|
cd ${WRKSRC}/config; \
|
|
|
|
for file in defaults.php3.dist; do \
|
|
|
|
${MV} -f $${file} $${file}.orig; \
|
|
|
|
${SED} -e "s|/usr/bin/ispell|${LOCALBASE}/bin/ispell|g" \
|
|
|
|
-e "s|/usr/bin/wvHtml|${LOCALBASE}/bin/wvHTML|g" \
|
|
|
|
-e "s|/usr/bin/xlHtml|${LOCALBASE}/bin/xlHTML|g" \
|
|
|
|
-e "s|/bin/tar|/usr/bin/tar|g" \
|
|
|
|
-e "s|/usr/bin/zipinfo|${LOCALBASE}/bin/zipinfo|g" \
|
|
|
|
$${file}.orig > $${file}; \
|
|
|
|
done
|
|
|
|
cd ${WRKSRC}/scripts; \
|
2001-05-22 23:12:20 +02:00
|
|
|
for file in pine2imp.pl; do \
|
2001-02-12 16:27:41 +01:00
|
|
|
${MV} -f $${file} $${file}.orig; \
|
|
|
|
${SED} -e "s|/usr/bin/perl|${PERL5}|g" \
|
|
|
|
-e "s|/usr/local/|${LOCALBASE}/|g" \
|
|
|
|
$${file}.orig > $${file}; \
|
|
|
|
done
|
|
|
|
|
|
|
|
do-build:
|
2001-07-13 09:09:17 +02:00
|
|
|
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
|
|
|
|
${FIND} ${WRKSRC} -name "*.pl" -print | ${XARGS} ${CHMOD} +x
|
|
|
|
${FIND} ${WRKSRC} -name "*.sh" -print | ${XARGS} ${CHMOD} +x
|
2001-02-12 16:27:41 +01:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${SED} -e "s|@IMPDIR@|${IMPDIR}|g" \
|
|
|
|
${FILESDIR}/imp.conf.dist > ${WRKDIR}/imp.conf.dist
|
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
do-install:
|
2001-04-30 08:11:09 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR} ${EGDIR} ${IMPDIR}
|
|
|
|
cd ${WRKDIR}; ${INSTALL_DATA} imp.conf.dist ${EGDIR}/imp.conf
|
2001-02-12 16:27:41 +01:00
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} COPYING README docs/* ${DOCDIR}
|
|
|
|
cd ${WRKSRC}; ${CP} -R graphics lib locale scripts templates ${IMPDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${IMPDIR}/config
|
|
|
|
cd ${WRKSRC}/config; ${INSTALL_DATA} * ${IMPDIR}/config
|
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} *.css *.php3 ${IMPDIR}
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${IMPDIR}
|
|
|
|
${CHMOD} -R a-w ${IMPDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
|
|
|
|
|
2001-11-19 17:23:08 +01:00
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
2001-02-12 16:27:41 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|