aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_accounting/Makefile
blob: 9db3d0042a3822665b67852860c04c9d5ecd4081 (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
# New ports collection makefile for:    mod_accounting
# Date created:             15 November 2002
# Whom:                 Clément Laforêt <sheepkiller@cultdeadsheep.org>
#
# $FreeBSD$
#

PORTNAME=   mod_accounting
PORTVERSION=    0.5
PORTREVISION=   3
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mod-acct

MAINTAINER= apache@FreeBSD.org
COMMENT=    An Apache module that records traffic statistics into a database

BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT}

MAKE_ARGS+= APXS="${APXS}"

.if defined(WITHOUT_PGSQL)
MAKE_ARGS+= WITHOUT_PGSQL=YES
.else
LIB_DEPENDS+=   pq.3:${PORTSDIR}/databases/postgresql7
.endif

.if defined(WITHOUT_MYSQL)
MAKE_ARGS+= WITHOUT_MYSQL=YES
.else
USE_MYSQL=  YES
.endif

DOCS=       README FAQ.txt LICENSE

pre-everything::
    @${ECHO} ""
    @${ECHO} "      WITHOUT_MYSQL        Disable MySQL support"
    @${ECHO} "      WITHOUT_PGSQL        Disable PostgreSQL support"
    @${ECHO} ""

post-install:
    @${MKDIR} ${PREFIX}/share/${PORTNAME}
    ${INSTALL_DATA} ${WRKSRC}/schema.sql ${PREFIX}/share/${PORTNAME}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for doc in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>