diff options
author | garga <garga@FreeBSD.org> | 2005-10-01 01:16:17 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2005-10-01 01:16:17 +0800 |
commit | 671b8b4c48b3dd9dbe1043f74ce4fb16c30c2877 (patch) | |
tree | ba3058c76fd98fb7b546f0f48acceaffb2c6c482 | |
parent | 1f3729389959101a233b47127fa8f2afa3c144e4 (diff) | |
download | freebsd-ports-gnome-671b8b4c48b3dd9dbe1043f74ce4fb16c30c2877.tar.gz freebsd-ports-gnome-671b8b4c48b3dd9dbe1043f74ce4fb16c30c2877.tar.zst freebsd-ports-gnome-671b8b4c48b3dd9dbe1043f74ce4fb16c30c2877.zip |
Add referrercop 1.0.2, filters referrer spam from Apache logs and
AWStats data files.
PR: ports/82501
Submitted by: Ryan Grove <ryan@wonko.com>
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/referrercop/Makefile | 45 | ||||
-rw-r--r-- | textproc/referrercop/distinfo | 2 | ||||
-rw-r--r-- | textproc/referrercop/pkg-descr | 6 | ||||
-rw-r--r-- | textproc/referrercop/pkg-plist | 4 |
5 files changed, 58 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index d2c03456985f..3e710e490061 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -594,6 +594,7 @@ SUBDIR += redland SUBDIR += redland-bindings SUBDIR += refdb + SUBDIR += referrercop SUBDIR += replaceit SUBDIR += resume SUBDIR += resume-extensions diff --git a/textproc/referrercop/Makefile b/textproc/referrercop/Makefile new file mode 100644 index 000000000000..c4dd5c9f7504 --- /dev/null +++ b/textproc/referrercop/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: referrercop +# Date created: 21 June 2005 +# Whom: Ryan Grove <ryan@wonko.com> +# +# $FreeBSD$ +# + +PORTNAME= referrercop +PORTVERSION= 1.0.2 +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= 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> diff --git a/textproc/referrercop/distinfo b/textproc/referrercop/distinfo new file mode 100644 index 000000000000..cf3b9ac37c9a --- /dev/null +++ b/textproc/referrercop/distinfo @@ -0,0 +1,2 @@ +MD5 (referrercop-1.0.2.tar.gz) = abf7fd4182214bd70a0d32b4e386c8d1 +SIZE (referrercop-1.0.2.tar.gz) = 83478 diff --git a/textproc/referrercop/pkg-descr b/textproc/referrercop/pkg-descr new file mode 100644 index 000000000000..92864144e3e6 --- /dev/null +++ b/textproc/referrercop/pkg-descr @@ -0,0 +1,6 @@ + ReferrerCop parses Apache log files or AWStats data files and removes entries + for referring URLs that match a list of known referrer spammers. It then + returns the filtered files via standard output. + +WWW: http://wiki.wonko.com/software/referrercop/ +Author: Ryan Grove <ryan@wonko.com> diff --git a/textproc/referrercop/pkg-plist b/textproc/referrercop/pkg-plist new file mode 100644 index 000000000000..b96457c97bb6 --- /dev/null +++ b/textproc/referrercop/pkg-plist @@ -0,0 +1,4 @@ +bin/referrercop +%%DATADIR%%/blacklist.refcop +%%DATADIR%%/whitelist.refcop.sample +@dirrm %%DATADIR%% |