aboutsummaryrefslogtreecommitdiff
path: root/mail/squirrelmail-sasql-plugin/Makefile
blob: 777750e08cde109e189c345577cb458c425fc803 (plain) (blame)
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
# Created by: Gerrit Beine <gerrit.beine@gmx.de>
# $FreeBSD$

PORTNAME=		sasql
PORTVERSION=	3.2.0
PORTREVISION=	1

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Edit SpamAssassin settings stored in an SQL DB

RUN_DEPENDS=	${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB

USE_SM_COMPAT=	yes
USE_GENERIC_PKGMESSAGE=	yes

NO_STAGE=	yes

post-patch:
	@${REINPLACE_CMD} -e "s/\(\$$imap_server_type == \'cyrus\'\)/\1 || \$$imap_server_type == \'courier\'/g" \
		-e 's/session_register/sqsession_register/g' \
		${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/sasql_hooks.php
	-@${RM} ${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/*.bak ${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/.cvsignore

.include <bsd.port.pre.mk>
.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
.include <bsd.port.post.mk>