aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/referrercop
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-10-01 01:16:17 +0800
committergarga <garga@FreeBSD.org>2005-10-01 01:16:17 +0800
commit671b8b4c48b3dd9dbe1043f74ce4fb16c30c2877 (patch)
treeba3058c76fd98fb7b546f0f48acceaffb2c6c482 /textproc/referrercop
parent1f3729389959101a233b47127fa8f2afa3c144e4 (diff)
downloadfreebsd-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>
Diffstat (limited to 'textproc/referrercop')
-rw-r--r--textproc/referrercop/Makefile45
-rw-r--r--textproc/referrercop/distinfo2
-rw-r--r--textproc/referrercop/pkg-descr6
-rw-r--r--textproc/referrercop/pkg-plist4
4 files changed, 57 insertions, 0 deletions
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%%