aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/qlogtools/Makefile
blob: 4977c8888580db51e40aa8862a1a20f131d43186 (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
# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$

PORTNAME=   qlogtools
PORTVERSION=    3.1
PORTREVISION=   3
CATEGORIES= sysutils
MASTER_SITES=   http://untroubled.org/${PORTNAME}/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Tools for processing logs from qmail and other packages

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

PORTDOCS=   NEWS README

OPTIONS_DEFINE= DOCS

do-configure:
    ${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin"  > ${WRKSRC}/conf-bin
    ${ECHO_CMD} "${STAGEDIR}${MANPREFIX}/man"   > ${WRKSRC}/conf-man
    ${ECHO_CMD} "${CC} ${STRIP} ${CFLAGS}"  > ${WRKSRC}/conf-cc
    ${ECHO_CMD} "${CC} ${LDFLAGS}"  > ${WRKSRC}/conf-ld

do-install:
    cd ${WRKSRC} && ./installer
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>