aboutsummaryrefslogtreecommitdiffstats
path: root/mail/vqadmin/Makefile
blob: 4f802f0efad9567db20e264de95abf412d47138b (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
# New ports collection makefile for: vqadmin
# Date created:     29 Mar 2001
# Whom:         nbm
#
# $FreeBSD$
#

PORTNAME=   vqadmin
PORTVERSION=    2.3.5
CATEGORIES= mail
MASTER_SITES=   http://www.inter7.com/devel/ \
        http://www.inter7.com/vqadmin/

MAINTAINER= oliver@FreeBSD.org
COMMENT=    A cgi-based Virtual Qmail Domains Administrator

LIB_DEPENDS=    getline.1:${PORTSDIR}/devel/libgetline
BUILD_DEPENDS=  ${LOCALBASE}/vpopmail/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail
RUN_DEPENDS=    ${LOCALBASE}/vpopmail/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail

GNU_CONFIGURE=  YES
USE_REINPLACE=  YES

CGIBINDIR?= ${PREFIX}/www/cgi-bin.default
WEBDATADIR?=    ${PREFIX}/www/data.default

CONFIGURE_ARGS= --enable-cgibindir=${CGIBINDIR} \
        --enable-htmldir=${WEBDATADIR}

.include <bsd.port.pre.mk>

PLIST_SUB+= CGIBINDIR=${CGIBINDIR} WEBDATADIR=${WEBDATADIR}

post-patch:
    @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
        ${WRKSRC}/Makefile.in

.include <bsd.port.post.mk>