blob: 268f6f3d04807e092361afae8ee6a5d205033ee0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# $NetBSD: Makefile,v 1.34 2005/09/28 14:31:07 rillig Exp $
DISTNAME= imp-3.2.8
PKGREVISION= 1
CATEGORIES= mail www
MASTER_SITES= ftp://ftp.horde.org/pub/imp/tarballs/
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= http://www.horde.org/imp/
COMMENT= Internet Messaging Program
CONFLICTS+= imp-4.*
DEPENDS+= horde>=2.2.4:../../www/horde
DEPENDS+= php-imap>4.0.0:../../mail/php-imap
DEPENDS+= pear-Mail-[0-9]*:../../mail/pear-Mail
DOCDIR= ${PREFIX}/share/doc/imp
EGDIR= ${PREFIX}/share/examples/imp
HORDEDIR= ${PREFIX}/share/horde
IMPDIR= ${HORDEDIR}/imp
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/conf.php.dist \
${IMPDIR}/config/conf.php
CONF_FILES+= ${IMPDIR}/config/servers.php.dist \
${IMPDIR}/config/servers.php
CONF_FILES+= ${IMPDIR}/config/filter.txt.dist \
${IMPDIR}/config/filter.txt
CONF_FILES+= ${IMPDIR}/config/header.txt.dist \
${IMPDIR}/config/header.txt
CONF_FILES+= ${IMPDIR}/config/html.php.dist \
${IMPDIR}/config/html.php
CONF_FILES+= ${IMPDIR}/config/menu.php.dist \
${IMPDIR}/config/menu.php
CONF_FILES+= ${IMPDIR}/config/mime_drivers.php.dist \
${IMPDIR}/config/mime_drivers.php
CONF_FILES+= ${IMPDIR}/config/motd.php.dist \
${IMPDIR}/config/motd.php
CONF_FILES+= ${IMPDIR}/config/prefs.php.dist \
${IMPDIR}/config/prefs.php
CONF_FILES+= ${IMPDIR}/config/trailer.txt.dist \
${IMPDIR}/config/trailer.txt
do-build:
${FIND} ${WRKSRC} -name .htaccess -print | ${XARGS} ${RM} -f
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
${FIND} ${WRKSRC} -name "*.pl" -print | ${XARGS} ${CHMOD} +x
${FIND} ${WRKSRC} -name "*.sh" -print | ${XARGS} ${CHMOD} +x
pre-install:
${SED} -e "s|@IMPDIR@|${IMPDIR}|g" \
${FILESDIR}/imp.conf.dist > ${WRKDIR}/imp.conf.dist
do-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA_DIR} ${IMPDIR}
cd ${WRKDIR}; ${INSTALL_DATA} imp.conf.dist ${EGDIR}/imp.conf
cd ${WRKSRC}; ${INSTALL_DATA} COPYING README docs/* ${DOCDIR}
cd ${WRKSRC}; ${CP} -R graphics lib locale po scripts templates ${IMPDIR}
${INSTALL_DATA_DIR} ${IMPDIR}/config
cd ${WRKSRC}/config; ${INSTALL_DATA} * ${IMPDIR}/config
cd ${WRKSRC}; ${INSTALL_DATA} *.php ${IMPDIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${IMPDIR}
${FIND} ${IMPDIR} -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
${FIND} ${IMPDIR} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
.include "../../mk/bsd.pkg.mk"
|