View | Details | Raw Unified | Return to bug 153379
Collapse All | Expand All

(-)hastymail2/Makefile (+23 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	hastymail2
8
PORTNAME=	hastymail2
9
PORTVERSION=	1.1
9
PORTVERSION=	1.1
10
PORTREVISION=	1
10
PORTEPOCH=	1
11
PORTEPOCH=	1
11
CATEGORIES=	www mail
12
CATEGORIES=	www mail
12
MASTER_SITES=	SF/hastymail/Hastymail2%20Stable%20Releases/Hastymail2%201.01/
13
MASTER_SITES=	SF/hastymail/Hastymail2%20Stable%20Releases/Hastymail2%201.01/
Lines 32-39 Link Here
32
NO_BUILD=	yes
33
NO_BUILD=	yes
33
FIND_SKIP_OPTS=	-not -name hastymail2.conf.example -not -name '*.orig'
34
FIND_SKIP_OPTS=	-not -name hastymail2.conf.example -not -name '*.orig'
34
35
36
OPTIONS=	PGSQL	"Use PostgreSQL" off \
37
		MYSQL	"Use MySQL" off \
38
		DB	"Use older pear DB (instead of MDB2)" off
39
35
.include <bsd.port.pre.mk>
40
.include <bsd.port.pre.mk>
36
41
42
.if defined(WITH_MYSQL)
43
USE_MYSQL=	yes
44
.if !defined(WITH_DB)
45
RUN_DEPENDS+=	${LOCALBASE}/share/pear/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql
46
.endif
47
.endif
48
49
.if defined(WITH_PGSQL)
50
USE_PGSQL=	yes
51
.if !defined(WITH_DB)
52
RUN_DEPENDS+=	${LOCALBASE}/share/pear/MDB2/Driver/pgsql.php:${PORTSDIR}/databases/pear-MDB2_Driver_pgsql
53
.endif
54
.endif
55
56
.if defined(WITH_DB) && (defined(WITH_MYSQL) || defined(WITH_PGSQL))
57
RUN_DEPENDS+=	${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
58
.endif
59
37
post-patch:
60
post-patch:
38
	@${SED} -I.orig -e "s#'/etc/hastymail2/hastymail2.rc'#'${PREFIX}/etc/hastymail2/hastymail2.rc'#" \
61
	@${SED} -I.orig -e "s#'/etc/hastymail2/hastymail2.rc'#'${PREFIX}/etc/hastymail2/hastymail2.rc'#" \
39
		${WRKSRC}/index.php
62
		${WRKSRC}/index.php

Return to bug 153379