aboutsummaryrefslogtreecommitdiffstats
path: root/net/happystats/Makefile
blob: c3dcb263247a450daec44360243663f0aae0964d (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
# New ports collection makefile for:    happystats
# Date created:     2004-01-12
# Whom:             Xavier Beaudouin <kiwi@oav.net>
#
# $FreeBSD$
#

PORTNAME=   happystats
PORTVERSION=    0.5.0
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   http://www.happystats.org/srcs/
EXTRACT_SUFX=   .tgz

MAINTAINER= kiwi@oav.net
COMMENT=    Universal log converter into graph

BUILD_DEPENDS=  imake:${PORTSDIR}/devel/imake-4

LIB_DEPENDS=    pcre.0:${PORTSDIR}/devel/pcre \
        xml2.5:${PORTSDIR}/textproc/libxml2 \
        rrd.0:${PORTSDIR}/net/rrdtool

USE_GETOPT_LONG=    yes

MAN1=       happystats.1
MANCOMPRESSED=  yes
DOCS=       AUTHORS INSTALL TODO

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502108
BROKEN=     "Does not link on FreeBSD >= 5.x"
.endif

do-configure:
    @cd ${WRKSRC} && ${MAKE} dep

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/happystats ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/man/happystats.1.gz ${MAN1PREFIX}/man/man1
    @${MKDIR} ${PREFIX}/www/cgi-bin
    ${INSTALL_PROGRAM} ${WRKSRC}/happystats.cgi ${PREFIX}/www/cgi-bin
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>