blob: afcae4645a18ea7f1b712514b79e1ba08801f834 (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# $NetBSD: Makefile,v 1.1.1.1 2001/02/12 15:27:41 jlam Exp $
DISTNAME= imp-2.2.4
CATEGORIES= mail www
MASTER_SITES= ftp://ftp.horde.org/pub/imp/tarballs/
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.horde.org/imp/
DEPENDS+= horde>=1.2.4:../../www/horde
DEPENDS+= php-imap>3.0.17:../../www/php4-imap
NO_CONFIGURE= # defined
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WRKDIR}/INSTALL
CONFDIR= ${PREFIX}/etc/httpd
DOCDIR= ${PREFIX}/share/doc/imp
HORDEDIR= ${PREFIX}/share/horde
IMPDIR= ${HORDEDIR}/imp
MESSAGE_SUBST+= IMPDIR=${IMPDIR}
post-extract:
cd ${WRKSRC}/config; \
for file in \
MOTD.html header.txt html.php3 imp_module_config.php3 \
lang.php3 mailbox.php3 menu.txt prefs.php3 trailer.txt; \
do \
${MV} $${file} $${file}.dist; \
done
jlam-post-patch:
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; \
for file in impsetup.pl pine2imp.pl; do \
${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:
${FIND} ${WRKSRC} -name "*.orig" -exec ${RM} -f {} \;
${FIND} ${WRKSRC} -name "*.pl" -exec ${CHMOD} +x {} \;
${FIND} ${WRKSRC} -name "*.sh" -exec ${CHMOD} +x {} \;
pre-install:
${SED} -e "s|@IMPDIR@|${IMPDIR}|g" \
${FILESDIR}/imp.conf.dist > ${WRKDIR}/imp.conf.dist
${SED} -e "s|@IMPDIR@|${IMPDIR:S/^${PREFIX}\///}|g" \
-e "s|@CAT@|${CAT}|g" \
-e "s|@RM@|${RM}|g" \
-e "s|@RMDIR@|${RMDIR}|g" \
-e "s|@TRUE@|${TRUE}|g" \
${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
${SED} -e "s|@IMPDIR@|${IMPDIR:S/^${PREFIX}\///}|g" \
-e "s|@CAT@|${CAT}|g" \
-e "s|@CHMOD@|${CHMOD}|g" \
-e "s|@CP@|${CP}|g" \
${PKGDIR}/INSTALL > ${INSTALL_FILE}
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
do-install:
${INSTALL_DATA_DIR} ${CONFDIR} ${DOCDIR} ${IMPDIR}
cd ${WRKDIR}; ${INSTALL_DATA} imp.conf.dist ${CONFDIR}
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
.include "../../mk/bsd.pkg.mk"
|