blob: 582ee839ff73b475b6dc946b5fc7b8aa94ecb0c9 (
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
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
|
# New ports collection makefile for: gld
# Date created: 15 Jul 2004
# Whom: Blaz Zupan <blaz@si.FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gld
PORTVERSION= 1.5
CATEGORIES= mail
MASTER_SITES= http://www.gasmi.net/down/
EXTRACT_SUFX= .tgz
MAINTAINER= blaz@si.FreeBSD.org
COMMENT= Greylisting daemon for Postfix
USE_REINPLACE= yes
USE_RC_SUBR= yes
HAS_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}.1
PKGMESSAGE= ${WRKDIR}/MESSAGE
OPTIONS= MYSQL "MySQL support" on \
PGSQL "PgSQL support" off
SED_SCRIPT= -e 's,%%DOCSDIR%%,${DOCSDIR},g' \
-e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g'
.include <bsd.port.pre.mk>
.if defined(WITH_MYSQL) && defined(WITH_PGSQL)
BROKEN= "Cannot compile with both MySQL and PgSQL support"
.endif
.if defined(WITH_MYSQL)
CONFIGURE_ARGS+= --with-mysql=${PREFIX}
USE_MYSQL= yes
.endif
.if defined(WITH_PGSQL)
CONFIGURE_ARGS+= --with-pgsql=${PREFIX}
USE_PGSQL= yes
.endif
pre-build:
${REINPLACE_CMD} -e 's,"/etc/gld.conf","${PREFIX}/etc/gld.conf",' ${WRKSRC}/gld.h
for f in gld.sh MESSAGE; do \
${SED} ${SED_SCRIPT} < ${FILESDIR}/$${f}.tmpl >> ${WRKDIR}/$${f}; \
done
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gld ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/gld.conf ${PREFIX}/etc/gld.conf-dist
${INSTALL_SCRIPT} ${WRKDIR}/gld.sh ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in HISTORY LICENCE README table-whitelist.sql tables.mysql tables.pgsql
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|