aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/referrercop/Makefile
blob: d4482a2149122aeb2f4955bb97b3a418ad5322e4 (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
# New ports collection makefile for:    referrercop
# Date created:        21 June 2005
# Whom:                Ryan Grove <ryan@wonko.com>
#
# $FreeBSD$
#

PORTNAME=   referrercop
PORTVERSION=    1.0.3
CATEGORIES= textproc www ruby
MASTER_SITES=   http://wonko.com/files/ \
        http://raa.ruby-lang.org/cache/referrercop/

MAINTAINER= ryan@wonko.com
COMMENT=    Filters referrer spam from Apache logs and AWStats data files

NO_BUILD=       yes
USE_RUBY=       yes
USE_RUBY_FEATURES=  fileutils optparse ruby18

.include <bsd.port.pre.mk>

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/referrercop ${PREFIX}/bin

    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/blacklist.refcop ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/whitelist.refcop.sample ${DATADIR}

.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/HISTORY ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}

    ${MKDIR} ${DOCSDIR}/rdoc
    cd ${WRKSRC}/doc; ${FIND} . \
        | ${CPIO} -pdm -R root:wheel ${DOCSDIR}/rdoc
.endif

.include <bsd.port.post.mk>